:root {
    --primary: #6d4aff;
    --primary-dark: #5232df;
    --primary-soft: #eeeaff;
    --primary-softer: #f6f3ff;
    --pink: #ff4d9a;
    --orange: #ff8a4c;
    --text: #17151f;
    --text-soft: #777381;
    --background: #f7f6fa;
    --surface: #ffffff;
    --border: #e8e5ed;
    --green: #1f9d71;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 24px 80px rgba(23, 14, 48, .09);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button {
    color: inherit;
}

[hidden] {
    display: none !important;
}

/* LOGIN */
.login-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
}

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: url("../img/ponte-floripa.webp") center center / cover no-repeat;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 7, 24, .74) 0%, rgba(10, 8, 28, .58) 38%, rgba(12, 9, 31, .34) 62%, rgba(14, 9, 28, .08) 100%),
        linear-gradient(180deg, rgba(7, 6, 22, .08) 0%, rgba(11, 8, 26, .12) 46%, rgba(10, 7, 24, .48) 100%);
}

.visual-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 64px);
    color: white;
}

.brand-badge {
    width: max-content;
    padding: 11px 16px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    background: rgba(17,12,41,.3);
    backdrop-filter: blur(18px);
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

.visual-copy {
    max-width: 720px;
    margin-top: auto;
    margin-bottom: clamp(36px, 8vh, 90px);
}

.eyebrow {
    display: block;
    margin-bottom: 16px;
    color: rgba(255,255,255,.96);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-shadow: 0 2px 12px rgba(0,0,0,.48);
}

.visual-copy h1 {
    max-width: 700px;
    font-size: clamp(42px, 4.7vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 3px 20px rgba(0,0,0,.38), 0 1px 3px rgba(0,0,0,.42);
}

.visual-copy h1 span {
    display: block;
    color: #ffffff;
}

.visual-copy p {
    max-width: 570px;
    margin-top: 24px;
    color: rgba(255,255,255,.98);
    font-size: clamp(16px, 1.15vw, 20px);
    line-height: 1.65;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,.65);
}

.login-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 5vw, 80px);
}

.login-container {
    width: 100%;
    max-width: 470px;
}

.mobile-brand {
    display: none;
}

.login-header {
    margin-bottom: 38px;
}

.login-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

.login-header h2 {
    font-size: clamp(32px, 3vw, 46px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 800;
}

.login-header p {
    max-width: 390px;
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.65;
}

.flash-message {
    margin: -12px 0 22px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.flash-message.erro {
    background: #fff0f2;
    color: #a62a40;
    border: 1px solid #ffd1d8;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.field label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
}

.field-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.field-top a {
    margin-bottom: 9px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.input-box {
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.input-box:focus-within {
    border-color: rgba(109, 74, 255, .55);
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .10);
    transform: translateY(-1px);
}

.input-icon {
    width: 30px;
    flex-shrink: 0;
    opacity: .55;
}

.input-box input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.input-box input::placeholder {
    color: #aaa5b0;
}

.toggle-password {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: .65;
}

.btn-primary,
.bora-button,
.create-role-button {
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), #8b5cff);
    color: white;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(109, 74, 255, .24);
}

.btn-primary:hover,
.bora-button:hover,
.create-role-button:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 20px 40px rgba(109, 74, 255, .30);
}

.separator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin: 28px 0;
    color: #aaa5b0;
    font-size: 12px;
}

.separator span {
    height: 1px;
    background: var(--border);
}

.btn-google {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.google-symbol {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-weight: 800;
    color: #4285f4;
}

.signup-text {
    margin-top: 30px;
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}

.signup-text a {
    margin-left: 4px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.login-legal {
    max-width: 390px;
    margin: 30px auto 0;
    text-align: center;
    color: #aaa5b0;
    font-size: 10px;
    line-height: 1.6;
}

.login-legal a {
    text-decoration: underline;
}

/* APP HOME */
.app-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(109, 74, 255, .08), transparent 24%),
        var(--background);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(22px, 5vw, 74px);
    border-bottom: 1px solid rgba(232, 229, 237, .88);
    background: rgba(247, 246, 250, .88);
    backdrop-filter: blur(18px);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-soft), #fff0f8);
    box-shadow: inset 0 0 0 1px rgba(109, 74, 255, .08);
}

.app-brand strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.app-brand small {
    display: block;
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
    cursor: pointer;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #9b6cff);
    color: white;
    font-weight: 800;
}

.user-copy strong,
.user-copy a {
    display: block;
}

.user-copy strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.user-copy a {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 10px;
    text-decoration: none;
}

.member-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0 90px;
}

.member-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 0 34px;
}

.member-kicker,
.section-kicker {
    display: block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.member-hero h1 {
    margin-top: 9px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -.055em;
}

.member-hero p {
    margin-top: 14px;
    color: var(--text-soft);
    font-size: 15px;
}

.create-role-button {
    min-width: 150px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    background: var(--text);
    color: white;
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(23, 21, 31, .12);
}

.create-role-button span {
    font-size: 20px;
}

.category-section,
.spotlight-section,
.feed-section {
    margin-top: 38px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin-top: 5px;
    font-size: clamp(22px, 2.8vw, 32px);
    letter-spacing: -.035em;
}

.compact-heading {
    margin-bottom: 14px;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: 0 0 auto;
    height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: white;
    color: #5f5a68;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.category-chip:hover {
    transform: translateY(-1px);
    border-color: #d6cff2;
}

.category-chip.active {
    border-color: transparent;
    background: var(--text);
    color: white;
    box-shadow: 0 10px 22px rgba(23, 21, 31, .12);
}

.sponsor-disclaimer {
    color: #99939f;
    font-size: 10px;
}

.spotlight-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    min-height: 270px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(109, 74, 255, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 87% 12%, rgba(255, 77, 154, .18), transparent 26%),
        radial-gradient(circle at 10% 100%, rgba(109, 74, 255, .20), transparent 32%),
        linear-gradient(135deg, #20182e, #15111f 58%, #21152a);
    color: white;
    box-shadow: 0 26px 70px rgba(37, 25, 58, .18);
}

.spotlight-card::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(109, 74, 255, .17);
    filter: blur(6px);
}

.spotlight-main,
.spotlight-action {
    position: relative;
    z-index: 2;
}

.sponsor-badge {
    width: max-content;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.spotlight-emoji {
    margin-top: 24px;
    font-size: 32px;
}

.spotlight-card h3 {
    margin-top: 9px;
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -.05em;
}

.spotlight-card p {
    max-width: 620px;
    margin-top: 10px;
    color: rgba(255,255,255,.68);
    line-height: 1.6;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 600;
}

.spotlight-action {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 18px;
}

.people-count {
    text-align: right;
}

.people-count strong {
    display: block;
    font-size: 34px;
}

.people-count span {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.56);
    font-size: 10px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.standard-role {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: white;
    box-shadow: 0 14px 35px rgba(23, 14, 48, .055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.standard-role:hover {
    transform: translateY(-3px);
    border-color: #dcd5f0;
    box-shadow: 0 20px 44px rgba(23, 14, 48, .09);
}

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

.role-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--primary-softer);
    font-size: 23px;
}

.role-category {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f7f5fa;
    color: #817b87;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.role-card-copy {
    padding: 20px 0 16px;
}

.role-date {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.role-card-copy h3 {
    margin-top: 7px;
    font-size: 21px;
    letter-spacing: -.03em;
}

.role-card-copy p {
    min-height: 52px;
    margin-top: 9px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.role-meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #f0edf2;
    border-bottom: 1px solid #f0edf2;
}

.role-meta-list > div {
    min-width: 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.role-meta-list small,
.role-meta-list strong {
    display: block;
}

.role-meta-list small {
    color: #aaa5b0;
    font-size: 9px;
}

.role-meta-list strong {
    max-width: 125px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.role-progress {
    padding: 16px 0;
}

.role-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #8f8995;
    font-size: 9px;
}

.role-progress-copy strong {
    color: var(--text);
}

.progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #efecf2;
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #9b6cff);
}

.bora-button {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(109, 74, 255, .16);
}

.bora-button.joined {
    background: var(--green);
    box-shadow: 0 12px 24px rgba(31, 157, 113, .18);
}

.bora-button.premium {
    min-width: 170px;
    background: white;
    color: #1b1522;
    box-shadow: none;
}

.bora-button.premium.joined {
    background: #dff7ec;
    color: #126848;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.empty-filter-state {
    padding: 70px 20px;
    text-align: center;
    color: var(--text-soft);
}

.empty-filter-state div {
    font-size: 42px;
}

.empty-filter-state h3 {
    margin-top: 10px;
    color: var(--text);
}

.empty-filter-state p {
    margin-top: 6px;
    font-size: 12px;
}

.mobile-nav {
    display: none;
}

@media (max-width: 1100px) {
    .login-page {
        grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
    }

    .visual-copy h1 {
        font-size: clamp(38px, 5vw, 58px);
    }

    .visual-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        background: white;
    }

    .login-page {
        display: block;
        min-height: 100svh;
        background: white;
    }

    .login-visual {
        min-height: 310px;
        height: 38svh;
        max-height: 390px;
        background-position: center center;
    }

    .visual-content {
        min-height: 100%;
        height: 100%;
        padding: 22px;
    }

    .brand-badge,
    .visual-footer {
        display: none;
    }

    .visual-copy {
        margin: auto 0 18px;
    }

    .eyebrow {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .visual-copy h1 {
        max-width: 380px;
        font-size: clamp(32px, 10vw, 45px);
        line-height: 1;
    }

    .visual-copy p {
        display: none;
    }

    .login-panel {
        min-height: auto;
        position: relative;
        z-index: 3;
        margin-top: -20px;
        padding: 30px 20px max(36px, env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        background: white;
    }

    .login-container {
        max-width: 520px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 26px;
    }

    .mobile-brand-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        background: var(--primary-soft);
        font-size: 22px;
    }

    .mobile-brand strong {
        display: block;
        font-size: 14px;
    }

    .mobile-brand small {
        display: block;
        margin-top: 2px;
        color: var(--text-soft);
        font-size: 10px;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-kicker {
        font-size: 10px;
    }

    .login-header h2 {
        font-size: 29px;
    }

    .login-header p {
        margin-top: 10px;
        font-size: 13px;
    }

    .input-box,
    .btn-primary,
    .btn-google {
        height: 56px;
    }

    .login-form {
        gap: 18px;
    }

    .app-shell {
        padding-bottom: 80px;
        background: #faf9fc;
    }

    .app-header {
        min-height: 66px;
        padding: 10px 18px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .app-brand small,
    .user-copy,
    .icon-button {
        display: none;
    }

    .avatar {
        width: 38px;
        height: 38px;
    }

    .member-main {
        width: min(100% - 32px, 620px);
        padding: 22px 0 46px;
    }

    .member-hero {
        align-items: flex-start;
        padding: 14px 0 22px;
    }

    .member-hero h1 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .member-hero p {
        max-width: 270px;
        font-size: 12px;
        line-height: 1.5;
    }

    .create-role-button {
        display: none;
    }

    .category-section,
    .spotlight-section,
    .feed-section {
        margin-top: 26px;
    }

    .section-heading {
        align-items: center;
        margin-bottom: 14px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .sponsor-disclaimer {
        max-width: 90px;
        text-align: right;
        line-height: 1.3;
    }

    .category-scroll {
        margin-right: -16px;
        padding-right: 16px;
    }

    .category-chip {
        height: 42px;
        padding: 0 14px;
        font-size: 12px;
    }

    .spotlight-card {
        display: block;
        min-height: auto;
        padding: 24px;
        border-radius: 24px;
    }

    .spotlight-card h3 {
        font-size: 34px;
    }

    .spotlight-card p {
        font-size: 12px;
    }

    .spotlight-meta {
        display: grid;
        gap: 8px;
        font-size: 11px;
    }

    .spotlight-action {
        min-width: 0;
        margin-top: 26px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 12px;
    }

    .people-count {
        text-align: left;
    }

    .people-count strong {
        font-size: 28px;
    }

    .bora-button.premium {
        min-width: 0;
    }

    .role-grid {
        display: flex;
        gap: 14px;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .role-grid::-webkit-scrollbar {
        display: none;
    }

    .standard-role {
        flex: 0 0 min(84vw, 330px);
        scroll-snap-align: start;
        border-radius: 22px;
    }

    .role-card-copy p {
        min-height: 0;
    }

    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        height: calc(68px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: start;
        padding: 8px 8px env(safe-area-inset-bottom);
        border-top: 1px solid var(--border);
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(16px);
        box-shadow: 0 -10px 34px rgba(23, 14, 48, .05);
    }

    .mobile-nav a,
    .mobile-nav button {
        height: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        background: transparent;
        color: #aaa4af;
        text-decoration: none;
        font-size: 18px;
        cursor: pointer;
    }

    .mobile-nav small {
        font-size: 8px;
        font-weight: 700;
    }

    .mobile-nav .active {
        color: var(--primary);
    }

    .mobile-nav .mobile-create {
        width: 48px;
        height: 48px;
        justify-self: center;
        margin-top: -22px;
        border-radius: 17px;
        background: linear-gradient(135deg, var(--primary), #8b5cff);
        color: white;
        font-size: 29px;
        box-shadow: 0 14px 24px rgba(109, 74, 255, .28);
    }
}

.form-page, .profile-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid rgba(229, 223, 241, .9);
    border-radius: 30px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(38, 24, 83, .08);
}
.form-page h1, .profile-card h1 { margin-top: 8px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.06em; }
.form-page > p, .profile-card > p { margin-top: 10px; color: var(--text-soft); }
.role-form { display: grid; gap: 16px; margin-top: 30px; }
.role-form label { display: grid; gap: 8px; color: #393244; font-size: 12px; font-weight: 800; }
.role-form input, .role-form select, .role-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 13px; padding: 13px 14px; color: var(--text); background: #fff; outline: 0; }
.role-form input:focus, .role-form select:focus, .role-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109,74,255,.1); }
.form-error { border: 1px solid #f2b8c2; background: #fff2f4; color: #a42c48; border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-card { max-width: 540px; text-align: center; }
.profile-avatar { width: 82px; height: 82px; margin: 0 auto 24px; font-size: 30px; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0; }
.profile-stats div { padding: 18px 12px; border-radius: 16px; background: var(--primary-soft); }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { color: var(--primary); font-size: 28px; }
.profile-stats span { margin-top: 4px; color: var(--text-soft); font-size: 11px; }
.profile-action { display: inline-flex; text-decoration: none; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Header polish */
@media (min-width: 761px) {
    .app-header { position: sticky; }
    .desktop-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
}

.user-copy strong a {
    color: inherit;
    text-decoration: none;
}

.user-copy strong a:hover { color: var(--primary); }

.themed-hero .create-role-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.create-role-icon {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 7px;
    font-size: 11px;
    line-height: 1;
}

.logo-mark {
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #fff7e9;
}

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

.feed-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}
.search-field { flex: 1; min-width: 220px; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.85); color: var(--text-soft); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.free-filter { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.feed-filters > button { height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--text); color: #fff; font-weight: 800; cursor: pointer; }
.feed-filters > a { color: var(--primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.role-title-link { color: inherit; text-decoration: none; }
.role-title-link:hover { color: var(--primary); }
.detail-card { max-width: 820px; margin: 0 auto; padding: clamp(26px, 5vw, 58px); border-radius: 32px; color: #fff; background: var(--hero-bg); box-shadow: 0 28px 70px rgba(30,20,68,.2); }
.detail-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.detail-date { color: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; }
.detail-card h1 { margin-top: 50px; max-width: 700px; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: -.06em; }
.detail-description { max-width: 620px; margin-top: 18px; color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 38px; }
.detail-grid div { padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.1); }
.detail-grid small, .detail-grid strong { display: block; }
.detail-grid small { color: rgba(255,255,255,.65); font-size: 10px; }
.detail-grid strong { margin-top: 6px; font-size: 12px; }
.detail-action { margin-top: 34px; background: #fff; color: var(--theme-accent); }
.back-link { display: inline-block; margin-top: 22px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; text-decoration: none; }
@media (max-width: 760px) { .feed-filters { flex-wrap: wrap; } .search-field { flex-basis: 100%; } .detail-grid { grid-template-columns: 1fr 1fr; } .detail-card h1 { margin-top: 35px; } }

@media (min-width: 761px) {
    .app-header { min-height: 96px; }
    .logo-mark {
        width: 66px;
        height: 66px;
    }
    .app-brand { gap: 14px; }
    .app-brand strong { font-size: 17px; }
    .app-brand small { font-size: 12px; }
}

@media (max-width: 760px) {
    .logo-mark { width: 50px; height: 50px; }
}

@media (max-width: 390px) {
    .login-visual {
        height: 34svh;
        min-height: 260px;
    }

    .visual-copy h1 {
        font-size: 30px;
    }

    .login-panel {
        padding-left: 17px;
        padding-right: 17px;
    }

    .login-header h2 {
        font-size: 26px;
    }

    .member-main {
        width: min(100% - 28px, 620px);
    }

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

    .spotlight-action {
        grid-template-columns: 1fr;
    }

    .bora-button.premium {
        width: 100%;
    }
}


/* ==================================================
   V04 — HERO TEMÁTICO + TODAS AS CATEGORIAS
================================================== */

.app-shell {
    --theme-accent: #6d4aff;
    --theme-accent-2: #8f75ff;
    --theme-soft: #f3efff;
    --hero-overlay-strong: rgba(78, 51, 185, .78);
    --hero-overlay-mid: rgba(108, 76, 222, .56);
    --hero-overlay-deep: rgba(35, 25, 92, .44);
    --hero-overlay-light: rgba(126, 94, 255, .20);
    --hero-overlay-bottom: rgba(21, 14, 58, .34);
    --hero-bg:
        url("../img/grupo-geral-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, #7961ff 0%, #6647e8 48%, #2f255d 100%);
}

.themed-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 330px;
    padding: 32px;
    border-radius: 34px;
    background: var(--hero-bg);
    color: white;
    box-shadow: 0 26px 60px rgba(22, 16, 48, .10);
}

.themed-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            var(--hero-overlay-strong),
            var(--hero-overlay-mid) 56%,
            var(--hero-overlay-deep)
        ),
        linear-gradient(
            180deg,
            var(--hero-overlay-light),
            var(--hero-overlay-bottom)
        );
}

.themed-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 56px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    backdrop-filter: blur(10px);
}

.hero-badge.ghost {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.80);
}

.themed-hero .member-kicker {
    color: rgba(255,255,255,.80);
}

.themed-hero h1 {
    max-width: 760px;
    margin-top: 10px;
    color: white;
    font-size: clamp(42px, 5vw, 76px);
    line-height: .96;
    letter-spacing: -.06em;
    text-shadow: 0 3px 20px rgba(0,0,0,.20);
}

.themed-hero p {
    max-width: 650px;
    margin-top: 14px;
    color: rgba(255,255,255,.90);
    font-size: 17px;
    line-height: 1.65;
}

.themed-hero .create-role-button {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 3;
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2));
    box-shadow: 0 16px 34px rgba(0,0,0,.16);
}

.hero-decoration {
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(4px);
    opacity: .55;
    pointer-events: none;
}

.hero-decoration-one {
    width: 280px;
    height: 280px;
    right: -70px;
    top: -90px;
    background: rgba(255,255,255,.12);
}

.hero-decoration-two {
    width: 220px;
    height: 220px;
    right: 140px;
    bottom: -120px;
    background: rgba(255,255,255,.08);
}

.category-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(109,74,255,.18) transparent;
}

.category-chip {
    text-decoration: none;
}

.category-chip.active {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2));
    border-color: transparent;
    color: white;
    box-shadow: 0 12px 26px rgba(25,18,54,.12);
}

.section-kicker,
.role-date {
    color: var(--theme-accent) !important;
}

.role-icon {
    background: var(--theme-soft) !important;
}

.bora-button,
.progress-bar {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2)) !important;
}

.spotlight-card {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 30%),
        linear-gradient(135deg, var(--theme-accent), #17142d) !important;
}

/* IDENTIDADES VISUAIS POR CATEGORIA
   Os fundos abaixo são placeholders. Quando aprovadas, as fotos entram
   no próprio --hero-bg sem alterar a estrutura do sistema. */

.theme-geral {
    --theme-accent: #6d4aff;
    --theme-accent-2: #9b76ff;
    --theme-soft: #f0ebff;
    --hero-overlay-strong: rgba(84, 57, 194, .80);
    --hero-overlay-mid: rgba(95, 65, 222, .58);
    --hero-overlay-deep: rgba(53, 37, 119, .46);
    --hero-overlay-light: rgba(159, 123, 255, .18);
    --hero-overlay-bottom: rgba(45, 32, 100, .36);
    --hero-bg:
        url("../img/grupo-geral-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 78% 22%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(135deg, #7961ff 0%, #6547e5 48%, #30275e 100%);
}

.theme-noturno {
    --theme-accent: #ab47ff;
    --theme-accent-2: #ff4c91;
    --theme-soft: #f8eaff;
    --hero-overlay-strong: rgba(130, 55, 194, .80);
    --hero-overlay-mid: rgba(149, 62, 222, .58);
    --hero-overlay-deep: rgba(79, 36, 119, .46);
    --hero-overlay-light: rgba(255, 83, 149, .18);
    --hero-overlay-bottom: rgba(66, 31, 100, .36);
    --hero-bg:
        url("../img/grupo-noturno-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 76% 20%, rgba(255,59,171,.32), transparent 24%),
        linear-gradient(135deg, #171022 0%, #452072 48%, #9b2f86 100%);
}

.theme-tranquilos {
    --theme-accent: #9b6a4b;
    --theme-accent-2: #c99472;
    --theme-soft: #f8efe8;
    --hero-overlay-strong: rgba(118, 81, 61, .80);
    --hero-overlay-mid: rgba(135, 93, 67, .58);
    --hero-overlay-deep: rgba(72, 50, 43, .46);
    --hero-overlay-light: rgba(203, 152, 120, .18);
    --hero-overlay-bottom: rgba(61, 43, 39, .36);
    --hero-bg:
        url("../img/grupo-tranquilo-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 78% 26%, rgba(255,241,218,.34), transparent 26%),
        linear-gradient(135deg, #6a4937 0%, #9b6a4b 48%, #c49a7f 100%);
}

.theme-volei {
    --theme-accent: #ff8a2a;
    --theme-accent-2: #ffbd45;
    --theme-soft: #fff0df;
    --hero-overlay-strong: rgba(192, 105, 36, .80);
    --hero-overlay-mid: rgba(221, 120, 39, .58);
    --hero-overlay-deep: rgba(114, 64, 29, .46);
    --hero-overlay-light: rgba(255, 192, 76, .18);
    --hero-overlay-bottom: rgba(95, 54, 27, .36);
    --hero-bg:
        url("../img/grupo-volei-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 76% 22%, rgba(255,237,184,.36), transparent 25%),
        linear-gradient(135deg, #c85e12 0%, #f08a28 48%, #ffbf54 100%);
}

.theme-yoga {
    --theme-accent: #4ba577;
    --theme-accent-2: #80c99e;
    --theme-soft: #eaf7ef;
    --hero-overlay-strong: rgba(59, 125, 93, .80);
    --hero-overlay-mid: rgba(66, 143, 105, .58);
    --hero-overlay-deep: rgba(38, 75, 62, .46);
    --hero-overlay-light: rgba(133, 203, 162, .18);
    --hero-overlay-bottom: rgba(33, 63, 54, .36);
    --hero-bg:
        url("../img/grupo-yoga-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 78% 20%, rgba(218,255,231,.28), transparent 28%),
        linear-gradient(135deg, #326f54 0%, #4fa77a 48%, #8fc3a3 100%);
}

.theme-corrida {
    --theme-accent: #e8a022;
    --theme-accent-2: #ffd05a;
    --theme-soft: #fff4d9;
    --hero-overlay-strong: rgba(175, 121, 30, .80);
    --hero-overlay-mid: rgba(201, 139, 32, .58);
    --hero-overlay-deep: rgba(104, 73, 26, .46);
    --hero-overlay-light: rgba(255, 210, 97, .18);
    --hero-overlay-bottom: rgba(87, 61, 25, .36);
    --hero-bg:
        url("../img/grupo-corrida-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 76% 20%, rgba(255,234,166,.32), transparent 25%),
        linear-gradient(135deg, #a7630b 0%, #e19a24 48%, #f6c54c 100%);
}

.theme-moto {
    --theme-accent: #52607d;
    --theme-accent-2: #8290aa;
    --theme-soft: #eef1f7;
    --hero-overlay-strong: rgba(64, 74, 98, .80);
    --hero-overlay-mid: rgba(72, 84, 110, .58);
    --hero-overlay-deep: rgba(41, 46, 64, .46);
    --hero-overlay-light: rgba(135, 148, 173, .18);
    --hero-overlay-bottom: rgba(36, 39, 56, .36);
    --hero-bg:
        url("../img/grupo-moto-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 76% 20%, rgba(255,255,255,.12), transparent 24%),
        linear-gradient(135deg, #1e2431 0%, #46516c 50%, #7a859d 100%);
}

.theme-beach {
    --theme-accent: #ff7c49;
    --theme-accent-2: #ffb479;
    --theme-soft: #fff0e8;
    --hero-overlay-strong: rgba(192, 94, 59, .80);
    --hero-overlay-mid: rgba(221, 108, 66, .58);
    --hero-overlay-deep: rgba(114, 58, 42, .46);
    --hero-overlay-light: rgba(255, 183, 126, .18);
    --hero-overlay-bottom: rgba(95, 49, 38, .36);
    --hero-bg:
        url("../img/grupo-beachtenis-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 76% 20%, rgba(255,244,204,.28), transparent 25%),
        linear-gradient(135deg, #d85d31 0%, #f58b56 48%, #f5bd83 100%);
}

.theme-girls {
    --theme-accent: #ff5da8;
    --theme-accent-2: #ff9fca;
    --theme-soft: #ffedf5;
    --hero-overlay-strong: rgba(192, 71, 130, .80);
    --hero-overlay-mid: rgba(221, 81, 147, .58);
    --hero-overlay-deep: rgba(114, 45, 82, .46);
    --hero-overlay-light: rgba(255, 163, 204, .18);
    --hero-overlay-bottom: rgba(95, 38, 70, .36);
    --hero-bg:
        url("../img/grupo-floripagirls-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 75% 20%, rgba(255,220,238,.38), transparent 25%),
        linear-gradient(135deg, #a83d75 0%, #e9559b 50%, #f79fc6 100%);
}

.theme-natureza {
    --theme-accent: #2c9d68;
    --theme-accent-2: #57c38c;
    --theme-soft: #e8f7ef;
    --hero-overlay-strong: rgba(36, 119, 82, .80);
    --hero-overlay-mid: rgba(40, 136, 92, .58);
    --hero-overlay-deep: rgba(25, 72, 55, .46);
    --hero-overlay-light: rgba(94, 197, 145, .18);
    --hero-overlay-bottom: rgba(23, 60, 49, .36);
    --hero-bg:
        url("../img/grupo-praiatrilha-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 77% 20%, rgba(181,255,208,.20), transparent 28%),
        linear-gradient(135deg, #14583e 0%, #2f8a63 48%, #62b87f 100%);
}

.theme-surf {
    --theme-accent: #199bd8;
    --theme-accent-2: #5cc9ef;
    --theme-soft: #e7f6fc;
    --hero-overlay-strong: rgba(22, 117, 165, .80);
    --hero-overlay-mid: rgba(23, 135, 189, .58);
    --hero-overlay-deep: rgba(17, 71, 102, .46);
    --hero-overlay-light: rgba(99, 203, 240, .18);
    --hero-overlay-bottom: rgba(16, 59, 87, .36);
    --hero-bg:
        url("../img/grupo-surf-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 77% 20%, rgba(198,242,255,.24), transparent 28%),
        linear-gradient(135deg, #0c557f 0%, #168fca 48%, #62c2e7 100%);
}

.theme-futevolei {
    --theme-accent: #18a55a;
    --theme-accent-2: #67cd8f;
    --theme-soft: #e9f8ef;
    --hero-overlay-strong: rgba(21, 125, 72, .80);
    --hero-overlay-mid: rgba(22, 143, 80, .58);
    --hero-overlay-deep: rgba(17, 75, 49, .46);
    --hero-overlay-light: rgba(109, 207, 147, .18);
    --hero-overlay-bottom: rgba(16, 63, 44, .36);
    --hero-bg:
        url("../img/grupo-futevolei-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 77% 20%, rgba(231,255,216,.24), transparent 27%),
        linear-gradient(135deg, #177043 0%, #25a95d 48%, #7ac887 100%);
}

.theme-tenis {
    --theme-accent: #64a62c;
    --theme-accent-2: #b3d657;
    --theme-soft: #f0f7e3;
    --hero-overlay-strong: rgba(77, 125, 38, .80);
    --hero-overlay-mid: rgba(88, 144, 41, .58);
    --hero-overlay-deep: rgba(49, 76, 30, .46);
    --hero-overlay-light: rgba(182, 216, 94, .18);
    --hero-overlay-bottom: rgba(42, 63, 28, .36);
    --hero-bg:
        url("../img/grupo-tenis-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 77% 20%, rgba(240,255,183,.26), transparent 26%),
        linear-gradient(135deg, #4b761e 0%, #74a834 48%, #b7cf5a 100%);
}

.theme-among {
    --theme-accent: #7650ff;
    --theme-accent-2: #bd7aff;
    --theme-soft: #f0ebff;
    --hero-overlay-strong: rgba(90, 62, 194, .80);
    --hero-overlay-mid: rgba(103, 70, 222, .58);
    --hero-overlay-deep: rgba(57, 39, 119, .46);
    --hero-overlay-light: rgba(192, 127, 255, .18);
    --hero-overlay-bottom: rgba(48, 34, 100, .36);
    --hero-bg:
        url("../img/grupo-among-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 77% 20%, rgba(255,147,230,.22), transparent 24%),
        linear-gradient(135deg, #2f246d 0%, #6744d9 48%, #9b57c9 100%);
}

.theme-basquete {
    --theme-accent: #f5791d;
    --theme-accent-2: #ffae43;
    --theme-soft: #fff0e2;
    --hero-overlay-strong: rgba(184, 92, 27, .80);
    --hero-overlay-mid: rgba(212, 105, 28, .58);
    --hero-overlay-deep: rgba(110, 57, 24, .46);
    --hero-overlay-light: rgba(255, 177, 75, .18);
    --hero-overlay-bottom: rgba(91, 48, 23, .36);
    --hero-bg:
        url("../img/grupo-basquete-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 77% 20%, rgba(255,217,157,.30), transparent 25%),
        linear-gradient(135deg, #984516 0%, #e16b22 48%, #ef9c3f 100%);
}

.theme-networking {
    --theme-accent: #3d78ff;
    --theme-accent-2: #7ca5ff;
    --theme-soft: #ebf1ff;
    --hero-overlay-strong: rgba(48, 91, 194, .80);
    --hero-overlay-mid: rgba(54, 105, 222, .58);
    --hero-overlay-deep: rgba(33, 56, 119, .46);
    --hero-overlay-light: rgba(129, 169, 255, .18);
    --hero-overlay-bottom: rgba(29, 47, 100, .36);
    --hero-bg:
        url("../img/grupo-netwoking-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 77% 20%, rgba(190,216,255,.24), transparent 26%),
        linear-gradient(135deg, #234a9d 0%, #3f73d8 48%, #7299e4 100%);
}

.theme-luta {
    --theme-accent: #df5943;
    --theme-accent-2: #ff8770;
    --theme-soft: #fcece8;
    --hero-overlay-strong: rgba(168, 68, 55, .80);
    --hero-overlay-mid: rgba(193, 78, 60, .58);
    --hero-overlay-deep: rgba(101, 43, 40, .46);
    --hero-overlay-light: rgba(255, 140, 118, .18);
    --hero-overlay-bottom: rgba(84, 37, 36, .36);
    --hero-bg:
        url("../img/grupo-luta-hero.webp") center / cover no-repeat,
        radial-gradient(circle at 77% 20%, rgba(255,201,190,.22), transparent 25%),
        linear-gradient(135deg, #7d2c23 0%, #c64f3d 48%, #e77761 100%);
}

/* Header v0.5: marca e navegação com mais presença */
.app-header {
    min-height: 84px;
    border-bottom-color: rgba(222, 215, 239, .78);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,246,253,.90));
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, #efe9ff, #fff0f8 62%, #e9f8f2);
    box-shadow: 0 9px 24px rgba(103, 72, 204, .13), inset 0 0 0 1px rgba(109, 74, 255, .12);
    font-size: 23px;
}

.brand-mark span { transform: translateY(-1px); }

.app-brand strong {
    color: #211b32;
    font-size: 16px;
    letter-spacing: -.02em;
}

.app-brand small {
    color: #898197;
    font-size: 11px;
    font-weight: 600;
}

.app-brand small i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 2px;
    border-radius: 50%;
    background: #39c984;
    box-shadow: 0 0 0 3px rgba(57, 201, 132, .12);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 18px;
    padding: 5px;
    border: 1px solid rgba(224, 217, 238, .9);
    border-radius: 14px;
    background: rgba(255,255,255,.66);
}

.desktop-nav a {
    padding: 9px 14px;
    border-radius: 10px;
    color: #81788f;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.icon-button {
    position: relative;
    background: rgba(255,255,255,.88);
    box-shadow: 0 6px 16px rgba(37, 25, 74, .06);
}

.icon-button b {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5d9f;
    box-shadow: 0 0 0 3px #fff;
}

@media (max-width: 760px) {
    .app-header { min-height: 70px; padding: 10px 16px; }
    .desktop-nav, .user-copy { display: none; }
    .brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
    .app-brand strong { font-size: 14px; }
    .app-brand small { font-size: 10px; }
    .header-actions { gap: 8px; }
}

@media (max-width: 900px) {
    .themed-hero {
        min-height: 310px;
        padding: 26px;
    }

    .hero-badges {
        margin-bottom: 44px;
    }

    .themed-hero .create-role-button {
        right: 26px;
        bottom: 26px;
    }
}

@media (max-width: 760px) {
    .themed-hero {
        min-height: 360px;
        padding: 22px;
        border-radius: 26px;
    }

    .hero-badges {
        margin-bottom: 34px;
    }

    .themed-hero h1 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .themed-hero p {
        font-size: 14px;
        line-height: 1.55;
        max-width: 90%;
    }

    .themed-hero .create-role-button {
        left: 22px;
        right: 22px;
        bottom: 22px;
        width: auto;
        justify-content: center;
    }

    .category-scroll {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-right: -12px;
        padding-right: 12px;
    }

    .category-chip {
        flex: 0 0 auto;
    }
}




/* ==================================================
   V0.6 — CHECK-IN, CARONA E CALENDÁRIO
================================================== */
.detail-page {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 24px;
    align-items: start;
}

.detail-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.detail-actions-grid form { margin: 0; }
.detail-actions-grid button { width: 100%; }

.checkin-button {
    min-height: 54px;
    border: 1px solid rgba(109,74,255,.18);
    border-radius: 16px;
    background: #fff;
    color: #5f4ac6;
    font-weight: 850;
    cursor: pointer;
}

.checkin-button.checked,
.mini-checkin.checked {
    border-color: rgba(43,178,112,.20);
    background: #eaf9f1;
    color: #218b59;
}

.agenda-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #f8f6fc;
    border: 1px solid rgba(109,74,255,.08);
}

.agenda-actions > span {
    color: #756e82;
    font-size: 12px;
    font-weight: 800;
}

.agenda-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.calendar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #e7e2ef;
    color: #5c5569;
    font-size: 11px;
    font-weight: 850;
}
.calendar-button.google { color: var(--primary); }

.carpool-card {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(109,74,255,.08);
    box-shadow: 0 20px 46px rgba(25,18,54,.06);
}

.carpool-heading h2 {
    margin-top: 6px;
    font-size: 30px;
    letter-spacing: -.04em;
}
.carpool-heading p { margin-top: 8px; color: #81798d; font-size: 13px; line-height: 1.55; }
.carpool-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.carpool-stats span {
    padding: 8px 10px;
    border-radius: 999px;
    background: #f5f2fb;
    color: #665f72;
    font-size: 11px;
    font-weight: 800;
}

.carpool-current {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 15px;
    border-radius: 16px;
    background: #edf9f3;
    border: 1px solid #d9f1e4;
}
.carpool-current small, .carpool-current span { display: block; color: #738078; font-size: 11px; }
.carpool-current strong { display: block; margin: 4px 0; }
.carpool-remove { border: 0; background: transparent; color: #b05151; font-weight: 800; cursor: pointer; }

.carpool-form { margin-top: 18px; }
.carpool-choice { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.carpool-choice input { position: absolute; opacity: 0; pointer-events: none; }
.carpool-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #e5dfed;
    background: #fff;
    color: #6b6376;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}
.carpool-choice input:checked + span {
    color: var(--primary);
    border-color: rgba(109,74,255,.28);
    background: var(--primary-soft);
}
.carpool-fields { display: grid; gap: 10px; margin-top: 12px; }
.carpool-fields label { color: #6f6879; font-size: 11px; font-weight: 800; }
.carpool-fields input {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 0 12px;
    border: 1px solid #e4dfeb;
    border-radius: 12px;
    background: #fff;
}
.carpool-fields .btn-primary { min-height: 48px; height: 48px; }
.carpool-locked { margin-top: 18px; padding: 14px; border-radius: 15px; background: #f8f6fb; color: #766f80; font-size: 12px; }

.carpool-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eeeaf2;
}
.carpool-list > div { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 13px; background: #faf9fc; }
.carpool-list > div > span { font-size: 20px; }
.carpool-list strong, .carpool-list small { display: block; }
.carpool-list small { margin-top: 3px; color: #88808f; }

.calendar-layout {
    display: grid;
    grid-template-columns: 360px minmax(0,1fr);
    gap: 22px;
    margin-top: 28px;
    align-items: start;
}

.mini-calendar {
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(109,74,255,.08);
    box-shadow: 0 18px 40px rgba(25,18,54,.05);
}
.mini-calendar-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.mini-calendar-head strong { font-size: 18px; }
.mini-calendar-head span { color: #8b8395; font-size: 11px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-weekdays { margin-bottom: 8px; }
.calendar-weekdays span { text-align: center; color: #9a93a1; font-size: 10px; font-weight: 800; }
.calendar-day {
    position: relative;
    min-height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #625b6d;
    font-size: 12px;
    font-weight: 750;
}
.calendar-day.today { background: #f0ebff; color: var(--primary); }
.calendar-day.has-event { box-shadow: inset 0 0 0 1px rgba(109,74,255,.22); }
.calendar-day b {
    position: absolute;
    right: 3px;
    top: 3px;
    min-width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 8px;
}

.agenda-list { display: grid; gap: 10px; }
.agenda-item {
    display: grid;
    grid-template-columns: 66px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(109,74,255,.08);
}
.agenda-date-box {
    min-height: 62px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--primary);
}
.agenda-date-box strong, .agenda-date-box span { display: block; text-align: center; }
.agenda-date-box strong { font-size: 17px; }
.agenda-date-box span { margin-top: 3px; font-size: 10px; font-weight: 800; }
.agenda-copy small { color: var(--primary); font-size: 10px; font-weight: 800; }
.agenda-copy h3 { margin-top: 4px; font-size: 17px; }
.agenda-copy p { margin-top: 5px; color: #827a8d; font-size: 11px; }
.agenda-item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.agenda-item-actions a, .mini-checkin {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #e4dfeb;
    border-radius: 10px;
    background: #fff;
    color: #675f72;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}
.my-roles-heading { margin-top: 42px; }

.profile-stats { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }

@media (max-width: 980px) {
    .detail-page, .calendar-layout { grid-template-columns: 1fr; }
    .mini-calendar { max-width: 520px; width: 100%; }
}

@media (max-width: 760px) {
    .detail-page { display: block; }
    .carpool-card { margin-top: 16px; border-radius: 22px; }
    .detail-actions-grid { grid-template-columns: 1fr; }
    .agenda-actions { align-items: flex-start; flex-direction: column; }
    .agenda-item { grid-template-columns: 58px minmax(0,1fr); }
    .agenda-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .carpool-choice { grid-template-columns: 1fr; }
    .profile-stats { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ==================================================
   V07 — CRIADOR + CARONA COMPLETA + AGENDA MAIS LIMPA
================================================== */
.role-creator-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    min-width: 0;
}
.creator-avatar,
.ride-avatar {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-accent, var(--primary)), var(--theme-accent-2, #9677ff));
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(56, 38, 105, .12);
}
.creator-copy {
    min-width: 0;
    color: #81798b;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.creator-copy strong { color: #4c4557; }
.origin-chip {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--theme-soft, #f4f0ff);
    color: var(--theme-accent, var(--primary));
    border: 1px solid color-mix(in srgb, var(--theme-accent, var(--primary)) 14%, transparent);
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Agenda: uma ação principal + menu secundário. */
.agenda-item {
    grid-template-columns: 66px minmax(0,1fr) 190px;
}
.agenda-item-actions.clean-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 7px;
    min-width: 0;
}
.agenda-detail-button,
.agenda-menu > summary {
    min-height: 38px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}
.agenda-detail-button {
    border: 1px solid transparent !important;
    background: linear-gradient(135deg, var(--primary), #8c64ff) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(109, 74, 255, .16);
}
.agenda-menu {
    position: relative;
}
.agenda-menu > summary {
    list-style: none;
    border: 1px solid #e5dfed;
    background: #fff;
    color: #665f72;
}
.agenda-menu > summary::-webkit-details-marker { display: none; }
.agenda-menu-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    z-index: 12;
    width: 210px;
    display: grid;
    gap: 5px;
    padding: 8px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #e8e3ed;
    box-shadow: 0 16px 34px rgba(22, 16, 48, .14);
}
.agenda-menu-popover a {
    min-height: 35px;
    justify-content: flex-start !important;
    border: 0 !important;
    background: #f8f6fb !important;
}

/* Carona: fluxo motorista -> pedido -> aceite. */
.ride-confirmed-banner {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #cfeadc;
    border-radius: 16px;
    background: #edf9f3;
}
.ride-confirmed-banner > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2da66d;
    color: #fff;
    font-weight: 900;
}
.ride-confirmed-banner small,
.ride-confirmed-banner strong { display: block; }
.ride-confirmed-banner small { color: #728078; font-size: 10px; }
.ride-confirmed-banner strong { margin-top: 4px; color: #294b3b; }
.ride-confirmed-banner button {
    border: 0;
    background: transparent;
    color: #a34d4d;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.carpool-subsection {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eeeaf2;
}
.carpool-subheading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.carpool-subheading > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-soft);
    font-size: 16px;
}
.carpool-subheading h3 {
    font-size: 16px;
    letter-spacing: -.02em;
}
.carpool-subheading p {
    margin-top: 3px;
    color: #8b8395;
    font-size: 10px;
}
.driver-offers-grid,
.ride-request-list {
    display: grid;
    gap: 10px;
}
.driver-offer-card,
.ride-request-card {
    padding: 13px;
    border-radius: 15px;
    border: 1px solid #ece7f1;
    background: #fbfafc;
}
.driver-offer-card.mine {
    background: #f7f3ff;
    border-color: rgba(109,74,255,.15);
}
.driver-offer-head,
.ride-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ride-person {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.ride-person strong,
.ride-person small { display: block; }
.ride-person strong { color: #3f384a; font-size: 12px; }
.ride-person small {
    margin-top: 3px;
    color: #8a8293;
    font-size: 9px;
}
.your-offer-chip {
    padding: 6px 8px;
    border-radius: 999px;
    background: #ebe5ff;
    color: var(--primary);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}
.seat-status {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 12px 0 10px;
    color: #81798b;
    font-size: 9px;
}
.seat-status strong {
    color: #342d3e;
    font-size: 20px;
}
.request-seat-button,
.ride-secondary-button,
.accept-ride,
.reject-ride {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.request-seat-button {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, var(--primary), #8c64ff);
    color: white;
}
.ride-secondary-button {
    width: 100%;
    border: 1px solid #e3dde9;
    background: white;
    color: #675f72;
}
.request-status {
    margin: 8px 0;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 9px;
    line-height: 1.4;
    font-weight: 800;
}
.request-status.pending { background: #fff7dc; color: #7b6722; }
.request-status.accepted { background: #eaf8f0; color: #2d7652; }
.request-status.rejected,
.request-status.full { background: #f8edef; color: #8c4d57; }
.ride-request-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.accept-ride {
    border: 0;
    background: #2da66d;
    color: #fff;
}
.reject-ride {
    border: 1px solid #eadfe2;
    background: #fff;
    color: #a14e5d;
}
.passenger-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}
.passenger-list .ride-person {
    padding: 10px;
    border-radius: 13px;
    background: #faf9fc;
}

@media (max-width: 980px) {
    .agenda-item { grid-template-columns: 60px minmax(0,1fr) 160px; }
}

@media (max-width: 760px) {
    .role-creator-row { align-items: center; }
    .creator-copy { white-space: normal; }
    .origin-chip { margin-left: 0; }
    .agenda-item { grid-template-columns: 58px minmax(0,1fr); }
    .agenda-item-actions.clean-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
    .agenda-menu-popover {
        left: 0;
        right: auto;
        width: min(240px, 78vw);
    }
    .ride-confirmed-banner {
        grid-template-columns: 34px minmax(0,1fr);
    }
    .ride-confirmed-banner form { grid-column: 2; }
    .driver-offer-head,
    .ride-request-card { align-items: flex-start; }
    .ride-request-card { flex-direction: column; }
    .ride-request-actions { width: 100%; }
    .ride-request-actions form { flex: 1; }
    .ride-request-actions button { width: 100%; }
    .passenger-list { grid-template-columns: 1fr; }
}
.accepted-riders {
    margin: -2px 0 10px;
    padding: 8px 9px;
    border-radius: 9px;
    background: #edf8f2;
    color: #347052;
    font-size: 9px;
    font-weight: 800;
}



/* ==================================================
   V0.7.2 — MOBILE / TABLET POLISH
================================================== */

/* Logo consistente no login */
.mobile-brand-icon {
    overflow: hidden;
    background: #f6f1ff;
}
.mobile-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.brand-badge img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 8px;
}

/* categorias: deixa óbvio que dá para arrastar */
.category-section,
.category-wrap,
.category-area {
    position: relative;
}
.category-scroll,
.category-chips {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar,
.category-chips::-webkit-scrollbar {
    display: none;
}

@media (max-width: 760px) {
    /* parceiro mais compacto */
    .spotlight-card,
    .partner-card {
        padding: 24px 22px !important;
        border-radius: 26px !important;
        min-height: auto !important;
    }

    .spotlight-main,
    .partner-card {
        gap: 0 !important;
    }

    .spotlight-card h3,
    .partner-card h3 {
        margin-top: 16px !important;
        font-size: clamp(34px, 9.5vw, 46px) !important;
        line-height: 1.02 !important;
    }

    .spotlight-card p,
    .partner-card p {
        margin-top: 14px !important;
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .spotlight-meta,
    .partner-grid {
        margin-top: 18px !important;
        gap: 8px !important;
    }

    .spotlight-action {
        margin-top: 20px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    .people-count {
        margin: 0 !important;
    }

    .people-count strong,
    .participant-count {
        line-height: 1 !important;
    }

    .spotlight-card .bora-button,
    .partner-card .bora-button,
    .spotlight-card .premium {
        margin-top: 0 !important;
        min-height: 56px !important;
    }

    /* feed: 1 card por linha no celular */
    .role-grid,
    .roles-grid,
    .feed-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
        overflow: visible !important;
    }

    .role-card,
    .standard-role {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: unset !important;
    }

    /* se existia carrossel horizontal, neutraliza */
    .roles-section,
    .feed-section {
        overflow: visible !important;
    }

    /* categorias com fade na direita */
    .category-scroll,
    .category-chips {
        position: relative;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-right: 42px !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(90deg, #000 0%, #000 88%, rgba(0,0,0,.15) 98%, transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, rgba(0,0,0,.15) 98%, transparent 100%);
    }

    .category-chip,
    .chip {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* respiração geral */
    .feed-section .section-heading,
    .roles-section .section-top {
        margin-bottom: 16px !important;
    }

    /* header mobile mais enxuto */
    .app-header-inner,
    .app-header {
        min-height: 76px !important;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    /* tablet: duas colunas consistentes */
    .role-grid,
    .roles-grid,
    .feed-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    .role-card,
    .standard-role {
        min-width: 0 !important;
        width: 100% !important;
    }

    .category-scroll,
    .category-chips {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        scrollbar-width: none;
    }
}

@media (min-width: 1101px) {
    /* desktop: três colunas */
    .role-grid,
    .roles-grid,
    .feed-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}


/* V0.7.3 - menu mobile funcional */
html { scroll-behavior: smooth; }
@media (max-width: 760px) {
    .app-shell .member-main,
    .app-shell .app-main {
        padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-nav a {
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav .mobile-create.active {
        box-shadow: 0 16px 30px rgba(109, 74, 255, .38);
        transform: translateY(-1px);
    }
}



/* ==================================================
   V0.7.4 — AGENDA DESKTOP
   Mobile/tablet mantidos; correção exclusiva do PC.
================================================== */

@media (min-width: 981px) {
    /* A página de agenda precisa usar a largura disponível no desktop. */
    .form-page.agenda-page {
        width: min(1100px, calc(100vw - 80px));
        max-width: 1100px;
        padding: 42px 46px 48px;
    }

    /* Calendário à esquerda + agenda confortável à direita. */
    .agenda-page .calendar-layout {
        grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    .agenda-page .mini-calendar {
        width: 100%;
        max-width: none;
        position: sticky;
        top: 104px;
    }

    .agenda-page .agenda-list {
        min-width: 0;
        gap: 12px;
    }

    /* Evita qualquer esmagamento/sobreposição no card lateral. */
    .agenda-page .agenda-item {
        width: 100%;
        min-width: 0;
        grid-template-columns: 72px minmax(220px, 1fr) 148px;
        gap: 16px;
        padding: 16px;
        align-items: center;
    }

    .agenda-page .agenda-copy {
        min-width: 0;
    }

    .agenda-page .agenda-copy h3 {
        margin-top: 5px;
        font-size: 18px;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .agenda-page .agenda-copy p {
        margin-top: 7px;
    }

    .agenda-page .agenda-item-actions.clean-actions {
        width: 148px;
        min-width: 148px;
        justify-self: end;
    }

    .agenda-page .agenda-detail-button,
    .agenda-page .agenda-menu > summary {
        min-height: 40px;
        padding: 0 12px;
        white-space: nowrap;
    }

    .agenda-page .agenda-menu-popover {
        width: 220px;
        right: 0;
    }

    /* A visão em cards também aproveita a nova largura. */
    .agenda-page .my-role-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Notebook menor: ainda lado a lado, mas sem apertar conteúdo. */
@media (min-width: 981px) and (max-width: 1180px) {
    .form-page.agenda-page {
        width: calc(100vw - 48px);
        padding-left: 32px;
        padding-right: 32px;
    }

    .agenda-page .calendar-layout {
        grid-template-columns: 330px minmax(0, 1fr);
        gap: 20px;
    }

    .agenda-page .agenda-item {
        grid-template-columns: 66px minmax(180px, 1fr);
    }

    .agenda-page .agenda-item-actions.clean-actions {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        justify-self: stretch;
    }

    .agenda-page .agenda-menu-popover {
        left: auto;
        right: 0;
    }

    .agenda-page .my-role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* ==================================================
   V0.7.5 — AGENDA DESKTOP REORGANIZADA
   Em vez de apertar calendário + card lado a lado,
   no PC o calendário fica em cima e os rolês abaixo.
================================================== */

.agenda-list-heading {
    display: none;
}

@media (min-width: 981px) {
    .form-page.agenda-page {
        width: min(1040px, calc(100vw - 80px)) !important;
        max-width: 1040px !important;
        padding: 42px 46px 48px !important;
    }

    .agenda-page .calendar-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        margin-top: 28px !important;
    }

    .agenda-page .mini-calendar {
        position: static !important;
        width: 100% !important;
        max-width: 560px !important;
        margin: 0 auto !important;
    }

    .agenda-page .agenda-list {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        gap: 12px !important;
    }

    .agenda-list-heading {
        display: block;
        margin: 4px 0 4px;
    }

    .agenda-list-heading .section-kicker {
        margin-bottom: 8px;
    }

    .agenda-list-heading h2 {
        font-size: 28px;
        line-height: 1.05;
        letter-spacing: -.04em;
    }

    .agenda-page .agenda-item {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: 78px minmax(0, 1fr) 180px !important;
        gap: 18px !important;
        align-items: center !important;
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .agenda-page .agenda-date-box {
        width: 78px !important;
        min-width: 78px !important;
        min-height: 72px !important;
    }

    .agenda-page .agenda-copy {
        min-width: 0 !important;
        padding-right: 6px;
    }

    .agenda-page .agenda-copy small {
        display: block;
        font-size: 11px;
        margin-bottom: 4px;
    }

    .agenda-page .agenda-copy h3 {
        margin: 0 !important;
        font-size: 20px !important;
        line-height: 1.15 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .agenda-page .agenda-copy h3 a {
        text-decoration: none;
    }

    .agenda-page .agenda-copy p {
        margin-top: 7px !important;
        font-size: 12px !important;
    }

    .agenda-page .agenda-item-actions.clean-actions {
        grid-column: auto !important;
        width: 180px !important;
        min-width: 180px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        justify-self: end !important;
        align-self: center !important;
    }

    .agenda-page .agenda-detail-button,
    .agenda-page .agenda-menu > summary {
        width: 100% !important;
        min-height: 42px !important;
        padding: 0 14px !important;
        white-space: nowrap !important;
        border-radius: 12px !important;
    }

    .agenda-page .agenda-menu-popover {
        width: 230px !important;
        left: auto !important;
        right: 0 !important;
    }

    .agenda-page .my-roles-heading {
        margin-top: 46px !important;
    }
}

/* Notebook pequeno: ações descem para a linha de baixo,
   mas o texto nunca é esmagado. */
@media (min-width: 981px) and (max-width: 1120px) {
    .form-page.agenda-page {
        width: calc(100vw - 52px) !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .agenda-page .agenda-item {
        grid-template-columns: 72px minmax(0, 1fr) !important;
    }

    .agenda-page .agenda-item-actions.clean-actions {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-self: stretch !important;
    }

    .agenda-page .agenda-menu-popover {
        right: 0 !important;
    }
}




/* ==================================================
   V0.7.7 — PROFILE V2
================================================== */

.creator-profile-link {
    color: inherit;
    text-decoration: none;
}
.creator-profile-link:hover { color: var(--primary); }

.profile-v2-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 28px;
    padding-bottom: 120px;
}

.profile-toast {
    margin-bottom: 14px;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}
.profile-toast.success {
    background: #eaf9f0;
    color: #26784b;
    border: 1px solid #cdeedb;
}
.profile-toast.warning {
    background: #fff5df;
    color: #8a601a;
    border: 1px solid #f1dfb7;
}

.profile-cover-card {
    overflow: hidden;
    border: 1px solid rgba(229, 223, 241, .95);
    border-radius: 30px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 24px 70px rgba(38,24,83,.08);
}

.profile-cover-art {
    position: relative;
    height: 190px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 24%, rgba(255,125,172,.46), transparent 26%),
        radial-gradient(circle at 68% 78%, rgba(255,191,75,.28), transparent 24%),
        linear-gradient(120deg, #4423a2 0%, #7147f2 48%, #a867ff 100%);
}
.profile-cover-art::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .26;
    background:
        radial-gradient(circle at 18% 25%, rgba(255,255,255,.55) 0 2px, transparent 3px),
        radial-gradient(circle at 31% 50%, rgba(255,255,255,.35) 0 2px, transparent 3px),
        radial-gradient(circle at 75% 30%, rgba(255,255,255,.45) 0 2px, transparent 3px);
    background-size: 90px 90px, 120px 120px, 140px 140px;
}
.profile-cover-orb {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
}
.profile-cover-orb.orb-one {
    width: 280px; height: 280px; right: -40px; top: -110px;
}
.profile-cover-orb.orb-two {
    width: 190px; height: 190px; right: 170px; bottom: -120px;
}
.profile-cover-copy {
    position: absolute;
    right: 32px;
    bottom: 24px;
    color: rgba(255,255,255,.86);
    font-weight: 800;
    font-size: 13px;
}

.profile-main-info {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    padding: 0 34px 34px;
}

.profile-photo-wrap {
    margin-top: -70px;
    position: relative;
    z-index: 2;
}
.profile-photo {
    width: 140px;
    height: 140px;
    display: block;
    object-fit: cover;
    border-radius: 34px;
    border: 6px solid #fff;
    box-shadow: 0 16px 34px rgba(27,17,61,.18);
}
.profile-photo-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #6d4aff, #9f76ff);
}

.profile-identity { padding-top: 22px; min-width: 0; }
.profile-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.profile-name-row .section-kicker { margin-bottom: 6px; }
.profile-name-row h1 {
    margin: 0;
    font-size: clamp(36px, 4.6vw, 58px);
    line-height: .96;
    letter-spacing: -.06em;
}
.profile-handle {
    margin-top: 8px;
    color: #8c8499;
    font-size: 14px;
    font-weight: 700;
}
.profile-location {
    margin-top: 17px;
    color: #625c69;
    font-size: 13px;
    font-weight: 700;
}
.profile-bio {
    max-width: 680px;
    margin-top: 12px;
    color: #625c69;
    font-size: 15px;
    line-height: 1.65;
}
.profile-edit-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid #ded8e9;
    border-radius: 13px;
    background: #fff;
    color: #342d40;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.profile-edit-button:hover {
    border-color: rgba(109,74,255,.36);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(38,24,83,.07);
}
.profile-more-menu { position: relative; }
.profile-more-menu summary {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    list-style: none;
    cursor: pointer;
    border: 1px solid #e4dfec;
    border-radius: 13px;
    font-weight: 900;
}
.profile-more-menu summary::-webkit-details-marker { display: none; }
.profile-more-menu form {
    position: absolute;
    z-index: 8;
    right: 0;
    top: 50px;
    width: 190px;
    padding: 8px;
    border: 1px solid #e8e3ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(24,16,52,.14);
}
.profile-more-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #b63f50;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    font-weight: 800;
}

.profile-interest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.profile-interest-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e3ddec;
    background: #faf8ff;
    color: #5c5368;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}
.profile-interest-chip:hover {
    color: var(--primary);
    border-color: rgba(109,74,255,.28);
}

.profile-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}
.profile-main-column,
.profile-side-column {
    display: grid;
    gap: 22px;
}
.profile-section,
.profile-side-card {
    border: 1px solid rgba(229,223,241,.92);
    border-radius: 24px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 16px 44px rgba(38,24,83,.05);
}
.profile-section { padding: 24px; }
.profile-side-card { padding: 22px; }
.profile-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.profile-section-heading .section-kicker,
.profile-side-card .section-kicker { margin-bottom: 7px; }
.profile-section-heading h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.04em;
}
.profile-section-heading > a {
    color: var(--primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.profile-role-list { display: grid; gap: 10px; }
.profile-role-row {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 28px;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #ece8f2;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.profile-role-row:hover {
    transform: translateY(-1px);
    border-color: rgba(109,74,255,.28);
    box-shadow: 0 10px 24px rgba(38,24,83,.06);
}
.profile-role-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--primary-soft);
    font-size: 23px;
}
.profile-role-copy { min-width: 0; }
.profile-role-copy small {
    display: block;
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.profile-role-copy strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.profile-role-copy span {
    display: block;
    margin-top: 5px;
    color: #8c8498;
    font-size: 11px;
}
.profile-role-arrow {
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
}

.profile-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}
.profile-history-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #ece8f2;
    border-radius: 17px;
    color: inherit;
    text-decoration: none;
}
.profile-history-card > span { font-size: 27px; }
.profile-history-card small {
    display: block;
    margin-top: 12px;
    color: var(--primary);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.profile-history-card strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}
.profile-history-card p {
    margin-top: 8px;
    color: #4b9e6e;
    font-size: 10px;
    font-weight: 800;
}

.profile-empty {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border-radius: 17px;
    background: #f8f5ff;
}
.profile-empty > span { font-size: 26px; }
.profile-empty strong { display: block; font-size: 13px; }
.profile-empty p { margin-top: 4px; color: #8c8498; font-size: 11px; }
.profile-empty > a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}
.profile-empty.subtle { grid-template-columns: 42px minmax(0,1fr); }

.profile-side-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    letter-spacing: -.035em;
}
.profile-stats-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.profile-stats-v2 div {
    padding: 14px 7px;
    border-radius: 14px;
    background: #f3efff;
    text-align: center;
}
.profile-stats-v2 strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
}
.profile-stats-v2 span {
    display: block;
    margin-top: 3px;
    color: #91899d;
    font-size: 9px;
    line-height: 1.25;
}
.profile-carona-note {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: #ebf8f0;
    color: #397b55;
    font-size: 11px;
    font-weight: 800;
}

.profile-favorites { display: grid; gap: 7px; }
.profile-favorites a {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 20px;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
}
.profile-favorites a:hover { background: #f7f4ff; }
.profile-favorites > a > span { font-size: 20px; text-align: center; }
.profile-favorites strong { display: block; font-size: 12px; }
.profile-favorites small { display: block; margin-top: 2px; color: #9b94a5; font-size: 9px; }
.profile-favorites b { color: var(--primary); }

.profile-badges { display: grid; gap: 8px; }
.profile-badge {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 13px;
    background: #faf8ff;
}
.profile-badge > span {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: #eee8ff;
    font-size: 19px;
}
.profile-badge strong { display: block; font-size: 11px; }
.profile-badge small { display: block; margin-top: 2px; color: #948d9f; font-size: 9px; }

.profile-settings-card { display: grid; gap: 5px; }
.profile-settings-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 3px;
    border-bottom: 1px solid #eeeaf2;
    color: #554e60;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}
.profile-settings-card > a:last-child { border-bottom: 0; }
.profile-settings-card .profile-logout { color: #b44350; }

/* Edit profile */
.edit-profile-page {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 120px;
}
.edit-profile-heading > a {
    display: inline-block;
    margin-bottom: 28px;
    color: #70687b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.edit-profile-heading h1 {
    max-width: 720px;
    margin: 5px 0 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: .98;
    letter-spacing: -.06em;
}
.edit-profile-heading > p {
    max-width: 620px;
    margin-top: 12px;
    color: #7d7587;
    line-height: 1.6;
}
.edit-profile-card {
    margin-top: 26px;
    padding: 28px;
    border: 1px solid #e7e1ee;
    border-radius: 26px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 20px 55px rgba(38,24,83,.07);
}
.edit-profile-avatar-section {
    display: grid;
    grid-template-columns: 100px minmax(0,1fr);
    gap: 18px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #eeeaf2;
}
.edit-avatar-preview {
    width: 100px; height: 100px;
    overflow: hidden;
    display: grid; place-items: center;
    border-radius: 25px;
    background: linear-gradient(135deg,#6d4aff,#a77fff);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}
.edit-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.edit-profile-avatar-section h3 { font-size: 17px; }
.edit-profile-avatar-section p {
    max-width: 520px;
    margin-top: 5px;
    color: #8c8498;
    font-size: 11px;
    line-height: 1.5;
}
.upload-profile-photo {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 11px;
    padding: 0 14px;
    border-radius: 11px;
    background: #eee8ff;
    color: var(--primary);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}
.upload-profile-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.edit-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 24px;
}
.edit-profile-grid label { display: grid; gap: 7px; }
.edit-profile-grid label.full { grid-column: 1 / -1; }
.edit-profile-grid label > span {
    display: flex;
    justify-content: space-between;
    color: #4d4656;
    font-size: 11px;
    font-weight: 800;
}
.edit-profile-grid label > span small { color: #9992a2; font-weight: 600; }
.edit-profile-grid input,
.edit-profile-grid textarea,
.username-field {
    width: 100%;
    border: 1px solid #dfd9e7;
    border-radius: 13px;
    background: #fff;
    color: #2a2630;
    outline: 0;
}
.edit-profile-grid input { height: 48px; padding: 0 13px; }
.edit-profile-grid textarea { padding: 13px; resize: vertical; font: inherit; }
.edit-profile-grid input:focus,
.edit-profile-grid textarea:focus,
.username-field:focus-within {
    border-color: rgba(109,74,255,.58);
    box-shadow: 0 0 0 4px rgba(109,74,255,.08);
}
.username-field {
    display: flex;
    align-items: center;
    padding-left: 13px;
}
.username-field b { color: #9b94a4; }
.username-field input { border: 0; box-shadow: none !important; }

.edit-interests-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid #eeeaf2;
}
.edit-interests-section h2 { margin-top: 4px; font-size: 25px; letter-spacing: -.04em; }
.edit-interests-section > div:first-child > p {
    margin-top: 6px;
    color: #8c8498;
    font-size: 11px;
}
.edit-interest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 9px;
    margin-top: 18px;
}
.edit-interest-option {
    position: relative;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    border: 1px solid #e4dfeb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.edit-interest-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.edit-interest-option > span { font-size: 22px; }
.edit-interest-option > strong { font-size: 11px; }
.edit-interest-option:has(input:checked) {
    border-color: rgba(109,74,255,.48);
    background: #f2edff;
    box-shadow: inset 0 0 0 1px rgba(109,74,255,.10);
    color: var(--primary);
}
.edit-profile-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}
.edit-profile-actions a,
.edit-profile-actions button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 13px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
}
.edit-profile-actions a {
    border: 1px solid #e1dbe9;
    color: #6e6677;
    text-decoration: none;
}
.edit-profile-actions button {
    border: 0;
    background: linear-gradient(135deg,#6d4aff,#8d5cff);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 13px 25px rgba(109,74,255,.18);
}

@media (max-width: 900px) {
    .profile-dashboard {
        grid-template-columns: 1fr;
    }
    .profile-side-column {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .profile-side-column > .profile-settings-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .profile-v2-page,
    .edit-profile-page {
        width: min(100%, calc(100% - 24px));
        padding-top: 18px;
    }
    .profile-cover-card { border-radius: 25px; }
    .profile-cover-art { height: 130px; }
    .profile-cover-copy { display: none; }
    .profile-main-info {
        display: block;
        padding: 0 20px 24px;
    }
    .profile-photo-wrap {
        width: max-content;
        margin-top: -52px;
    }
    .profile-photo {
        width: 104px;
        height: 104px;
        border-radius: 27px;
        border-width: 5px;
    }
    .profile-photo-fallback { font-size: 36px; }
    .profile-identity { padding-top: 15px; }
    .profile-name-row { gap: 10px; }
    .profile-name-row h1 { font-size: 38px; }
    .profile-edit-button {
        min-height: 40px;
        padding: 0 13px;
        font-size: 10px;
    }
    .profile-bio { font-size: 13px; }
    .profile-interest-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -20px;
        padding-right: 20px;
        scrollbar-width: none;
    }
    .profile-interest-chips::-webkit-scrollbar { display:none; }
    .profile-interest-chip { flex: 0 0 auto; }

    .profile-dashboard { margin-top: 14px; gap: 14px; }
    .profile-main-column,
    .profile-side-column { gap: 14px; }
    .profile-side-column { grid-template-columns: 1fr; }
    .profile-section,
    .profile-side-card { border-radius: 21px; }
    .profile-section { padding: 18px; }
    .profile-side-card { padding: 18px; }
    .profile-section-heading h2 { font-size: 23px; }
    .profile-section-heading > a { display: none; }
    .profile-history-grid { grid-template-columns: 1fr; }
    .profile-empty {
        grid-template-columns: 36px minmax(0,1fr);
    }
    .profile-empty > a {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .edit-profile-card {
        padding: 20px 17px;
        border-radius: 22px;
    }
    .edit-profile-avatar-section {
        grid-template-columns: 78px minmax(0,1fr);
    }
    .edit-avatar-preview { width: 78px; height: 78px; border-radius: 21px; }
    .edit-profile-grid { grid-template-columns: 1fr; }
    .edit-profile-grid label.full { grid-column: auto; }
    .edit-interest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .edit-profile-actions {
        display: grid;
        grid-template-columns: 1fr 1.3fr;
    }
}

/* ==================================================
   V0.8 — BANCO + ORGANIZADOR + NOTIFICAÇÕES
================================================== */
.header-notification-link {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.82);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(24,16,52,.04);
}
.header-notification-link > span { font-size: 18px; }
.header-notification-link b {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff5b83;
    color: #fff;
    border: 2px solid #fff;
    font-size: 9px;
    font-weight: 900;
}
.header-notification-link.has-unread {
    border-color: rgba(109,74,255,.20);
    background: #faf8ff;
}

.role-feedback {
    width: min(100%, 980px);
    margin: 0 auto 14px;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
}
.role-feedback.success { background:#eaf9f0; border:1px solid #ccebd8; color:#2b7a4d; }
.role-feedback.warning { background:#fff3df; border:1px solid #f1dcb4; color:#865d15; }
.role-cancelled-banner {
    width: max-content;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff0f1;
    color: #b94858;
    border: 1px solid #f2cfd4;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 900;
}
.cancelled-role-card { opacity: .92; }
.cancelled-inline { color:#bd4857; }
.cancelled-action-note {
    grid-column: 1 / -1;
    padding: 14px;
    border-radius: 14px;
    background: #fff4f4;
    color: #9e4b55;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.organizer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 6px;
    padding: 16px;
    border: 1px solid rgba(109,74,255,.12);
    border-radius: 16px;
    background: #f9f7ff;
}
.organizer-controls .section-kicker { margin-bottom: 3px; }
.organizer-controls strong { font-size: 13px; }
.organizer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.organizer-actions a,
.organizer-actions button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.organizer-actions a {
    border: 1px solid #dcd5e8;
    background: #fff;
    color: #4d4559;
    text-decoration: none;
}
.organizer-actions button {
    border: 1px solid #f0cfd3;
    background: #fff5f6;
    color: #b34151;
}

.edit-role-page { max-width: 760px; }
.edit-role-back {
    display:inline-block;
    margin-bottom: 24px;
    color:#6f687a;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
}
.edit-role-actions {
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top: 8px;
}
.edit-role-actions > a {
    min-height: 52px;
    display:inline-flex;
    align-items:center;
    padding:0 18px;
    border-radius:12px;
    border:1px solid #e0dbe7;
    color:#6a6373;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
}
.edit-role-actions .btn-primary { min-width: 190px; margin:0; }

.notifications-page {
    width:min(920px, calc(100% - 40px));
    margin:0 auto;
    padding:40px 0 120px;
}
.notifications-heading {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}
.notifications-heading h1 {
    margin:4px 0 0;
    font-size:clamp(38px,5vw,58px);
    line-height:.98;
    letter-spacing:-.055em;
}
.notifications-heading p {
    max-width:620px;
    margin-top:10px;
    color:#81798b;
    line-height:1.55;
}
.notifications-heading button {
    min-height:42px;
    padding:0 14px;
    border:1px solid #ddd7e7;
    border-radius:12px;
    background:#fff;
    color:#625a6e;
    cursor:pointer;
    font-size:10px;
    font-weight:800;
}
.notifications-list { display:grid; gap:10px; }
.notification-card {
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    align-items:center;
    gap:13px;
    padding:15px;
    border:1px solid #e9e4ef;
    border-radius:17px;
    background:rgba(255,255,255,.92);
    box-shadow:0 10px 28px rgba(33,22,70,.04);
}
.notification-card.unread {
    border-color:rgba(109,74,255,.24);
    background:#faf8ff;
}
.notification-icon {
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#eee9ff;
    font-size:21px;
}
.notification-copy { min-width:0; }
.notification-copy strong {
    display:block;
    font-size:12px;
    line-height:1.45;
}
.notification-copy small {
    display:block;
    margin-top:5px;
    color:#9a93a3;
    font-size:9px;
}
.notification-card form button {
    min-height:38px;
    padding:0 13px;
    border:0;
    border-radius:11px;
    background:#6d4aff;
    color:#fff;
    cursor:pointer;
    font-size:10px;
    font-weight:800;
}
.notifications-empty {
    padding:64px 24px;
    border:1px solid #e9e4ef;
    border-radius:22px;
    background:#fff;
    text-align:center;
}
.notifications-empty > span { font-size:42px; }
.notifications-empty h2 { margin-top:14px; font-size:24px; }
.notifications-empty p { margin-top:7px; color:#8f8799; font-size:12px; }

@media (max-width: 760px) {
    .header-notification-link {
        width:40px;
        height:40px;
        border-radius:13px;
    }
    .organizer-controls {
        align-items:flex-start;
        flex-direction:column;
    }
    .organizer-actions {
        width:100%;
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .organizer-actions a,
    .organizer-actions form,
    .organizer-actions button { width:100%; }
    .edit-role-actions {
        display:grid;
        grid-template-columns:1fr 1.3fr;
    }
    .edit-role-actions > a,
    .edit-role-actions .btn-primary { width:100%; min-width:0; }
    .notifications-page { width:calc(100% - 24px); padding-top:22px; }
    .notifications-heading { align-items:flex-start; flex-direction:column; }
    .notification-card {
        grid-template-columns:44px minmax(0,1fr);
    }
    .notification-icon { width:44px; height:44px; }
    .notification-card form { grid-column:1 / -1; }
    .notification-card form button { width:100%; }
}




/* ==================================================
   V0.8.1 — detalhe do rolê + notificações ao vivo
================================================== */

/* Os dois CTAs ficam exatamente na mesma linha/altura. */
.detail-actions-grid {
    align-items: stretch;
}

.detail-actions-grid form {
    display: flex;
    align-items: stretch;
}

.detail-actions-grid .detail-action,
.detail-actions-grid .checkin-button {
    width: 100%;
    min-height: 56px;
    height: 100%;
    margin-top: 0 !important;
}

/* O bloco de organizador fica legível por cima da hero. */
.detail-card .organizer-controls {
    color: #fff;
    border-color: rgba(255,255,255,.18);
    background: rgba(22, 15, 45, .58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.detail-card .organizer-controls .section-kicker {
    color: rgba(255,255,255,.72) !important;
}

.detail-card .organizer-controls strong {
    color: #fff;
}

.detail-card .organizer-actions a {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.96);
    color: #372d46;
}

.detail-card .organizer-actions button {
    border-color: rgba(255,181,190,.35);
    background: rgba(255,244,246,.97);
    color: #b34151;
}

/* Toast global para a notificação que chega enquanto o site está aberto. */
.live-notification-toast {
    position: fixed;
    z-index: 9999;
    top: 92px;
    right: 20px;
    width: min(390px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(109,74,255,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    color: #211c29;
    text-decoration: none;
    box-shadow: 0 22px 55px rgba(27,17,61,.20);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-14px) scale(.98);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.live-notification-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.live-notification-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eee9ff;
    font-size: 20px;
}

.live-notification-copy {
    min-width: 0;
}

.live-notification-copy small {
    display: block;
    color: #6d4aff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.live-notification-copy strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.4;
}

.live-notification-arrow {
    color: #6d4aff;
    font-weight: 900;
}

.header-notification-link b[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .live-notification-toast {
        top: 82px;
        left: 12px;
        right: 12px;
        width: auto;
    }

    .detail-actions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-actions-grid .detail-action,
    .detail-actions-grid .checkin-button {
        min-height: 54px;
    }
}

@media (max-width: 520px) {
    .detail-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   V0.9.0 — MAPA, FILA, FOTO, FILTROS, RECORRÊNCIA, MODERAÇÃO E ADMIN
================================================== */

.admin-mini-link {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    margin-left: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    color: #6d4aff;
    text-decoration: none;
    font-size: 17px;
    box-shadow: 0 10px 24px rgba(30,20,68,.05);
}

.login-blocked-error { margin-bottom: 18px; }

.advanced-filters {
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e8e3ef;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 12px 30px rgba(30,20,68,.04);
}
.advanced-filters .search-field { min-width: min(330px, 100%); flex: 1 1 300px; }
.filter-select, .filter-date {
    display: grid;
    gap: 5px;
    min-width: 128px;
}
.filter-select > span, .filter-date > span {
    color: #8f879a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.filter-select select, .filter-date input {
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: #453e4f;
    outline: 0;
}
.filter-date.is-hidden { display: none; }
.location-filter-status {
    flex: 1 0 100%;
    color: #9b94a5;
    font-size: 9px;
}

.role-card.has-event-photo { overflow: hidden; padding-top: 0; }
.role-photo-thumb {
    height: 150px;
    display: block;
    overflow: hidden;
    margin: 0 -20px 18px;
    border-radius: 24px 24px 0 0;
}
.role-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.role-card-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.recurring-chip {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eee8ff;
    color: #6d4aff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.recurring-chip.light { background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.map-inline-link, .detail-map-link { color: inherit; text-decoration: none; }
.map-inline-link:hover, .detail-map-link:hover { text-decoration: underline; }
.distance-note { display: block !important; margin-top: 4px !important; color: #6d4aff !important; font-size: 9px !important; font-weight: 800; }
.bora-button.waitlisted, .detail-action.waitlisted {
    background: #fff6df !important;
    color: #9d6d13 !important;
    border: 1px solid #f2dfaa !important;
    box-shadow: none !important;
}

.detail-card.has-role-photo {
    background-image:
        linear-gradient(90deg, rgba(20,13,43,.80), rgba(20,13,43,.52) 58%, rgba(20,13,43,.34)),
        linear-gradient(180deg, rgba(109,74,255,.10), rgba(17,10,36,.42)),
        var(--role-photo) !important;
    background-size: cover !important;
    background-position: center !important;
}
.detail-top-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.waitlist-note {
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 13px;
    background: rgba(255,244,212,.96);
    color: #916516;
    font-size: 11px;
    font-weight: 800;
}
.role-location-card {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(320px,1.2fr);
    gap: 18px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.15);
}
.role-location-copy { padding: 10px; }
.role-location-copy .section-kicker { color: rgba(255,255,255,.7) !important; }
.role-location-copy h3 { margin-top: 6px; font-size: 22px; }
.role-location-copy p { margin-top: 8px; color: rgba(255,255,255,.8); }
.role-location-copy a { display: inline-block; margin-top: 16px; color: #fff; font-size: 11px; font-weight: 900; }
.role-location-card iframe { width: 100%; min-height: 210px; border: 0; border-radius: 15px; background: #eee; }
.series-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.15);
}
.series-card .section-kicker { color: rgba(255,255,255,.7) !important; }
.series-card h3 { margin-top: 5px; }
.series-card > div { display: grid; gap: 7px; margin-top: 12px; }
.series-card a {
    display: grid;
    grid-template-columns: 105px minmax(0,1fr) 18px;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.09);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
}
.series-card a span { color: rgba(255,255,255,.72); }
.report-role-box {
    margin-top: 20px;
    color: rgba(255,255,255,.72);
}
.report-role-box summary { cursor: pointer; font-size: 11px; font-weight: 800; }
.report-role-box form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    border-radius: 15px;
    background: rgba(11,8,27,.38);
}
.report-role-box label { display: grid; gap: 5px; font-size: 10px; font-weight: 800; }
.report-role-box select, .report-role-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    color: #2c2733;
    font: inherit;
}
.report-role-box button {
    min-height: 40px;
    border: 0;
    border-radius: 11px;
    background: #fff;
    color: #a23d4c;
    font-weight: 900;
    cursor: pointer;
}

.role-builder-page { max-width: 840px; }
.form-subcard {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e8e2ef;
    border-radius: 18px;
    background: #faf8ff;
}
.form-subcard .section-kicker { margin-bottom: 2px; }
.form-subcard h3 { font-size: 19px; }
.form-subcard p, .form-subcard small { color: #8b8495; font-size: 10px; line-height: 1.55; }
.secondary-form-button {
    min-height: 42px;
    width: max-content;
    max-width: 100%;
    padding: 0 14px;
    border: 1px solid #dcd5e8;
    border-radius: 11px;
    background: #fff;
    color: #5d526b;
    font-weight: 800;
    cursor: pointer;
}
.file-input { padding: 10px !important; }
.series-edit-check {
    display: flex !important;
    align-items: flex-start;
    gap: 9px !important;
    padding: 14px;
    border-radius: 14px;
    background: #f5f1ff;
}
.series-edit-check input { width: auto !important; margin-top: 2px; }
.series-edit-check small { display: block; margin-top: 4px; color: #918a9d; font-weight: 500; }

/* ADMIN */
.admin-page {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 120px;
}
.admin-heading h1 { margin-top: 6px; font-size: clamp(40px,5vw,64px); letter-spacing: -.06em; line-height: .96; }
.admin-heading p { margin-top: 12px; color: #7c7488; }
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 10px;
    margin-top: 26px;
}
.admin-metrics article {
    padding: 18px;
    border: 1px solid #e7e1ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(30,20,68,.04);
}
.admin-metrics strong { display:block; color:#6d4aff; font-size:30px; }
.admin-metrics span { display:block; margin-top:5px; color:#8d8598; font-size:10px; font-weight:800; }
.admin-section {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid #e7e1ee;
    border-radius: 24px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 16px 40px rgba(30,20,68,.05);
}
.admin-section-head { display:flex; justify-content:space-between; align-items:end; margin-bottom:18px; }
.admin-section h2 { margin-top:4px; font-size:28px; letter-spacing:-.04em; }
.admin-table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; min-width:860px; }
.admin-table th { padding:10px; text-align:left; color:#928a9e; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.admin-table td { padding:12px 10px; border-top:1px solid #eeeaf2; vertical-align:middle; font-size:11px; }
.admin-table td > a { color:inherit; text-decoration:none; }
.admin-table td > a strong { display:block; font-size:12px; }
.admin-table td > a small { display:block; margin-top:4px; color:#958e9e; }
.admin-chip { display:inline-flex; margin-left:6px; padding:3px 7px; border-radius:999px; background:#fff0d8; color:#9b6714; font-size:8px; font-weight:900; }
.status-pill { display:inline-flex; padding:5px 8px; border-radius:999px; background:#eaf8ef; color:#2f8050; font-size:9px; font-weight:900; }
.status-pill.cancelado { background:#fdebed; color:#b74655; }
.status-pill.oculto { background:#eeeaf2; color:#716879; }
.admin-action-form { display:flex; gap:6px; }
.admin-action-form select { max-width:140px; height:36px; border:1px solid #ded8e7; border-radius:9px; background:#fff; }
.admin-action-form button, .admin-report-card button, .admin-user-grid button, .admin-category-grid button {
    min-height:36px; padding:0 10px; border:0; border-radius:9px; background:#1d1925; color:#fff; font-size:9px; font-weight:900; cursor:pointer;
}
.admin-report-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.admin-report-card { padding:16px; border:1px solid #ebe5f0; border-radius:16px; background:#fff; }
.admin-report-card.resolved { opacity:.55; }
.admin-report-card > span { color:#6d4aff; font-size:8px; font-weight:900; letter-spacing:.08em; }
.admin-report-card strong { display:block; margin-top:5px; }
.admin-report-card p { margin-top:7px; color:#746c7e; font-size:10px; line-height:1.5; }
.admin-report-card small { display:block; margin-top:9px; color:#aaa2b1; font-size:8px; }
.admin-report-card > div { display:flex; gap:8px; align-items:center; margin-top:12px; }
.admin-report-card a { color:#6d4aff; font-size:9px; font-weight:900; }
.admin-user-grid, .admin-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.admin-user-grid article, .admin-category-grid article {
    display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:10px; align-items:center; padding:12px; border:1px solid #ebe6f0; border-radius:15px; background:#fff;
}
.admin-user-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:#eee8ff; color:#6d4aff; font-weight:900; }
.admin-user-grid strong, .admin-category-grid strong { display:block; font-size:11px; }
.admin-user-grid small, .admin-category-grid small { display:block; margin-top:3px; color:#9991a4; font-size:8px; }
.admin-user-grid button.unblock { background:#3f9563; }
.admin-category-grid > article > span { font-size:24px; text-align:center; }
.admin-category-grid article.disabled { opacity:.55; }
.admin-empty { padding:20px; color:#948c9e; text-align:center; }

@media (max-width: 980px) {
    .admin-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .admin-report-grid, .admin-user-grid, .admin-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .advanced-filters { display:grid !important; grid-template-columns:1fr 1fr; }
    .advanced-filters .search-field, .advanced-filters .location-filter-status { grid-column:1/-1; }
    .advanced-filters .free-filter { align-self:center; }
    .advanced-filters > button { width:100%; }
    .filter-select, .filter-date { min-width:0; }
    .role-photo-thumb { height:175px; }
    .role-location-card { grid-template-columns:1fr; }
    .role-location-card iframe { min-height:180px; }
    .series-card a { grid-template-columns:85px minmax(0,1fr) 16px; }
    .form-subcard .form-row { grid-template-columns:1fr; }
    .secondary-form-button { width:100%; }
    .admin-page { width:min(100%,calc(100% - 24px)); padding-top:20px; }
    .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .admin-section { padding:18px; border-radius:20px; }
    .admin-report-grid, .admin-user-grid, .admin-category-grid { grid-template-columns:1fr; }
    .admin-mini-link { display:none; }
}


/* ==================================================
   V0.9.1 — ADMIN V2 / DASHBOARD SaaS
================================================== */
.admin-v2-shell {
    --admin-sidebar: #171322;
    --admin-sidebar-soft: #211a30;
    --admin-text: #191620;
    --admin-muted: #8c8497;
    min-height: 100vh;
    background: #f5f4f8;
    color: var(--admin-text);
}
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 242px;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    background:
        radial-gradient(circle at 15% 5%, rgba(116,79,255,.18), transparent 24%),
        linear-gradient(180deg, #1a1526 0%, #15111e 100%);
    color: #fff;
    box-shadow: 18px 0 50px rgba(25,18,44,.08);
}
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 5px 7px 24px;
    color: #fff;
    text-decoration: none;
}
.admin-sidebar-logo {
    width: 44px; height: 44px; overflow: hidden;
    border-radius: 14px; background: #fff;
    border: 1px solid rgba(255,255,255,.13);
}
.admin-sidebar-logo img { width:100%;height:100%;object-fit:cover; }
.admin-sidebar-brand strong { display:block;font-size:14px; }
.admin-sidebar-brand small { display:block;margin-top:3px;color:rgba(255,255,255,.48);font-size:9px; }
.admin-sidebar-nav { display:grid; gap:5px; }
.admin-sidebar-nav > span {
    margin: 18px 11px 6px;
    color: rgba(255,255,255,.34);
    font-size: 8px; font-weight: 900; letter-spacing: .13em;
}
.admin-sidebar-nav a {
    min-height: 43px;
    display: grid;
    grid-template-columns: 27px minmax(0,1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border-radius: 12px;
    color: rgba(255,255,255,.64);
    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
    transition: .18s ease;
}
.admin-sidebar-nav a b { font-size: 14px; font-weight: 500; text-align:center; }
.admin-sidebar-nav a em {
    min-width: 22px;height:22px;display:grid;place-items:center;padding:0 6px;
    border-radius:999px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.62);
    font-style:normal;font-size:8px;
}
.admin-sidebar-nav a em.danger { background:#763345;color:#ffb7c7; }
.admin-sidebar-nav a:hover { background:rgba(255,255,255,.06);color:#fff; }
.admin-sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(109,74,255,.92), rgba(143,101,255,.78));
    color:#fff;
    box-shadow:0 10px 25px rgba(91,58,198,.22);
}
.admin-sidebar-footer {
    margin-top:auto;
    display:grid;
    gap:3px;
    padding-top:15px;
    border-top:1px solid rgba(255,255,255,.07);
}
.admin-sidebar-footer a { padding:8px 10px;color:rgba(255,255,255,.50);text-decoration:none;font-size:9px;font-weight:700; }
.admin-sidebar-footer a:hover { color:#fff; }

.admin-v2-content { min-height:100vh; margin-left:242px; }
.admin-topbar {
    position: sticky; top:0; z-index:50;
    min-height:72px;
    display:flex;align-items:center;gap:18px;
    padding:0 30px;
    border-bottom:1px solid #e8e4ed;
    background:rgba(250,249,252,.88);
    backdrop-filter: blur(20px);
}
.admin-mobile-menu { display:none; }
.admin-topbar-search {
    width:min(420px,42vw);height:42px;
    display:flex;align-items:center;gap:10px;
    padding:0 13px;
    border:1px solid #e3dfe8;border-radius:12px;
    background:#fff;
}
.admin-topbar-search span { color:#908899;font-size:18px; }
.admin-topbar-search input { width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:11px;color:#302a38; }
.admin-topbar-search input::placeholder { color:#aaa3b1; }
.admin-topbar-actions { margin-left:auto;display:flex;align-items:center;gap:9px; }
.admin-site-button {
    min-height:40px;display:inline-flex;align-items:center;padding:0 13px;
    border:1px solid #e1dce7;border-radius:11px;background:#fff;
    color:#5f5868;text-decoration:none;font-size:10px;font-weight:800;
}
.admin-topbar .header-notification-link {
    position:relative !important;
    inset:auto !important;
    margin:0 !important;
    flex:0 0 42px;
}
.admin-avatar {
    width:42px;height:42px;display:grid;place-items:center;border-radius:13px;
    background:linear-gradient(135deg,#6d4aff,#986bff);color:#fff;text-decoration:none;font-size:14px;font-weight:900;
}

.admin-v2-main { width:min(1280px,calc(100% - 56px));margin:0 auto;padding:36px 0 70px; }
.admin-v2-heading { display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:26px; }
.admin-v2-heading .section-kicker { margin-bottom:9px; }
.admin-v2-heading h1 { margin:0;font-size:clamp(38px,4vw,58px);line-height:.98;letter-spacing:-.06em; }
.admin-v2-heading p { max-width:640px;margin-top:11px;color:#7e7688;font-size:13px;line-height:1.6; }
.admin-primary-action {
    min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0 17px;
    border-radius:13px;background:linear-gradient(135deg,#6d4aff,#925dff);color:#fff;text-decoration:none;font-size:11px;font-weight:900;
    box-shadow:0 14px 28px rgba(109,74,255,.18);
}

.admin-v2-metrics { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px; }
.admin-v2-metric {
    min-width:0;padding:16px;border:1px solid #e7e3eb;border-radius:18px;background:#fff;
    box-shadow:0 10px 28px rgba(30,20,68,.035);
}
.admin-v2-metric-top { display:flex;align-items:center;justify-content:space-between; }
.admin-v2-metric-top > span { width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f2edff;font-size:15px; }
.admin-v2-metric-top small { color:#bbb4c3; }
.admin-v2-metric strong { display:block;margin-top:16px;font-size:27px;line-height:1;letter-spacing:-.04em; }
.admin-v2-metric b { display:block;margin-top:6px;font-size:10px; }
.admin-v2-metric p { margin-top:5px;color:#958e9e;font-size:8px;line-height:1.35; }
.admin-v2-metric.purple strong { color:#6d4aff; }.admin-v2-metric.purple .admin-v2-metric-top>span{background:#efeaff;}
.admin-v2-metric.blue strong { color:#3d78ff; }.admin-v2-metric.blue .admin-v2-metric-top>span{background:#eaf1ff;}
.admin-v2-metric.green strong { color:#3d9862; }.admin-v2-metric.green .admin-v2-metric-top>span{background:#eaf8ef;}
.admin-v2-metric.orange strong { color:#e98c24; }.admin-v2-metric.orange .admin-v2-metric-top>span{background:#fff2df;}
.admin-v2-metric.pink strong { color:#dc5d9a; }.admin-v2-metric.pink .admin-v2-metric-top>span{background:#ffedf5;}
.admin-v2-metric.red strong { color:#ce5362; }.admin-v2-metric.red .admin-v2-metric-top>span{background:#fdecef;}

.admin-overview-grid,.admin-split-grid { display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-top:16px; }
.admin-v2-panel {
    margin-top:16px;padding:22px;border:1px solid #e7e3eb;border-radius:20px;background:#fff;
    box-shadow:0 14px 34px rgba(30,20,68,.04);
}
.admin-overview-grid .admin-v2-panel,.admin-split-grid .admin-v2-panel { margin-top:0; }
.admin-v2-panel-head { display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:17px; }
.admin-v2-panel-head .section-kicker { margin-bottom:6px; }
.admin-v2-panel-head h2 { margin:0;font-size:22px;letter-spacing:-.04em; }
.admin-v2-panel-head > span,.admin-v2-panel-head > small { color:#9991a3;font-size:9px; }
.admin-live-dot { color:#3d9862 !important;font-weight:800; }

.admin-attention-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
.admin-attention-item {
    display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:12px;
    border:1px solid #ede8f2;border-radius:14px;color:inherit;text-decoration:none;transition:.18s ease;
}
.admin-attention-item:hover { transform:translateY(-1px);box-shadow:0 10px 24px rgba(30,20,68,.05); }
.admin-attention-item > span { width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#f5f1ff;font-size:18px; }
.admin-attention-item strong { display:block;font-size:17px; }.admin-attention-item small{display:block;margin-top:2px;color:#91899a;font-size:9px;}
.admin-attention-item > b { color:#8f8799; }
.admin-attention-item.red > span{background:#fdecef}.admin-attention-item.pink>span{background:#ffedf5}.admin-attention-item.blue>span{background:#eaf1ff}.admin-attention-item.orange>span{background:#fff1df}

.admin-today-list { display:grid;gap:7px; }
.admin-today-list a { display:grid;grid-template-columns:54px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px;border-radius:12px;color:inherit;text-decoration:none; }
.admin-today-list a:hover { background:#f8f6fb; }
.admin-today-time { min-height:43px;display:grid;place-items:center;border-radius:10px;background:#eee9ff;color:#6d4aff;font-size:11px;font-weight:900; }
.admin-today-list strong{display:block;font-size:11px}.admin-today-list small{display:block;margin-top:3px;color:#96909e;font-size:8px}.admin-today-list b{color:#7c7485}
.admin-empty-state { padding:18px;border-radius:13px;background:#f8f6fa;color:#9991a2;font-size:10px;text-align:center; }

.admin-table-panel-head { align-items:center; }
.admin-table-tools { display:flex;align-items:center;gap:9px; }
.admin-tabs { display:flex;padding:3px;border-radius:10px;background:#f3f0f6; }
.admin-tabs button { min-height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#837b8d;font-size:8px;font-weight:800;cursor:pointer; }
.admin-tabs button.active { background:#fff;color:#6d4aff;box-shadow:0 4px 12px rgba(28,20,52,.06); }
.admin-table-tools select { height:38px;border:1px solid #e1dce7;border-radius:10px;background:#fff;padding:0 10px;color:#625a6b;font-size:9px;font-weight:700; }
.admin-event-list { display:grid; }
.admin-event-row {
    min-width:0;display:grid;grid-template-columns:92px minmax(240px,1fr) 150px 80px 42px;align-items:center;gap:13px;
    padding:13px 7px;border-top:1px solid #eeeaf2;
}
.admin-event-row:first-child { border-top:0; }
.admin-event-date strong { display:block;font-size:10px; }.admin-event-date span{display:block;margin-top:3px;color:#9b94a3;font-size:8px;}
.admin-event-main { min-width:0; }.admin-event-title-line{display:flex;align-items:center;gap:7px;min-width:0}.admin-event-title-line a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#27222e;text-decoration:none;font-size:11px;font-weight:850}.admin-event-main>small{display:block;margin-top:4px;color:#9991a2;font-size:8px}
.admin-event-origin span{display:block;font-size:9px;font-weight:800}.admin-event-origin small{display:block;margin-top:3px;color:#9b94a2;font-size:8px}
.admin-kebab-menu { position:relative;justify-self:end; }
.admin-kebab-menu summary { width:36px;height:36px;display:grid;place-items:center;list-style:none;border:1px solid #e5e0e9;border-radius:10px;cursor:pointer;font-weight:900;color:#716978;background:#fff; }
.admin-kebab-menu summary::-webkit-details-marker{display:none}
.admin-kebab-menu > div { position:absolute;z-index:30;top:42px;right:0;width:185px;padding:7px;border:1px solid #e6e1eb;border-radius:13px;background:#fff;box-shadow:0 18px 38px rgba(28,20,52,.15); }
.admin-kebab-menu a,.admin-kebab-menu button { width:100%;min-height:32px;display:flex;align-items:center;padding:0 9px;border:0;border-radius:8px;background:transparent;color:#514a59;text-decoration:none;font:inherit;font-size:9px;font-weight:750;cursor:pointer;text-align:left; }
.admin-kebab-menu a:hover,.admin-kebab-menu button:hover{background:#f6f3f9}.admin-kebab-menu .danger{margin-top:4px;padding-top:4px;border-top:1px solid #eeeaf2}.admin-kebab-menu .danger button{color:#bd4656}.admin-no-results{padding:20px;text-align:center;color:#9991a2;font-size:10px}

.admin-category-bars { display:grid;gap:13px; }
.admin-category-bar-row { display:grid;grid-template-columns:35px minmax(0,1fr);gap:10px;align-items:center; }
.admin-category-bar-row > span { width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#f4f1f7; }
.admin-category-bar-row > div > div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-category-bar-row strong{font-size:9px}.admin-category-bar-row small{color:#9992a2;font-size:8px}.admin-category-track{height:6px;margin-top:6px;border-radius:999px;background:#eeeaf2;overflow:hidden}.admin-category-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#6d4aff,#9a73ff)}

.admin-activity-feed { display:grid;gap:0; }
.admin-activity-feed > div { position:relative;display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px;padding:10px 0;border-top:1px solid #f0edf3; }
.admin-activity-feed > div:first-child{border-top:0;padding-top:0}.admin-activity-dot{width:8px;height:8px;margin-top:3px;border-radius:50%;background:#6d4aff;box-shadow:0 0 0 4px #eee9ff}.admin-activity-feed strong{display:block;font-size:9px;line-height:1.4}.admin-activity-feed small{display:block;margin-top:4px;color:#a098a7;font-size:7px}

.admin-danger-count { padding:5px 8px;border-radius:999px;background:#fdecef;color:#bf4657 !important;font-weight:900; }
.admin-report-grid-v2 { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
.admin-report-card-v2 { padding:15px;border:1px solid #ebe6ef;border-radius:15px;background:#fff; }.admin-report-card-v2.resolved{opacity:.48}.admin-report-card-top{display:flex;align-items:center;justify-content:space-between}.admin-report-card-top span{color:#6d4aff;font-size:8px;font-weight:900;letter-spacing:.08em}.admin-report-card-top b{font-size:7px;color:#9a92a3}.admin-report-card-v2>strong{display:block;margin-top:10px;font-size:11px}.admin-report-card-v2 p{margin-top:6px;color:#756d7e;font-size:9px;line-height:1.5}.admin-report-card-v2 small{display:block;margin-top:8px;color:#a49cab;font-size:7px}.admin-report-card-v2>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.admin-report-card-v2 a{color:#6d4aff;font-size:8px;font-weight:900}.admin-report-card-v2 button{min-height:31px;padding:0 9px;border:0;border-radius:8px;background:#1d1925;color:#fff;font-size:8px;font-weight:900;cursor:pointer}

.admin-user-grid-v2 { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px; }
.admin-user-grid-v2 article { display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #ebe6ef;border-radius:14px; }.admin-user-main{min-width:0;flex:1;display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px;align-items:center;color:inherit;text-decoration:none}.admin-user-main>span,.admin-user-main>img{width:40px;height:40px;display:grid;place-items:center;object-fit:cover;border-radius:12px;background:#eee9ff;color:#6d4aff;font-size:13px;font-weight:900}.admin-user-main strong{display:block;font-size:10px}.admin-user-main small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9991a2;font-size:7px}.admin-user-grid-v2 button{min-height:32px;padding:0 8px;border:0;border-radius:8px;background:#2b2631;color:#fff;font-size:7px;font-weight:850;cursor:pointer}.admin-user-grid-v2 button.unblock{background:#39855a}

.admin-partner-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px; }.admin-partner-grid>a{display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:9px;padding:11px;border:1px solid #ebe6ef;border-radius:14px;color:inherit;text-decoration:none}.admin-partner-grid>a>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#fff0d8;color:#a46b14}.admin-partner-grid strong{display:block;font-size:10px}.admin-partner-grid small{display:block;margin-top:3px;color:#9991a2;font-size:7px}.admin-partner-grid b{color:#7d7485}

.admin-category-grid-v2 { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px; }.admin-category-grid-v2 article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px;border:1px solid #ebe6ef;border-radius:14px}.admin-category-grid-v2 article.disabled{opacity:.48}.admin-category-grid-v2>article>span{font-size:21px;text-align:center}.admin-category-grid-v2 strong{display:block;font-size:9px}.admin-category-grid-v2 small{display:block;margin-top:3px;color:#9991a2;font-size:7px}.admin-category-grid-v2 button{min-height:31px;padding:0 8px;border:0;border-radius:8px;background:#2b2631;color:#fff;font-size:7px;font-weight:850;cursor:pointer}

@media (max-width: 1180px) {
    .admin-v2-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .admin-user-grid-v2,.admin-report-grid-v2,.admin-partner-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .admin-category-grid-v2 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .admin-event-row { grid-template-columns:78px minmax(220px,1fr) 125px 70px 42px; }
}
@media (max-width: 900px) {
    .admin-sidebar { transform:translateX(-100%);transition:transform .22s ease; }
    .admin-v2-shell.sidebar-open .admin-sidebar { transform:translateX(0); }
    .admin-v2-content { margin-left:0; }
    .admin-mobile-menu { width:40px;height:40px;display:grid;place-items:center;border:1px solid #e1dce7;border-radius:11px;background:#fff;cursor:pointer; }
    .admin-topbar { padding:0 16px; }
    .admin-topbar-search { width:min(360px,45vw); }
    .admin-v2-main { width:min(100% - 28px,1000px); }
    .admin-overview-grid,.admin-split-grid { grid-template-columns:1fr; }
    .admin-table-tools { align-items:flex-end;flex-direction:column; }
    .admin-event-row { grid-template-columns:75px minmax(0,1fr) 80px 42px; }
    .admin-event-origin { display:none; }
    .admin-category-grid-v2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 660px) {
    .admin-topbar-search,.admin-site-button { display:none; }
    .admin-v2-main { width:calc(100% - 20px);padding-top:22px; }
    .admin-v2-heading { align-items:flex-start;flex-direction:column; }.admin-v2-heading h1{font-size:38px}.admin-primary-action{width:100%}
    .admin-v2-metrics { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }.admin-v2-metric{padding:14px}.admin-v2-metric strong{font-size:24px}
    .admin-attention-grid { grid-template-columns:1fr; }
    .admin-v2-panel { padding:17px;border-radius:18px; }
    .admin-v2-panel-head { align-items:flex-start; }.admin-table-panel-head{flex-direction:column}.admin-table-tools{width:100%;align-items:stretch}.admin-tabs{overflow-x:auto}.admin-tabs button{flex:0 0 auto}.admin-table-tools select{width:100%}
    .admin-event-row { grid-template-columns:62px minmax(0,1fr) 38px;gap:8px;padding:11px 0; }.admin-event-row>.status-pill{display:none}.admin-event-main>small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .admin-report-grid-v2,.admin-user-grid-v2,.admin-partner-grid,.admin-category-grid-v2 { grid-template-columns:1fr; }
}


/* ==================================================
   V0.9.2 — LIQUID GLASS + CATEGORIAS DINÂMICAS
================================================== */

:root {
    --glass-bg: rgba(255,255,255,.62);
    --glass-bg-strong: rgba(255,255,255,.78);
    --glass-border: rgba(255,255,255,.68);
    --glass-shadow: 0 18px 55px rgba(40,28,82,.10), inset 0 1px 0 rgba(255,255,255,.72);
    --glass-blur: blur(24px) saturate(140%);
}

html { scroll-behavior: smooth; }
body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background:
        radial-gradient(circle at 12% -10%, rgba(128,91,255,.14), transparent 34%),
        radial-gradient(circle at 94% 2%, rgba(255,117,177,.10), transparent 26%),
        linear-gradient(180deg, #f9f8fd 0%, #f4f2f8 100%) !important;
}

h1, h2, h3, .member-hero h1, .login-header h2, .admin-v2-heading h1 {
    font-family: "Sora", "Plus Jakarta Sans", sans-serif !important;
    letter-spacing: -.045em;
}

/* Dynamic overlay automatically follows the category colors. */
.app-shell {
    --hero-overlay-strong: color-mix(in srgb, var(--theme-accent) 72%, #120d24 28%);
    --hero-overlay-mid: color-mix(in srgb, var(--theme-accent) 54%, #1b1232 46%);
    --hero-overlay-deep: color-mix(in srgb, var(--theme-accent) 28%, #100b20 72%);
    --hero-overlay-light: color-mix(in srgb, var(--theme-accent-2) 28%, transparent);
    --hero-overlay-bottom: color-mix(in srgb, var(--theme-accent) 30%, #0e091c 70%);
}

/* Navigation glass */
.app-header,
.admin-topbar {
    background: rgba(255,255,255,.66) !important;
    border-bottom: 1px solid rgba(255,255,255,.75) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    box-shadow: 0 10px 35px rgba(32,22,66,.06) !important;
}
.desktop-nav,
.mobile-nav,
.header-notification-link,
.notif-btn {
    background: rgba(255,255,255,.58) !important;
    border: 1px solid rgba(255,255,255,.75) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    box-shadow: 0 12px 34px rgba(35,24,75,.08), inset 0 1px 0 rgba(255,255,255,.85) !important;
}

/* Glass surfaces */
.role-card,
.standard-role,
.profile-cover-card,
.profile-section,
.profile-side-card,
.edit-profile-card,
.form-page,
.mini-calendar,
.agenda-item,
.notification-card,
.notifications-panel,
.carona-panel,
.detail-panel,
.role-detail-panel,
.admin-v2-panel,
.admin-v2-metric,
.admin-event-row,
.admin-user-grid-v2 article,
.admin-category-grid-v2 article {
    background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.56)) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    box-shadow: var(--glass-shadow) !important;
}

/* Keep dark/colorful feature cards rich, but add glass edge. */
.themed-hero,
.spotlight-card,
.partner-card {
    border: 1px solid rgba(255,255,255,.26) !important;
    box-shadow: 0 28px 70px rgba(29,18,64,.16), inset 0 1px 0 rgba(255,255,255,.20) !important;
}
.hero-badge,
.create-role-button,
.role-btn,
.bora-button,
.hero-btn,
.profile-edit-button,
.category-chip,
.chip {
    backdrop-filter: blur(18px) saturate(155%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(155%) !important;
}

.category-chip:not(.active),
.chip:not(.active),
.feed-filters,
.advanced-filters,
.search-field,
.filter-select,
.filter-date {
    background: rgba(255,255,255,.58) !important;
    border-color: rgba(255,255,255,.74) !important;
    box-shadow: 0 10px 28px rgba(35,24,75,.055), inset 0 1px 0 rgba(255,255,255,.82) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
}

input, textarea, select, .input-box {
    border-color: rgba(165,154,190,.28) !important;
}
input:not([type="color"]), textarea, select, .input-box {
    background: rgba(255,255,255,.62) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

button, a, summary { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.role-card:hover,
.profile-role-row:hover,
.admin-v2-metric:hover,
.admin-category-grid-v2 article:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(40,28,82,.13), inset 0 1px 0 rgba(255,255,255,.85) !important;
}

/* Admin dark glass sidebar */
.admin-sidebar {
    background:
        radial-gradient(circle at top left, rgba(124,82,255,.24), transparent 32%),
        linear-gradient(180deg, rgba(20,15,34,.96), rgba(15,11,27,.94)) !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
    backdrop-filter: blur(24px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(130%) !important;
}
.admin-sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(118,73,255,.96), rgba(132,81,224,.88)) !important;
    box-shadow: 0 13px 30px rgba(91,54,193,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.admin-v2-main { background: transparent !important; }

/* Category manager */
.admin-new-category { position: relative; }
.admin-new-category > summary {
    list-style: none;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 13px;
    background: linear-gradient(135deg, #6d4aff, #8f62ff);
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(109,74,255,.22);
}
.admin-new-category > summary::-webkit-details-marker { display:none; }
.admin-new-category[open] > form {
    position: absolute;
    z-index: 40;
    right: 0;
    top: 50px;
    width: min(620px, calc(100vw - 52px));
    padding: 20px;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 20px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    box-shadow: 0 28px 70px rgba(25,16,55,.20), inset 0 1px 0 rgba(255,255,255,.90);
}
.admin-new-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}
.admin-new-category-grid label { display:grid; gap:6px; }
.admin-new-category-grid label.wide { grid-column:1/-1; }
.admin-new-category-grid label > span { font-size:10px; font-weight:800; color:#5f5869; }
.admin-new-category-grid input,
.admin-new-category-grid textarea {
    width:100%;
    min-height:42px;
    padding:10px 12px;
    border:1px solid #dfd8e8;
    border-radius:12px;
    font:inherit;
    font-size:12px;
}
.admin-new-category-grid input[type="color"] { padding:4px; min-height:42px; }
.admin-category-create-button {
    width:100%;
    min-height:44px;
    margin-top:14px;
    border:0;
    border-radius:13px;
    background:linear-gradient(135deg,#6d4aff,#9568ff);
    color:white;
    font-weight:900;
    cursor:pointer;
}
.admin-category-grid-v2 article {
    grid-template-columns: 46px minmax(0,1fr) 34px auto !important;
}
.admin-category-emoji {
    width:44px; height:44px;
    display:grid; place-items:center;
    border-radius:14px;
    background: color-mix(in srgb, var(--cat-color) 14%, white 86%);
    font-size:22px;
}
.admin-category-swatch {
    width:28px; height:28px;
    border-radius:9px;
    border:2px solid rgba(255,255,255,.88);
    box-shadow:0 4px 12px rgba(31,22,65,.12);
}

/* Book club fallback: immediately feels intentional before a photo is uploaded. */
.theme-clube-livro {
    --theme-accent:#8c4f3f;
    --theme-accent-2:#d2a36f;
    --hero-bg:
        radial-gradient(circle at 74% 22%, rgba(255,222,173,.26), transparent 24%),
        linear-gradient(135deg, #5f342d 0%, #8c4f3f 50%, #c28c5f 100%);
}

@media (max-width: 760px) {
    :root { --glass-blur: blur(18px) saturate(135%); }
    .mobile-nav { background: rgba(255,255,255,.76) !important; }
    .admin-new-category[open] > form {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 90px;
        width: auto;
        max-height: calc(100vh - 112px);
        overflow:auto;
    }
    .admin-new-category-grid { grid-template-columns:1fr; }
    .admin-new-category-grid label.wide { grid-column:auto; }
}

/* Login também segue a linguagem Liquid Glass. */
@media (min-width: 761px) {
    .login-panel {
        background:
            radial-gradient(circle at 80% 12%, rgba(117,82,255,.10), transparent 26%),
            rgba(248,247,252,.74) !important;
        backdrop-filter: blur(22px) saturate(135%);
        -webkit-backdrop-filter: blur(22px) saturate(135%);
    }
    .login-container {
        padding: 30px;
        border: 1px solid rgba(255,255,255,.78);
        border-radius: 28px;
        background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.50));
        box-shadow: 0 26px 70px rgba(35,24,75,.10), inset 0 1px 0 rgba(255,255,255,.90);
        backdrop-filter: blur(24px) saturate(145%);
        -webkit-backdrop-filter: blur(24px) saturate(145%);
    }
}
@media (max-width: 760px) {
    .login-panel {
        background: rgba(255,255,255,.82) !important;
        backdrop-filter: blur(22px) saturate(140%);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        border-top: 1px solid rgba(255,255,255,.82);
    }
}




/* ==================================================
   V0.9.2.1 — FIX HERO + MENU ADMIN
================================================== */

/* Cada linha vira uma camada previsível. */
.admin-event-row {
    position: relative;
    z-index: 1;
}

/* Quando o menu está aberto, essa linha sobe acima das demais. */
.admin-event-row:has(.admin-kebab-menu[open]) {
    z-index: 300 !important;
}

/* Garante que o painel não corte o menu. */
.admin-v2-panel,
.admin-event-list {
    overflow: visible !important;
}

.admin-kebab-menu {
    position: relative;
    z-index: 2;
}

.admin-kebab-menu[open] {
    z-index: 350 !important;
}

.admin-kebab-menu[open] > summary {
    border-color: rgba(109,74,255,.28);
    background: rgba(244,240,255,.96);
    color: #6d4aff;
    box-shadow: 0 8px 20px rgba(41,28,86,.10);
}

.admin-kebab-menu > div {
    z-index: 400 !important;
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 22px 50px rgba(28,20,52,.20) !important;
}




/* ==================================================
   V0.9.2.2 — PERFORMANCE + HEROES
================================================== */

/* A foto continua sendo --hero-bg.
   O filtro agora preserva transparência e usa a cor da categoria. */
.app-shell {
    --hero-overlay-strong: color-mix(in srgb, var(--theme-accent) 68%, transparent);
    --hero-overlay-mid: color-mix(in srgb, var(--theme-accent) 48%, transparent);
    --hero-overlay-deep: color-mix(in srgb, #120d24 52%, transparent);
    --hero-overlay-light: color-mix(in srgb, var(--theme-accent-2) 16%, transparent);
    --hero-overlay-bottom: color-mix(in srgb, #0d0918 30%, transparent);
}

.themed-hero::after {
    background:
        linear-gradient(
            90deg,
            var(--hero-overlay-strong) 0%,
            var(--hero-overlay-mid) 47%,
            var(--hero-overlay-deep) 100%
        ),
        linear-gradient(
            180deg,
            var(--hero-overlay-light) 0%,
            transparent 48%,
            var(--hero-overlay-bottom) 100%
        ) !important;
}

/* --------------------------------------------------
   Liquid Glass seletivo.
   Mantém o visual onde ele faz diferença sem aplicar
   blur pesado em dezenas de elementos durante o scroll.
-------------------------------------------------- */

/* Superfícies de conteúdo: aparência glass leve, SEM blur. */
.role-card,
.standard-role,
.profile-cover-card,
.profile-section,
.profile-side-card,
.edit-profile-card,
.form-page,
.mini-calendar,
.agenda-item,
.notification-card,
.notifications-panel,
.carona-panel,
.detail-panel,
.role-detail-panel,
.admin-v2-panel,
.admin-v2-metric,
.admin-event-row,
.admin-user-grid-v2 article,
.admin-category-grid-v2 article,
.feed-filters,
.advanced-filters,
.search-field,
.filter-select,
.filter-date,
input:not([type="color"]),
textarea,
select,
.input-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Glass fica só na navegação, menus e superfícies flutuantes. */
.app-header,
.admin-topbar {
    backdrop-filter: blur(12px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(125%) !important;
}

.desktop-nav,
.mobile-nav,
.header-notification-link,
.notif-btn {
    backdrop-filter: blur(10px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
}

.hero-badge,
.create-role-button,
.role-btn,
.bora-button,
.hero-btn,
.profile-edit-button,
.category-chip,
.chip {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.admin-sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.admin-kebab-menu > div,
.admin-new-category[open] > form,
.live-notification-toast {
    backdrop-filter: blur(12px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(125%) !important;
}

/* Evita repaints caros em grids longos. */
.standard-role,
.admin-event-row,
.admin-v2-metric,
.profile-section,
.profile-side-card {
    contain: paint;
}

/* Menus precisam escapar do contain para continuarem aparecendo por cima. */
.admin-v2-panel,
.admin-event-list,
.admin-event-row:has(.admin-kebab-menu[open]) {
    contain: none !important;
}

/* Sombras um pouco mais leves para scroll mais fluido. */
.role-card,
.standard-role,
.profile-section,
.profile-side-card,
.admin-v2-panel,
.admin-v2-metric,
.admin-event-row {
    box-shadow: 0 12px 30px rgba(35,24,75,.07) !important;
}

.themed-hero,
.spotlight-card,
.partner-card {
    box-shadow: 0 22px 52px rgba(29,18,64,.14), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

@media (max-width: 760px) {
    .app-header,
    .mobile-nav {
        backdrop-filter: blur(9px) saturate(120%) !important;
        -webkit-backdrop-filter: blur(9px) saturate(120%) !important;
    }
}



/* ==================================================
   V1.0 — SOCIAL, MURAL, PÓS-ROLÊ, REPUTAÇÃO, PARCEIROS E RATEIO
================================================== */
.role-invite-banner{width:min(100%,820px);margin:0 auto 14px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e8ddff;border-radius:18px;background:#f5f0ff;box-shadow:0 12px 28px rgba(57,37,105,.08)}
.role-invite-banner>div{display:flex;align-items:center;gap:10px}.role-invite-banner>div:first-child>span{font-size:28px}.role-invite-banner small{display:block;color:#7758d9;font-size:9px;font-weight:900}.role-invite-banner strong{display:block;margin-top:3px}.role-invite-banner form{display:inline}.role-invite-banner button{min-height:38px;padding:0 13px;border:0;border-radius:11px;background:#6d4aff;color:#fff;font-weight:800;cursor:pointer}.role-invite-banner button.secondary{background:#fff;color:#6f6878;border:1px solid #ddd5e7}
.role-community-card,.role-wall-card,.post-role-card,.rateio-card{width:min(100%,920px);margin:18px auto 0;padding:24px;border:1px solid #e7e1ed;border-radius:24px;background:#fff;box-shadow:0 14px 34px rgba(34,24,70,.06)}
.role-community-head,.role-wall-head,.post-role-heading,.rateio-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.role-community-head h2,.role-wall-head h2,.post-role-heading h2,.rateio-head h2{margin-top:5px;font-size:27px;letter-spacing:-.04em}.role-community-head p,.role-wall-head p,.post-role-heading p,.rateio-head p{margin-top:5px;color:#8a8295;font-size:12px}
.participant-stack{display:flex;padding-left:12px}.participant-stack a,.participant-stack img{width:38px;height:38px;margin-left:-10px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;background:#7854ff;color:#fff;text-decoration:none;font-size:11px;font-weight:900;object-fit:cover}.participant-name-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}.participant-name-list a{padding:7px 10px;border-radius:999px;background:#f5f2fa;color:#5e5668;text-decoration:none;font-size:10px;font-weight:800}
.invite-friends{margin-top:20px;padding-top:18px;border-top:1px solid #eee9f2}.invite-friends>div:first-child strong,.invite-friends>div:first-child span{display:block}.invite-friends>div:first-child span{margin-top:3px;color:#968e9f;font-size:10px}.invite-friends>div:last-child{display:flex;gap:8px;overflow-x:auto;margin-top:12px;padding-bottom:4px;scrollbar-width:none}.invite-friends form{flex:0 0 auto}.invite-friends button{min-width:130px;height:46px;display:grid;grid-template-columns:28px 1fr 18px;align-items:center;gap:7px;padding:0 9px;border:1px solid #e3ddec;border-radius:13px;background:#fff;color:#554d60;cursor:pointer}.invite-friends img,.invite-friends b{width:28px;height:28px;border-radius:9px;object-fit:cover;display:grid;place-items:center;background:#eee8ff;color:#6d4aff}.invite-friends button span{text-align:left;font-size:10px;font-weight:800}.invite-friends button i{color:#6d4aff;font-style:normal;font-size:18px}
.role-comments{display:grid;gap:9px;margin-top:18px}.role-comments article{display:grid;grid-template-columns:38px minmax(0,1fr) 28px;gap:10px;padding:12px;border:1px solid #eeeaf2;border-radius:15px;background:#fcfbfd}.comment-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eee8ff;color:#6d4aff;text-decoration:none;font-weight:900}.role-comments article>div>div{display:flex;align-items:center;gap:8px}.role-comments small{color:#9b94a4;font-size:8px}.role-comments p{margin-top:5px;color:#514a59;font-size:11px;line-height:1.5}.role-comments form button{width:26px;height:26px;border:0;border-radius:8px;background:transparent;color:#a59dab;cursor:pointer}.role-comment-form{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:14px}.role-comment-form textarea{min-height:54px;padding:11px;border:1px solid #ddd6e6;border-radius:13px;resize:vertical}.role-comment-form button{padding:0 18px;border:0;border-radius:13px;background:#6d4aff;color:#fff;font-weight:800}.wall-empty,.wall-locked{margin-top:16px;padding:15px;border-radius:14px;background:#f8f6fa;color:#81798a;font-size:11px;line-height:1.5}
.post-role-heading{align-items:center}.role-rating-big{text-align:right}.role-rating-big strong{display:block;color:#6d4aff;font-size:30px}.role-rating-big span{color:#948c9e;font-size:9px}.role-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.role-gallery figure{overflow:hidden;border-radius:15px;background:#f5f2f7}.role-gallery img{width:100%;aspect-ratio:1.2;display:block;object-fit:cover}.role-gallery figcaption{padding:9px}.role-gallery figcaption strong,.role-gallery figcaption span{display:block;font-size:9px}.role-gallery figcaption span{margin-top:3px;color:#89818f}.post-role-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.photo-upload-box,.role-review-box{display:grid;gap:9px;padding:15px;border:1px solid #e8e3ed;border-radius:16px}.photo-upload-box input,.role-review-box textarea{width:100%;padding:10px;border:1px solid #ded7e5;border-radius:11px}.photo-upload-box button,.role-review-box button{min-height:40px;border:0;border-radius:11px;background:#6d4aff;color:#fff;font-weight:800}.rating-pills{display:flex;gap:5px;flex-wrap:wrap}.rating-pills input{position:absolute;opacity:0}.rating-pills span{display:block;padding:7px 9px;border:1px solid #e0dae7;border-radius:9px;cursor:pointer;font-size:9px;font-weight:800}.rating-pills input:checked+span{border-color:#7a57f5;background:#efeaff;color:#6d4aff}
.rateio-total{padding:9px 12px;border-radius:12px;background:#eaf8ef;color:#397a52;font-weight:900}.rateio-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}.rateio-summary div{padding:14px;border-radius:14px;background:#f7f4fb}.rateio-summary small,.rateio-summary strong{display:block}.rateio-summary small{color:#9991a2;font-size:8px}.rateio-summary strong{margin-top:4px;font-size:17px}.pix-box{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:9px;margin-top:12px;padding:11px;border:1px dashed #d7cdea;border-radius:13px}.pix-box>span{font-weight:900;color:#6d4aff}.pix-box code{overflow:hidden;text-overflow:ellipsis}.pix-box button,.my-payment-box button,.payment-admin-list button,.rateio-config button{min-height:35px;padding:0 11px;border:0;border-radius:9px;background:#6d4aff;color:#fff;font-size:9px;font-weight:800;cursor:pointer}.rateio-note{margin-top:10px;color:#7d7487;font-size:10px}.my-payment-box{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding:12px;border-radius:14px;background:#faf8fd}.my-payment-box small,.my-payment-box strong{display:block}.my-payment-box small{color:#9b94a4;font-size:8px}.my-payment-box strong{margin-top:3px;font-size:11px}.payment-admin-list{display:grid;gap:7px;margin-top:14px}.payment-admin-list>div{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;align-items:center;gap:8px;padding:9px 11px;border:1px solid #eeeaf2;border-radius:11px;font-size:10px}.payment-admin-list small{color:#8d8597}.payment-admin-list button.secondary{background:#f1edf5;color:#756d7f}.rateio-config{margin-top:14px}.rateio-config summary{cursor:pointer;color:#6d4aff;font-size:10px;font-weight:900}.rateio-config form{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px;padding:13px;border-radius:14px;background:#f8f6fa}.rateio-config label{display:grid;gap:5px;font-size:9px;font-weight:800}.rateio-config label:nth-of-type(4){grid-column:1/-1}.rateio-config input,.rateio-config textarea{padding:9px;border:1px solid #ddd6e5;border-radius:10px}.rateio-toggle{display:flex!important;align-items:center;gap:6px}.rateio-empty{margin-top:14px;color:#898190;font-size:11px}
.partner-benefit-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:18px;padding:15px;border:1px solid rgba(255,255,255,.20);border-radius:17px;background:rgba(255,255,255,.12)}.partner-benefit-brand img,.partner-benefit-brand span{width:58px;height:58px;display:grid;place-items:center;object-fit:cover;border-radius:15px;background:#fff;color:#6d4aff;font-size:24px}.partner-benefit-card small{color:rgba(255,255,255,.65);font-size:8px;font-weight:900}.partner-benefit-card h3{margin-top:3px;font-size:17px}.partner-benefit-card p{margin-top:4px;color:rgba(255,255,255,.82);font-size:10px}.partner-coupon{display:inline-block;margin-top:7px;padding:5px 8px;border-radius:8px;background:rgba(255,255,255,.15);font-size:9px}.partner-benefit-actions{display:grid;gap:6px}.partner-benefit-actions a{min-height:36px;display:flex;align-items:center;justify-content:center;padding:0 11px;border-radius:10px;background:rgba(255,255,255,.14);color:#fff;text-decoration:none;font-size:9px;font-weight:900}.partner-benefit-actions a.primary{background:#fff;color:#5c3aca}
.public-profile-actions{display:flex;align-items:center;gap:8px}.profile-follow-button{min-height:44px;padding:0 16px;border:0;border-radius:13px;background:#6d4aff;color:#fff;font-weight:900;cursor:pointer}.profile-follow-button.following{background:#eee9f8;color:#6d4aff}.profile-social-bar{display:flex;gap:16px;margin-top:16px;color:#8c8496;font-size:10px}.profile-social-bar strong{color:#332b3d}.reputation-line{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:9px;padding:10px 0;border-top:1px solid #eeeaf2}.reputation-line:first-of-type{border-top:0}.reputation-line>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#eee9ff;color:#6d4aff}.reputation-line strong,.reputation-line small{display:block}.reputation-line strong{font-size:11px}.reputation-line small{margin-top:2px;color:#958d9e;font-size:8px}.following-mini-list{display:grid;gap:7px}.following-mini-list a{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:8px;padding:7px;border-radius:11px;color:inherit;text-decoration:none}.following-mini-list img,.following-mini-list>a>span{width:34px;height:34px;display:grid;place-items:center;object-fit:cover;border-radius:10px;background:#eee9ff;color:#6d4aff}.following-mini-list strong,.following-mini-list small{display:block}.following-mini-list strong{font-size:10px}.following-mini-list small{font-size:8px;color:#9991a2}
.admin-new-partner{position:relative}.admin-new-partner summary{list-style:none;cursor:pointer;padding:10px 13px;border-radius:11px;background:#6d4aff;color:#fff;font-size:9px;font-weight:900}.admin-new-partner summary::-webkit-details-marker{display:none}.admin-new-partner[open]>form{position:absolute;z-index:500;right:0;top:46px;width:min(620px,80vw);padding:16px;border:1px solid #e5dfec;border-radius:17px;background:#fff;box-shadow:0 22px 55px rgba(24,16,52,.18)}.partner-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.partner-form-grid label{display:grid;gap:5px;font-size:8px;font-weight:900}.partner-form-grid .wide{grid-column:1/-1}.partner-form-grid input,.partner-form-grid select{height:38px;padding:0 9px;border:1px solid #dfd8e7;border-radius:10px}.partner-featured{display:flex!important;align-items:center;gap:6px}.admin-new-partner form>button{margin-top:12px;min-height:38px;padding:0 14px;border:0;border-radius:10px;background:#6d4aff;color:#fff;font-weight:900}.partner-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.partner-admin-card{padding:14px;border:1px solid #e9e4ed;border-radius:15px;background:#fff}.partner-admin-card.disabled{opacity:.5}.partner-admin-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px}.partner-admin-head img,.partner-admin-head>span{width:40px;height:40px;display:grid;place-items:center;object-fit:cover;border-radius:12px;background:#eee9ff;color:#6d4aff}.partner-admin-head strong,.partner-admin-head small{display:block}.partner-admin-head strong{font-size:10px}.partner-admin-head small{margin-top:2px;color:#918999;font-size:8px}.partner-admin-head>b{padding:4px 7px;border-radius:999px;background:#e9f7ee;color:#39805a;font-size:7px}.partner-admin-card>p{min-height:30px;margin-top:10px;color:#79717f;font-size:9px;line-height:1.5}.partner-admin-card>code{display:inline-block;margin-top:8px;padding:5px 7px;border-radius:7px;background:#f3efff;color:#6d4aff;font-size:8px}.partner-metrics{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}.partner-metrics span{padding:8px;border-radius:9px;background:#f8f6fa;color:#918999;font-size:7px}.partner-metrics strong{display:block;color:#342d3c;font-size:13px}.partner-link-form{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:10px}.partner-link-form select{min-width:0;height:34px;border:1px solid #ddd7e4;border-radius:9px;padding:0 7px;font-size:8px}.partner-link-form button,.partner-toggle{height:34px;padding:0 9px;border:0;border-radius:9px;background:#6d4aff;color:#fff;font-size:8px;font-weight:900}.partner-toggle{width:100%;margin-top:6px;background:#f0edf4;color:#6d6575}
@media(max-width:900px){.partner-admin-grid{grid-template-columns:1fr 1fr}.post-role-actions{grid-template-columns:1fr}.role-gallery{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.role-community-card,.role-wall-card,.post-role-card,.rateio-card{padding:18px;border-radius:20px}.role-community-head,.role-wall-head,.post-role-heading,.rateio-head{display:block}.participant-stack{margin-top:12px}.role-comment-form{grid-template-columns:1fr}.role-comment-form button{min-height:42px}.rateio-summary{grid-template-columns:1fr 1fr}.rateio-summary div:last-child{grid-column:1/-1}.payment-admin-list>div{grid-template-columns:1fr auto}.payment-admin-list>div small{grid-column:1/-1}.rateio-config form{grid-template-columns:1fr}.rateio-config label:nth-of-type(4){grid-column:auto}.partner-benefit-card{grid-template-columns:48px 1fr}.partner-benefit-brand img,.partner-benefit-brand span{width:48px;height:48px}.partner-benefit-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.role-gallery{grid-template-columns:1fr 1fr}.profile-social-bar{flex-wrap:wrap}.partner-admin-grid{grid-template-columns:1fr}.admin-new-partner[open]>form{position:fixed;left:12px;right:12px;top:80px;width:auto;max-height:calc(100vh - 96px);overflow:auto}.partner-form-grid{grid-template-columns:1fr}.partner-form-grid .wide{grid-column:auto}}

.role-ended-banner{display:inline-flex;margin-bottom:12px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-size:9px;font-weight:900;letter-spacing:.08em}.status-pill.encerrado{background:#ece8ff;color:#654bd1}




/* ==================================================
   V1.0.1 — MURAL + SCROLL DE CATEGORIAS
================================================== */

/* A barra das categorias volta a ser visível. */
.category-scroll,
.category-chips {
    overflow-x: auto !important;
    scrollbar-width: auto !important;
    scrollbar-color: rgba(109,74,255,.48) rgba(109,74,255,.08) !important;
    -ms-overflow-style: auto !important;
    padding-bottom: 12px !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.category-scroll::-webkit-scrollbar,
.category-chips::-webkit-scrollbar {
    display: block !important;
    height: 8px !important;
}

.category-scroll::-webkit-scrollbar-track,
.category-chips::-webkit-scrollbar-track {
    background: rgba(109,74,255,.08);
    border-radius: 999px;
}

.category-scroll::-webkit-scrollbar-thumb,
.category-chips::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(109,74,255,.58), rgba(157,117,255,.72));
    border-radius: 999px;
}

/* Mural */
.mural-page,
.mural-feed-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 120px;
}

.mural-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0 34px;
}

.mural-heading h1 {
    margin-top: 8px;
    max-width: 800px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: .94;
    letter-spacing: -.065em;
}

.mural-heading h1 em {
    color: #6d4aff;
    font-style: normal;
}

.mural-heading p {
    max-width: 650px;
    margin-top: 15px;
    color: #7e768a;
    font-size: 16px;
    line-height: 1.65;
}

.mural-heading-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(109,74,255,.12);
    border-radius: 19px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 13px 30px rgba(36,24,76,.06);
}

.mural-heading-badge > span { font-size: 29px; }
.mural-heading-badge strong { display: block; font-size: 22px; }
.mural-heading-badge small { display: block; color: #92899e; font-size: 10px; }

.mural-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.mural-role-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(226,220,237,.9);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(35,24,75,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.mural-role-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(35,24,75,.12);
}

.mural-role-cover {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #e8e3f1;
}

.mural-role-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.mural-role-card:hover .mural-role-cover img { transform: scale(1.025); }

.mural-role-cover-fallback {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    font-size: 60px;
    background: linear-gradient(135deg, #eee8ff, #fff4f7);
}

.mural-role-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, color-mix(in srgb, var(--mural-accent) 64%, #130c25 36%) 100%);
}

.mural-role-status,
.mural-role-category {
    position: absolute;
    top: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(20,15,33,.58);
    color: #fff;
    backdrop-filter: blur(8px);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
}

.mural-role-status { left: 14px; }
.mural-role-category { right: 14px; }

.mural-role-body { padding: 18px; }
.mural-role-body > small {
    color: var(--mural-accent);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.mural-role-body h2 {
    margin-top: 8px;
    font-size: 23px;
    line-height: 1.08;
    letter-spacing: -.045em;
}
.mural-role-body > p {
    margin-top: 9px;
    color: #8b8396;
    font-size: 11px;
}
.mural-role-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 14px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eeeaf2;
    color: #756d80;
    font-size: 9px;
}
.mural-role-footer b {
    margin-left: auto;
    color: var(--mural-accent);
}

.mural-empty,
.mural-feed-empty {
    padding: 70px 25px;
    border: 1px dashed #dcd4e8;
    border-radius: 26px;
    background: rgba(255,255,255,.7);
    text-align: center;
}
.mural-empty > div,
.mural-feed-empty > span { font-size: 46px; }
.mural-empty h2,
.mural-feed-empty h2 { margin-top: 13px; font-size: 26px; }
.mural-empty p,
.mural-feed-empty p { margin: 8px auto 0; max-width: 520px; color: #8b8396; line-height: 1.55; }
.mural-empty a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-top: 19px;
    padding: 0 17px;
    border-radius: 13px;
    background: #6d4aff;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
}

/* Detalhe/feed */
.mural-back {
    display: inline-block;
    margin: 6px 0 18px;
    color: #716979;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.mural-event-hero {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    box-shadow: 0 24px 60px rgba(33,21,70,.13);
}

.mural-event-image,
.mural-event-image img,
.mural-event-image-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mural-event-image img { object-fit: cover; }
.mural-event-image {
    background: linear-gradient(135deg, var(--mural-accent), #23183d);
}
.mural-event-image-overlay {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--mural-accent) 70%, #10091e 30%) 0%, rgba(18,12,34,.44) 52%, rgba(18,12,34,.20) 100%),
        linear-gradient(180deg, transparent 45%, rgba(13,8,24,.48) 100%);
}

.mural-event-copy {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 38px;
}
.mural-event-tag {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
}
.mural-event-copy h1 {
    margin-top: 88px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .96;
    letter-spacing: -.06em;
    text-shadow: 0 3px 22px rgba(0,0,0,.24);
}
.mural-event-copy > p {
    margin-top: 12px;
    color: rgba(255,255,255,.86);
    font-size: 13px;
}
.mural-event-stats {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}
.mural-event-stats span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    font-size: 10px;
}
.mural-event-stats strong { font-size: 13px; }

.mural-feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.mural-feed-main {
    width: min(100%, 690px);
    justify-self: center;
}

.mural-composer {
    padding: 18px;
    border: 1px solid #e6e0ec;
    border-radius: 20px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 12px 30px rgba(35,24,75,.06);
}
.mural-composer-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mural-composer-title > span {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: #eee9ff;
    font-size: 19px;
}
.mural-composer-title strong { display: block; font-size: 13px; }
.mural-composer-title small { display: block; margin-top: 2px; color: #92899e; font-size: 9px; }

.mural-composer form {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 9px;
    margin-top: 14px;
}
.mural-file-picker {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}
.mural-file-picker input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.mural-file-picker span,
.mural-composer input[name="caption"],
.mural-composer button {
    min-height: 44px;
    border-radius: 12px;
}
.mural-file-picker span {
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #ddd6e7;
    background: #fff;
    color: #645c70;
    font-size: 10px;
    font-weight: 800;
}
.mural-composer input[name="caption"] {
    min-width: 0;
    padding: 0 13px;
    border: 1px solid #ddd6e7;
    outline: 0;
}
.mural-composer button {
    padding: 0 15px;
    border: 0;
    background: #6d4aff;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
}

.mural-instafeed {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.mural-post {
    overflow: hidden;
    border: 1px solid #e4dee9;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(35,24,75,.07);
}

.mural-post-header {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
}
.mural-post-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}
.mural-post-author > img,
.mural-post-author > span {
    width: 42px; height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
}
.mural-post-author > img { object-fit: cover; }
.mural-post-author > span {
    display: grid; place-items: center;
    background: linear-gradient(135deg,#6d4aff,#a47cff);
    color: #fff;
    font-weight: 900;
}
.mural-post-author strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.mural-post-author small {
    display: block;
    margin-top: 3px;
    color: #9a92a3;
    font-size: 8px;
}
.mural-post-event {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: #f3effa;
}

.mural-post-photo {
    width: 100%;
    background: #17131e;
}
.mural-post-photo img {
    width: 100%;
    max-height: 760px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.mural-post-body { padding: 14px 16px 16px; }
.mural-post-body p {
    color: #514a59;
    font-size: 12px;
    line-height: 1.55;
}
.mural-post-body p a {
    color: #241e2b;
    text-decoration: none;
    font-weight: 900;
}
.mural-post-body > small {
    display: block;
    margin-top: 9px;
    color: #aaa2af;
    font-size: 8px;
}

.mural-feed-side {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 14px;
}
.mural-side-card {
    padding: 18px;
    border: 1px solid #e6e0ec;
    border-radius: 19px;
    background: rgba(255,255,255,.94);
}
.mural-side-card h3 {
    margin-top: 5px;
    font-size: 20px;
    letter-spacing: -.04em;
}
.mural-side-muted {
    margin-top: 8px;
    color: #8f8799;
    font-size: 10px;
    line-height: 1.55;
}
.mural-participants {
    display: grid;
    gap: 5px;
    margin-top: 12px;
}
.mural-participants a {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr);
    align-items: center;
    gap: 9px;
    padding: 7px;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
}
.mural-participants a:hover { background: #f7f4fb; }
.mural-participants img,
.mural-participants > a > span {
    width: 36px; height: 36px;
    border-radius: 50%;
}
.mural-participants img { object-fit: cover; }
.mural-participants > a > span {
    display: grid; place-items: center;
    background: #eee8ff;
    color: #6d4aff;
    font-weight: 900;
}
.mural-participants strong { display: block; font-size: 10px; }
.mural-participants small { display: block; margin-top: 2px; color: #9d95a6; font-size: 8px; }

.mural-detail-link {
    display: inline-block;
    margin-top: 14px;
    color: #6d4aff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 850;
}

@media (max-width: 980px) {
    .mural-role-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mural-feed-layout { grid-template-columns: 1fr; }
    .mural-feed-main { width: 100%; }
    .mural-feed-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    .mural-page,
    .mural-feed-page {
        width: min(100%, calc(100% - 24px));
        padding-top: 18px;
    }
    .mural-heading {
        display: block;
        padding-top: 16px;
    }
    .mural-heading h1 { font-size: 43px; }
    .mural-heading p { font-size: 13px; }
    .mural-heading-badge {
        width: max-content;
        margin-top: 18px;
    }
    .mural-role-grid { grid-template-columns: 1fr; }
    .mural-role-cover { height: 220px; }

    .mural-event-hero { min-height: 340px; border-radius: 24px; }
    .mural-event-copy { padding: 22px; }
    .mural-event-copy h1 { margin-top: 95px; font-size: 42px; }
    .mural-event-stats { flex-wrap: wrap; }

    .mural-composer form {
        grid-template-columns: 1fr;
    }
    .mural-file-picker span {
        width: 100%;
        justify-content: center;
    }
    .mural-feed-side { grid-template-columns: 1fr; }
}




/* ==================================================
   V1.0.1.1 — HEADER CONSISTENTE
================================================== */

/* Sino + atalho admin funcionam como um único bloco à direita.
   Isso impede o nav centralizado de disputar espaço com o sino. */
.app-header > .header-actions,
.app-header .header-actions-compact {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
    z-index: 3;
}

/* O nav permanece realmente centralizado no desktop. */
@media (min-width: 761px) {
    .app-header > .desktop-nav {
        z-index: 2;
    }
}

/* Segurança caso algum template antigo ainda deixe o sino direto no header. */
@media (min-width: 761px) {
    .app-header > .header-notification-link,
    .app-header > .admin-mini-link {
        margin-left: 0 !important;
        flex: 0 0 42px;
        position: relative !important;
        inset: auto !important;
        z-index: 3;
    }

    .app-header > .header-notification-link:first-of-type {
        margin-left: auto !important;
    }
}

/* ==================================================
   V1.1 — AUTH, PWA, PUSH, MURAL V2, SHARE, DISCOVERY
================================================== */

/* ---------- Auth real ---------- */
.auth-simple-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 18px;
    background:
        radial-gradient(circle at 14% 8%, rgba(109,74,255,.13), transparent 28%),
        radial-gradient(circle at 87% 18%, rgba(255,99,160,.08), transparent 24%),
        #f6f4fb;
}
.auth-simple-card {
    width: min(100%, 560px);
    padding: 34px;
    border: 1px solid rgba(225,219,235,.94);
    border-radius: 28px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 28px 70px rgba(34,24,70,.11);
}
.auth-register-card { width: min(100%, 720px); }
.auth-brand { display:flex;align-items:center;gap:10px;margin-bottom:34px;color:inherit;text-decoration:none; }
.auth-brand img { width:48px;height:48px;border-radius:15px;object-fit:cover; }
.auth-brand strong,.auth-brand small { display:block; }.auth-brand strong{font-size:14px}.auth-brand small{margin-top:2px;color:#90889a;font-size:9px}
.auth-simple-card h1 { margin:8px 0 0;font-size:clamp(34px,5vw,52px);line-height:.98;letter-spacing:-.06em; }
.auth-simple-card>p { max-width:520px;margin-top:12px;color:#81798d;font-size:12px;line-height:1.65; }
.auth-grid-form { display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:26px; }
.auth-grid-form.one { grid-template-columns:1fr; }
.auth-grid-form label { display:grid;gap:6px; }.auth-grid-form label.wide,.auth-grid-form .wide{grid-column:1/-1}
.auth-grid-form label>span { color:#70687b;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase; }
.auth-grid-form input { width:100%;height:48px;padding:0 13px;border:1px solid #ded8e7;border-radius:13px;background:#fff;outline:0; }
.auth-grid-form input:focus { border-color:#8b6dff;box-shadow:0 0 0 4px rgba(109,74,255,.09); }
.auth-errors { display:grid;gap:5px;margin-top:18px;padding:12px 14px;border:1px solid #f0cbd2;border-radius:13px;background:#fff1f3;color:#a84355;font-size:10px;font-weight:750; }
.auth-back { margin-top:22px;color:#8f8799;font-size:10px;text-align:center; }.auth-back a{color:#6d4aff;font-weight:850;text-decoration:none}
.dev-reset-box { display:grid;gap:6px;margin-top:18px;padding:14px;border:1px solid #e2d7ff;border-radius:14px;background:#f6f1ff;font-size:10px; }.dev-reset-box a{color:#6d4aff;font-weight:900;text-decoration:none}
.auth-inline-button { min-height:46px;display:inline-flex;align-items:center;justify-content:center;margin-top:18px;padding:0 16px;text-decoration:none; }

/* ---------- PWA install ---------- */
.pwa-install-fab {
    position: fixed; z-index: 120; right: 18px; bottom: 18px;
    min-height: 48px; display:flex;align-items:center;gap:9px;padding:0 15px;
    border:1px solid rgba(109,74,255,.18);border-radius:15px;
    background:linear-gradient(135deg,#6d4aff,#8f62ff);color:#fff;
    box-shadow:0 18px 45px rgba(68,43,158,.26);cursor:pointer;font:inherit;
}
.pwa-install-fab span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.16)}
.pwa-install-fab strong{font-size:10px}.pwa-install-fab[hidden]{display:none!important}

/* ---------- Push ---------- */
.push-settings-card {
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center;
    margin-bottom:18px;padding:17px 18px;border:1px solid #e5dff0;border-radius:18px;background:linear-gradient(135deg,#fff,#f7f3ff);
}
.push-settings-card>div{display:flex;align-items:center;gap:11px}.push-settings-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#eee8ff;font-size:19px}
.push-settings-card strong{display:block;font-size:12px}.push-settings-card p{margin-top:3px;color:#8b8396;font-size:9px;line-height:1.45}
.push-settings-card button{min-height:42px;padding:0 14px;border:0;border-radius:12px;background:#6d4aff;color:#fff;font-weight:850;cursor:pointer}
.push-settings-card>small{grid-column:1/-1;color:#888096;font-size:9px}

/* ---------- Discovery ---------- */
.discover-strip { display:flex;align-items:center;gap:8px;margin-top:14px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:thin; }
.discover-strip>span { flex:0 0 auto;margin-right:2px;color:#8d8498;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em; }
.discover-strip a,.discover-strip button { flex:0 0 auto;min-height:38px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid #e5dfea;border-radius:999px;background:#fff;color:#645d6e;text-decoration:none;font:inherit;font-size:10px;font-weight:800;cursor:pointer; }
.discover-strip a:hover,.discover-strip button:hover,.discover-strip .active { border-color:rgba(109,74,255,.22);background:#eee9ff;color:#5c43ca; }
.discover-strip button:disabled{opacity:.62;cursor:wait}

/* ---------- Sharing ---------- */
.detail-share-button,.profile-share-button { min-height:42px;display:inline-flex;align-items:center;justify-content:center;margin-top:13px;padding:0 14px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.12);color:inherit;font-weight:800;cursor:pointer; }
.profile-share-button { border-color:#ddd6e6;background:#fff;color:#665e70; }

/* ---------- Mural V2 ---------- */
.mural-composer form { grid-template-columns:auto minmax(0,1fr) auto!important; }
.mural-file-count { grid-column:1/-1;color:#9a92a3;font-size:8px; }
.mural-post { overflow:visible!important; }
.mural-post-menu { position:relative; }
.mural-post-menu summary { width:36px;height:36px;display:grid;place-items:center;list-style:none;border:0;border-radius:10px;background:#f5f2f8;color:#756d80;cursor:pointer;font-weight:900; }
.mural-post-menu summary::-webkit-details-marker{display:none}.mural-post-menu[open]{z-index:8}
.mural-post-menu>div{position:absolute;right:0;top:42px;width:175px;padding:7px;border:1px solid #e5dfeb;border-radius:13px;background:#fff;box-shadow:0 18px 44px rgba(26,18,48,.16)}
.mural-post-menu button{width:100%;min-height:34px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:#5c5564;text-align:left;font:inherit;font-size:9px;font-weight:750;cursor:pointer}.mural-post-menu button:hover{background:#f7f4fa}.mural-post-menu .danger{color:#be4658}
.mural-carousel { position:relative;overflow:hidden;background:#17131e; }
.mural-carousel-track { display:flex;transition:transform .28s ease;will-change:transform; }
.mural-post-photo { flex:0 0 100%;width:100%;padding:0;border:0;background:#17131e;cursor:zoom-in; }
.mural-post-photo img { width:100%;height:min(720px,72vh);display:block;object-fit:contain;margin:0 auto; }
.mural-carousel-nav { position:absolute;top:50%;z-index:3;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.20);border-radius:50%;background:rgba(20,15,30,.58);color:#fff;font-size:28px;line-height:1;cursor:pointer;backdrop-filter:blur(8px) }.mural-carousel-nav.prev{left:12px}.mural-carousel-nav.next{right:12px}
.mural-carousel-count { position:absolute;top:12px;right:12px;z-index:3;padding:5px 8px;border-radius:999px;background:rgba(20,15,30,.60);color:#fff;font-size:9px;backdrop-filter:blur(8px) }
.mural-post-actions { min-height:46px;display:flex;align-items:center;gap:12px;padding:9px 14px 3px; }
.mural-post-actions form{margin:0}.mural-post-actions button{border:0;background:transparent;color:#4f4858;font:inherit;font-size:16px;font-weight:800;cursor:pointer}.mural-post-actions button span{font-size:10px}.mural-like.liked{color:#e3486c}.mural-share-button{margin-left:auto}
.mural-post-comments { display:grid;gap:5px;margin-top:9px; }.mural-post-comments p{margin:0!important;color:#5f5868!important;font-size:10px!important}.mural-post-comments a{font-weight:900!important;color:#241f2b!important}
.mural-comment-form { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:11px; }.mural-comment-form input{min-width:0;height:38px;padding:0 11px;border:1px solid #e1dbe7;border-radius:11px;background:#faf9fb;outline:0}.mural-comment-form button{padding:0 10px;border:0;background:transparent;color:#6d4aff;font-weight:900;cursor:pointer}
.photo-lightbox { position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:26px;background:rgba(11,8,16,.94); }.photo-lightbox[hidden]{display:none}.photo-lightbox img{max-width:96vw;max-height:92vh;object-fit:contain}.photo-lightbox>button{position:absolute;right:20px;top:16px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:29px;cursor:pointer}.lightbox-open{overflow:hidden}

@media (max-width:760px){
    .auth-simple-card{padding:24px 19px;border-radius:23px}.auth-grid-form{grid-template-columns:1fr}.auth-grid-form label.wide,.auth-grid-form .wide{grid-column:auto}
    .pwa-install-fab{right:12px;bottom:88px}
    .push-settings-card{grid-template-columns:1fr}.push-settings-card button{width:100%}
    .mural-composer form{grid-template-columns:1fr!important}.mural-file-count{grid-column:auto}.mural-file-picker span{width:100%;justify-content:center}
    .mural-post-photo img{height:auto;max-height:74vh}.mural-carousel-nav{width:34px;height:34px}.photo-lightbox{padding:12px}
}




/* ==================================================
   V1.1.1 — MOTION SYSTEM
   Microinterações leves, respeitando performance e
   prefers-reduced-motion.
================================================== */

:root {
    --motion-fast: 150ms;
    --motion-base: 220ms;
    --motion-slow: 360ms;
    --motion-ease: cubic-bezier(.22,.8,.26,1);
    --motion-spring: cubic-bezier(.2,1.25,.35,1);
}

/* Entrada geral */
.motion-reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(.992);
    transition:
        opacity var(--motion-slow) var(--motion-ease),
        transform var(--motion-slow) var(--motion-ease);
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform;
}

.motion-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
}

/* Header e navegação */
.app-header {
    animation: motionHeaderIn 420ms var(--motion-ease) both;
}

.desktop-nav a,
.mobile-nav a,
.header-notification-link,
.admin-mini-link {
    transition:
        color var(--motion-base) ease,
        background var(--motion-base) ease,
        transform var(--motion-fast) var(--motion-spring),
        box-shadow var(--motion-base) ease;
}

.desktop-nav a:hover {
    transform: translateY(-1px);
}

.desktop-nav a:active,
.mobile-nav a:active,
.header-notification-link:active,
.admin-mini-link:active {
    transform: scale(.94);
}

/* Indicador animado da aba ativa no mobile */
.mobile-nav a:not(.mobile-create) {
    position: relative;
}

.mobile-nav a:not(.mobile-create)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary, #6d4aff);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 240ms var(--motion-spring);
}

.mobile-nav a.active:not(.mobile-create)::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-nav a.active > span {
    animation: motionNavPop 320ms var(--motion-spring);
}

/* Cards */
.role-card,
.mural-role-card,
.mural-post,
.profile-section,
.profile-side-card,
.notification-card,
.discovery-card,
.role-community-card,
.role-wall-card,
.post-role-card,
.rateio-card,
.admin-v2-panel,
.admin-v2-metric {
    transition:
        transform var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease),
        border-color var(--motion-base) ease;
}

@media (hover: hover) and (pointer: fine) {
    .standard-role:hover,
    .mural-role-card:hover,
    .profile-side-card:hover,
    .discovery-card:hover,
    .notification-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 44px rgba(35,24,75,.12) !important;
    }

    .role-photo-thumb {
        overflow: hidden;
    }

    .role-photo-thumb img,
    .mural-role-cover img {
        transition: transform 420ms var(--motion-ease), filter 320ms ease;
    }

    .standard-role:hover .role-photo-thumb img,
    .mural-role-card:hover .mural-role-cover img {
        transform: scale(1.035);
    }
}

/* Chips e categorias */
.category-chip,
.discovery-chip,
.origin-chip,
.recurring-chip,
.hero-badge {
    transition:
        transform var(--motion-fast) var(--motion-spring),
        background-color var(--motion-base) ease,
        color var(--motion-base) ease,
        border-color var(--motion-base) ease,
        box-shadow var(--motion-base) ease;
}

.category-chip:hover,
.discovery-chip:hover {
    transform: translateY(-2px);
}

.category-chip:active,
.discovery-chip:active {
    transform: translateY(0) scale(.96);
}

.category-chip.active {
    animation: motionChipSelected 300ms var(--motion-spring);
}

/* Botões */
button,
.btn-primary,
.create-role-button,
.bora-button,
.role-btn,
.profile-edit-button,
.checkin-button,
.admin-primary-action,
.mural-detail-link {
    transition:
        transform var(--motion-fast) var(--motion-spring),
        box-shadow var(--motion-base) ease,
        filter var(--motion-base) ease,
        background-color var(--motion-base) ease,
        color var(--motion-base) ease;
}

button:active,
.btn-primary:active,
.create-role-button:active,
.bora-button:active,
.role-btn:active,
.profile-edit-button:active,
.checkin-button:active,
.admin-primary-action:active {
    transform: scale(.965);
}

.motion-confirm {
    animation: motionConfirmPop 260ms var(--motion-spring) both !important;
}

.mural-like.motion-confirm {
    animation: motionHeartPop 300ms var(--motion-spring) both !important;
}

/* Progresso dos cards */
.progress-bar.motion-progress {
    width: 0 !important;
    transition: width 680ms var(--motion-ease) !important;
}

.progress-bar.motion-progress.is-running {
    width: var(--motion-progress-target) !important;
}

/* Contadores */
.motion-count-pop {
    animation: motionCountPop 280ms var(--motion-spring);
}

/* Mural */
.mural-carousel-track {
    transition: transform 360ms var(--motion-ease) !important;
}

.mural-carousel-nav {
    transition:
        transform var(--motion-fast) var(--motion-spring),
        background var(--motion-base) ease,
        opacity var(--motion-base) ease;
}

.mural-carousel-nav:hover {
    background: rgba(20,15,30,.78);
}

.mural-carousel-nav:active {
    transform: translateY(-50%) scale(.88);
}

.mural-post-photo img {
    transition: transform 360ms var(--motion-ease);
}

.mural-post-photo:active img {
    transform: scale(.992);
}

.mural-post-comments p {
    animation: motionCommentIn 300ms var(--motion-ease) both;
}

.photo-lightbox:not([hidden]) {
    animation: motionLightboxIn 220ms ease both;
}

.photo-lightbox:not([hidden]) img {
    animation: motionPhotoZoom 300ms var(--motion-ease) both;
}

/* Modal/details menus */
details[open] > div,
details[open] > form,
.admin-kebab-menu[open] > div {
    transform-origin: top right;
    animation: motionMenuIn 180ms var(--motion-ease) both;
}

/* Notificação */
.header-notification-link.motion-ring {
    animation: motionBellBox 520ms var(--motion-ease);
}

.header-notification-link.motion-ring > span {
    display: inline-block;
    animation: motionBell 520ms ease-in-out;
}

.header-notification-link b {
    transition: transform 180ms var(--motion-spring);
}

.header-notification-link.motion-ring b {
    transform: scale(1.18);
}

.live-notification-toast.show {
    animation: motionToastIn 340ms var(--motion-ease) both;
}

/* Hero */
.themed-hero {
    --hero-parallax-y: 0px;
    background-position:
        center calc(50% + var(--hero-parallax-y)),
        center,
        center !important;
    transition: background-position 80ms linear;
}

.themed-hero .hero-content,
.themed-hero .hero-badges,
.themed-hero .create-role-button {
    position: relative;
    z-index: 2;
}

.themed-hero .hero-content {
    animation: motionHeroCopyIn 520ms var(--motion-ease) both;
}

.themed-hero .create-role-button {
    animation: motionHeroButtonIn 560ms 90ms var(--motion-ease) both;
}

/* Botão criar flutuante / PWA */
.mobile-create,
.pwa-install-fab {
    animation: motionFloatSoft 3.4s ease-in-out infinite;
}

/* Pequena barra de navegação entre páginas */
.motion-route-bar {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, #6d4aff, #a775ff, #ff6fa4);
    opacity: 0;
    pointer-events: none;
}

.motion-route-bar.is-running {
    opacity: 1;
    animation: motionRouteBar 800ms var(--motion-ease) forwards;
}

/* View Transitions em navegadores Chromium modernos */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: motionPageOut 150ms ease both;
}

::view-transition-new(root) {
    animation: motionPageIn 260ms var(--motion-ease) both;
}

/* Keyframes */
@keyframes motionHeaderIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes motionNavPop {
    0% { transform: scale(.82); }
    65% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes motionChipSelected {
    0% { transform: scale(.94); }
    70% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes motionConfirmPop {
    0% { transform: scale(.94); }
    55% { transform: scale(1.055); }
    100% { transform: scale(1); }
}

@keyframes motionHeartPop {
    0% { transform: scale(.82); }
    45% { transform: scale(1.32) rotate(-5deg); }
    75% { transform: scale(.96) rotate(2deg); }
    100% { transform: scale(1); }
}

@keyframes motionCountPop {
    0% { transform: scale(.82); opacity: .5; }
    65% { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes motionCommentIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes motionLightboxIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes motionPhotoZoom {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes motionMenuIn {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes motionBell {
    0%,100% { transform: rotate(0); }
    20% { transform: rotate(16deg); }
    40% { transform: rotate(-14deg); }
    60% { transform: rotate(9deg); }
    80% { transform: rotate(-5deg); }
}

@keyframes motionBellBox {
    0%,100% { box-shadow: 0 8px 20px rgba(24,16,52,.04); }
    50% { box-shadow: 0 9px 28px rgba(109,74,255,.22); }
}

@keyframes motionToastIn {
    from { opacity: 0; transform: translateY(-14px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes motionHeroCopyIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes motionFloatSoft {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes motionRouteBar {
    0% { width: 0; opacity: 1; }
    55% { width: 72%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

@keyframes motionPageOut {
    to { opacity: .78; transform: scale(.997); }
}

@keyframes motionPageIn {
    from { opacity: .82; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Performance: no celular não fazemos parallax pesado. */
@media (max-width: 760px) {
    .themed-hero {
        background-position: center, center, center !important;
        transition: none;
    }

    .standard-role:hover,
    .mural-role-card:hover {
        transform: none;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .motion-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .mobile-create,
    .pwa-install-fab {
        animation: none !important;
    }
}




/* ==================================================
   V1.1.1.1 — MURAL AJAX
   Curtidas e comentários sem reload da página.
================================================== */

.js-mural-like-form,
.js-mural-comment-form {
    position: relative;
}

.mural-like:disabled,
.mural-comment-form button:disabled {
    cursor: wait;
    opacity: .68;
}

.mural-comment-new {
    animation: motionCommentIn 320ms var(--motion-ease) both;
    transform-origin: left center;
}

.mural-comment-form button {
    min-width: 68px;
}

.mural-like {
    min-width: 46px;
}

.mural-like.liked {
    text-shadow: 0 3px 15px rgba(227,72,108,.16);
}


/* ==================================================
   V1.2.0 — CHAT, SALVOS, MAPA, SEGURANÇA V2 E MURAL SOCIAL
================================================== */

/* mobile nav agora acomoda o mapa */
@media (max-width:760px){
    .mobile-nav{grid-template-columns:repeat(6,1fr)!important;padding-left:4px!important;padding-right:4px!important}
    .mobile-nav a,.mobile-nav button{font-size:17px!important}
    .mobile-nav small{font-size:7px!important}
}

/* salvar rolê */
.role-card-top{gap:8px}
.role-card-badges{flex:1;min-width:0}
.role-save-form{margin:0 0 0 auto;flex:0 0 auto}
.role-save-button,.detail-save-button{border:1px solid rgba(109,74,255,.14);background:rgba(255,255,255,.92);color:#70677c;cursor:pointer;box-shadow:0 7px 18px rgba(35,24,75,.05)}
.role-save-button{width:36px;height:36px;border-radius:11px;font-size:18px}
.role-save-button.saved,.detail-save-button.saved{color:#e3486c;background:#fff4f7;border-color:#f3c8d3}
.detail-top-badges{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.detail-save-form{margin:0}.detail-save-button{min-height:31px;padding:0 10px;border-radius:10px;font-size:9px;font-weight:900}
.saved-page{padding-bottom:120px}.saved-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px 0}.saved-heading h1{margin-top:5px;font-size:clamp(38px,5vw,62px);letter-spacing:-.06em}.saved-heading p{max-width:680px;margin-top:10px;color:#81798c;line-height:1.6}.saved-heading>a{min-height:44px;display:inline-flex;align-items:center;padding:0 15px;border-radius:13px;background:#6d4aff;color:#fff;text-decoration:none;font-size:10px;font-weight:900}.saved-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.saved-role-card{display:grid;grid-template-columns:48px minmax(0,1fr) 38px;align-items:start;gap:13px;padding:18px;border:1px solid #e7e1ed;border-radius:20px;background:#fff;box-shadow:0 13px 32px rgba(35,24,75,.06);transition:.22s ease}.saved-role-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#f1edff;font-size:23px}.saved-role-copy small{color:#7860df;font-size:9px;font-weight:900}.saved-role-copy h2{margin-top:5px;font-size:22px}.saved-role-copy h2 a{color:inherit;text-decoration:none}.saved-role-copy p{margin-top:7px;color:#81798b;font-size:11px;line-height:1.5}.saved-role-copy>div{display:flex;flex-wrap:wrap;gap:8px 13px;margin-top:12px;color:#847c8e;font-size:9px}

/* chat */
.role-chat-shortcut{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:18px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.09)}.role-chat-shortcut h3{margin-top:4px;font-size:20px}.role-chat-shortcut p{max-width:560px;margin-top:5px;color:rgba(255,255,255,.72);font-size:10px;line-height:1.5}.role-chat-shortcut>a{min-height:42px;display:inline-flex;align-items:center;padding:0 14px;border-radius:12px;background:#fff;color:#5f48ca;text-decoration:none;font-size:10px;font-weight:900;white-space:nowrap}
.role-chat-page{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:28px 0 120px}.chat-role-head{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px;border:1px solid #e6e0ec;border-radius:21px;background:#fff;box-shadow:0 12px 30px rgba(35,24,75,.06)}.chat-role-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:#eee9ff;font-size:27px}.chat-role-head h1{margin-top:3px;font-size:27px;letter-spacing:-.045em}.chat-role-head p{margin-top:5px;color:#8a8294;font-size:10px}.chat-role-head>a{color:#6d4aff;text-decoration:none;font-size:10px;font-weight:900}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;margin-top:16px}.chat-main{overflow:hidden;border:1px solid #e5dfeb;border-radius:22px;background:#fff;box-shadow:0 16px 38px rgba(35,24,75,.06)}.chat-messages{height:min(62vh,620px);overflow-y:auto;display:flex;flex-direction:column;gap:9px;padding:18px;background:linear-gradient(180deg,#fbfaff,#f6f3fa)}.chat-message{max-width:82%;display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-self:flex-start}.chat-message.mine{grid-template-columns:minmax(0,1fr);align-self:flex-end}.chat-message.mine .chat-avatar{display:none}.chat-message>div{padding:10px 12px;border:1px solid #e9e4ee;border-radius:5px 15px 15px 15px;background:#fff}.chat-message.mine>div{border-color:#ded4ff;border-radius:15px 5px 15px 15px;background:#eee9ff}.chat-avatar img,.chat-avatar span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;object-fit:cover;background:#e9e3ff;color:#6d4aff;font-weight:900}.chat-message-meta{display:flex;align-items:center;gap:8px}.chat-message-meta strong{font-size:9px}.chat-message-meta small{color:#a49cac;font-size:7px}.chat-message p{margin-top:4px;color:#4e4757;font-size:11px;line-height:1.5;white-space:pre-wrap}.chat-location-link{display:inline-block;margin-top:7px;color:#6d4aff;text-decoration:none;font-size:9px;font-weight:900}.chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-top:1px solid #eeeaf2}.chat-composer textarea{min-height:44px;max-height:110px;padding:12px;border:1px solid #ddd6e5;border-radius:13px;resize:vertical;outline:0}.chat-composer button,.chat-location-form button{border:0;border-radius:12px;background:#6d4aff;color:#fff;font-weight:900;cursor:pointer}.chat-composer button{padding:0 17px}.chat-location-form{padding:0 12px 12px}.chat-location-form button{min-height:38px;padding:0 12px;background:#f0ecff;color:#654bd1}.chat-archived{padding:16px;border-top:1px solid #eeeaf2;background:#f8f6fa;color:#81798a;font-size:10px;line-height:1.5}.chat-side{padding:17px;border:1px solid #e5dfeb;border-radius:20px;background:#fff}.chat-side h3{margin-top:5px;font-size:20px}.chat-side>p{margin-top:13px;color:#8c8496;font-size:9px;line-height:1.55}.chat-participants{display:grid;gap:5px;margin-top:12px}.chat-participants a{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;padding:6px;border-radius:10px;color:inherit;text-decoration:none}.chat-participants a:hover{background:#f7f4fb}.chat-participants img,.chat-participants>a>span{width:34px;height:34px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#eee9ff;color:#6d4aff;font-weight:900}.chat-participants strong{display:block;font-size:9px}.chat-participants small{display:block;margin-top:2px;color:#9c94a5;font-size:7px}

/* mapa */
.map-page{width:min(1240px,calc(100% - 36px));margin:0 auto;padding:28px 0 100px}.map-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.map-heading h1{margin-top:5px;font-size:clamp(42px,6vw,70px);letter-spacing:-.065em}.map-heading p{max-width:720px;margin-top:8px;color:#81798b;font-size:11px;line-height:1.6}.map-heading button{min-height:44px;padding:0 15px;border:0;border-radius:13px;background:#6d4aff;color:#fff;font-weight:900;cursor:pointer}.map-filter-strip,.map-date-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.map-filter-strip{margin-top:20px;padding-bottom:5px}.map-date-tabs{margin-top:9px}.map-filter-strip a,.map-date-tabs a{flex:0 0 auto;padding:8px 11px;border:1px solid #e1dbe8;border-radius:999px;background:#fff;color:#696171;text-decoration:none;font-size:9px;font-weight:800}.map-filter-strip a.active,.map-date-tabs a.active{border-color:#6d4aff;background:#eee9ff;color:#6047cf}.role-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;margin-top:14px}.roles-map{height:650px;overflow:hidden;border:1px solid #e3dce9;border-radius:24px;background:#eeeaf2;box-shadow:0 14px 36px rgba(35,24,75,.07)}.map-side-list{height:650px;overflow:hidden;display:flex;flex-direction:column;border:1px solid #e3dce9;border-radius:22px;background:#fff}.map-side-head{padding:14px 15px;border-bottom:1px solid #eeeaf2}.map-side-head strong,.map-side-head small{display:block}.map-side-head strong{font-size:11px}.map-side-head small{margin-top:3px;color:#9b93a3;font-size:8px}.map-side-list>#mapRoleList{overflow-y:auto;padding:7px}.map-role-row{display:grid;grid-template-columns:39px minmax(0,1fr);gap:9px;align-items:center;padding:10px;border-radius:13px;color:inherit;text-decoration:none}.map-role-row:hover{background:#f7f4fb}.map-role-dot{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;color:#fff;font-size:17px}.map-role-row small{color:#8e8598;font-size:7px}.map-role-row strong{display:block;margin-top:2px;font-size:10px}.map-role-row p{margin-top:2px;color:#928a9c;font-size:8px}.map-popup{min-width:190px}.map-popup strong{font-size:12px}.map-popup p{white-space:pre-line;margin:6px 0;color:#716979;font-size:10px}.map-popup a{color:#6d4aff;text-decoration:none;font-weight:900;font-size:10px}.leaflet-popup-content-wrapper{border-radius:15px!important}.leaflet-control-attribution{font-size:7px!important}

/* mural social v3 */
.mural-composer form{grid-template-columns:auto minmax(0,1fr)!important}.mural-composer form>button{grid-column:auto}.mural-composer input[name="tags"]{min-height:44px;padding:0 13px;border:1px solid #ddd6e7;border-radius:12px}.mural-post-photo-slide{position:relative;flex:0 0 100%;width:100%}.mural-post-photo{width:100%!important;flex:none!important}.mural-admin-image-remove{position:absolute;z-index:5;top:12px;left:12px}.mural-admin-image-remove button{width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(20,15,30,.68);color:#fff;font-size:18px;cursor:pointer}.mural-tagged-people{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:9px 0}.mural-tagged-people span{color:#a098a8;font-size:8px}.mural-tagged-people a{padding:4px 7px;border-radius:999px;background:#f0ecff;color:#684ed3;text-decoration:none;font-size:8px;font-weight:850}.mural-post-comments{gap:7px!important}.mural-comment-item{padding:7px 9px;border-radius:10px;background:#faf9fb}.mural-comment-item.reply{margin-left:24px;border-left:2px solid #ddd3ff}.mural-comment-item p{margin:0!important}.reply-to{display:inline-block;margin-right:5px;color:#8d7ad3;font-size:8px;font-weight:850}.mural-comment-actions{display:flex;align-items:center;gap:9px;margin-top:4px}.mural-comment-actions form{margin:0}.mural-comment-actions button{padding:0;border:0;background:transparent;color:#9a91a2;font-size:8px;font-weight:800;cursor:pointer}.mural-comment-actions .mural-comment-like.liked{color:#e3486c}.mural-comment-actions .danger{color:#c45161}.mural-reply-context{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:6px 9px;border-radius:9px;background:#f0ecff;color:#6d56c5;font-size:8px}.mural-reply-context[hidden]{display:none!important}.mural-reply-context button{min-width:auto!important;min-height:auto!important;padding:0 5px!important;background:transparent!important;color:#6d56c5!important}

/* segurança */
.profile-block-state{display:inline-flex;align-items:center;padding:0 11px;border-radius:11px;background:#f3f0f5;color:#7e7686;font-size:9px;font-weight:850}.admin-user-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.admin-user-actions details{position:relative}.admin-user-actions summary{cursor:pointer;color:#6d4aff;font-size:8px;font-weight:850}.admin-user-actions details form{position:absolute;right:0;top:24px;z-index:10;width:220px;padding:9px;border:1px solid #e2dce8;border-radius:12px;background:#fff;box-shadow:0 15px 36px rgba(35,24,75,.12)}.admin-user-actions details input{width:100%;height:34px;padding:0 8px;border:1px solid #ddd6e5;border-radius:8px}.admin-user-actions details button{margin-top:6px;width:100%}.admin-user-actions>small{max-width:180px;color:#9b92a3;font-size:7px}.moderation-log-list{display:grid;gap:7px}.moderation-log-list article{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;padding:10px;border-top:1px solid #eeeaf2}.moderation-log-list article:first-child{border-top:0}.moderation-log-list>article>span{color:#8f8799;font-size:8px}.moderation-log-list strong{font-size:9px}.moderation-log-list small{display:block;margin-top:2px;color:#9991a2;font-size:7px}.moderation-log-list p{margin-top:4px;color:#756d7f;font-size:8px}

@media(max-width:900px){.saved-role-grid{grid-template-columns:1fr}.chat-layout,.role-map-layout{grid-template-columns:1fr}.chat-side{order:-1}.roles-map{height:62vh;min-height:480px}.map-side-list{height:auto;max-height:420px}.role-chat-shortcut{align-items:flex-start;flex-direction:column}.mural-composer form{grid-template-columns:1fr!important}.mural-composer form>button{grid-column:auto}}
@media(max-width:760px){.saved-heading,.map-heading{display:block}.saved-heading>a,.map-heading button{margin-top:14px}.saved-role-card{grid-template-columns:42px minmax(0,1fr) 36px}.role-chat-page,.map-page{width:calc(100% - 24px)}.chat-role-head{grid-template-columns:48px minmax(0,1fr)}.chat-role-head>a{grid-column:1/-1}.chat-role-icon{width:48px;height:48px}.chat-side{display:none}.chat-messages{height:58vh;padding:12px}.chat-message{max-width:92%}.roles-map{height:58vh;min-height:430px;border-radius:19px}.map-filter-strip{margin-right:-12px;padding-right:12px}.mural-comment-item.reply{margin-left:13px}}




/* ==================================================
   V1.2.0.2 — MAPA PERTO DE MIM + ROTAS
================================================== */

.map-nearby-heading {
    align-items: center;
}

.map-locate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.map-locate-button:disabled {
    opacity: .72;
    cursor: wait;
}

.map-locate-pulse {
    animation: mapLocatePulse 1s ease-in-out infinite;
}

.map-nearby-status {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #e1dbe9;
    border-radius: 17px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 10px 28px rgba(35,24,75,.05);
}

.map-nearby-status.located {
    border-color: rgba(59,180,111,.20);
    background: #f4fcf7;
}

.map-nearby-status.failed {
    border-color: rgba(215,153,61,.22);
    background: #fffaf1;
}

.map-user-status-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: #eee9ff;
    font-size: 19px;
}

.map-nearby-status strong,
.map-nearby-status small {
    display: block;
}

.map-nearby-status strong {
    font-size: 11px;
}

.map-nearby-status small {
    margin-top: 3px;
    color: #8b8295;
    font-size: 9px;
    line-height: 1.45;
}

.map-distance-tabs {
    display: flex;
    gap: 7px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.map-distance-tabs[hidden] {
    display: none !important;
}

.map-distance-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #ddd6e7;
    border-radius: 999px;
    background: #fff;
    color: #6d6576;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.map-distance-tabs button.active {
    border-color: #6d4aff;
    background: #eee9ff;
    color: #6047cf;
    box-shadow: 0 6px 16px rgba(109,74,255,.10);
}

.map-main-panel {
    position: relative;
    min-width: 0;
}

.map-route-card {
    position: absolute;
    z-index: 800;
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-height: 76px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) auto 34px;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 46px rgba(22,15,48,.20);
    backdrop-filter: blur(12px) saturate(125%);
}

.map-route-card[hidden] {
    display: none !important;
}

.map-route-card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eee9ff;
    color: #6d4aff;
    font-size: 22px;
    font-weight: 900;
}

.map-route-card-copy {
    min-width: 0;
}

.map-route-card-copy small {
    display: block;
    color: #795fe3;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .08em;
}

.map-route-card-copy strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.map-route-card-copy p {
    margin-top: 3px;
    color: #777080;
    font-size: 9px;
}

.map-route-card > a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 11px;
    background: #6d4aff;
    color: #fff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.map-route-card > button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: #f3f0f5;
    color: #766e7e;
    font-size: 20px;
    cursor: pointer;
}

.map-role-row {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background .18s ease, transform .18s ease;
}

.map-role-row:hover {
    transform: translateX(2px);
}

.map-role-row.selected {
    background: #f1edff;
    box-shadow: inset 3px 0 0 #6d4aff;
}

.map-role-distance {
    display: inline-flex;
    margin-top: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eee9ff;
    color: #654bcf;
    font-size: 8px;
    font-weight: 900;
}

.map-no-nearby {
    padding: 34px 18px;
    text-align: center;
    color: #898090;
}

.map-no-nearby[hidden] {
    display: none !important;
}

.map-no-nearby span {
    display: block;
    font-size: 31px;
}

.map-no-nearby strong,
.map-no-nearby small {
    display: block;
}

.map-no-nearby strong {
    margin-top: 8px;
    font-size: 11px;
}

.map-no-nearby small {
    margin-top: 3px;
    font-size: 8px;
}

/* marcador do usuário */
.map-user-marker-shell,
.map-role-marker-shell {
    background: transparent !important;
    border: 0 !important;
}

.map-user-marker {
    position: relative;
    width: max-content;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px 5px 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #6d4aff;
    color: #fff;
    box-shadow: 0 7px 20px rgba(64,42,145,.28);
}

.map-user-marker > span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #6d4aff;
    font-size: 8px;
}

.map-user-marker > b {
    font-size: 9px;
    white-space: nowrap;
}

.map-role-marker {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 15%;
    background: var(--pin-color);
    box-shadow: 0 7px 18px rgba(24,16,52,.19);
    transform: rotate(-45deg);
    transition: transform .18s ease, box-shadow .18s ease;
}

.map-role-marker > span {
    transform: rotate(45deg);
    font-size: 16px;
}

.map-role-marker.selected {
    transform: rotate(-45deg) scale(1.16);
    box-shadow: 0 9px 25px rgba(51,34,110,.30);
}

.map-route-popup {
    min-width: 210px;
}

.map-route-popup > small {
    display: block;
    color: #7861d9;
    font-size: 8px;
    font-weight: 900;
}

.map-route-popup > strong {
    display: block;
    margin-top: 4px;
}

.map-popup-distance {
    margin: 7px 0;
    padding: 6px 8px;
    border-radius: 9px;
    background: #f2eeff;
    color: #654cc7;
    font-size: 9px;
    font-weight: 850;
}

.map-popup-route {
    width: 100%;
    min-height: 35px;
    margin: 3px 0 8px;
    border: 0;
    border-radius: 10px;
    background: #6d4aff;
    color: #fff;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

@keyframes mapLocatePulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.16); opacity: .65; }
}

@media (max-width: 900px) {
    .map-route-card {
        grid-template-columns: 40px minmax(0,1fr) 32px;
    }

    .map-route-card > a {
        grid-column: 1 / -1;
        min-height: 36px;
    }
}

@media (max-width: 760px) {
    .map-nearby-heading {
        display: block;
    }

    .map-locate-button {
        width: 100%;
        margin-top: 14px !important;
    }

    .map-nearby-status {
        align-items: flex-start;
    }

    .role-map-layout {
        display: flex !important;
        flex-direction: column;
    }

    .map-main-panel {
        order: 1;
    }

    .map-side-list {
        order: 2;
    }

    .roles-map {
        height: 56vh !important;
        min-height: 430px !important;
    }

    .map-route-card {
        left: 9px;
        right: 9px;
        bottom: 9px;
        border-radius: 15px;
    }

    .map-route-card-copy p {
        font-size: 8px;
    }

    .map-side-list {
        max-height: 430px;
    }
}




/* V1.2.0.3 — Resolver link do Google Maps */
.map-link-field {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    align-items: center;
}
.map-link-field .secondary-form-button {
    height: 42px;
    margin: 0;
}
#roleLocationStatus.map-link-resolved {
    color: #248255;
    font-weight: 800;
}
@media (max-width: 620px) {
    .map-link-field {
        grid-template-columns: 1fr;
    }
    .map-link-field .secondary-form-button {
        width: 100%;
    }
}




/* ==================================================
   V1.2.0.4 — ENDEREÇO COM AUTOCOMPLETE
================================================== */

.address-picker-card {
    overflow: visible !important;
}

.address-search-label {
    position: relative;
}

.address-search-wrap {
    position: relative;
    margin-top: 6px;
}

.address-search-wrap > input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 40px !important;
    border: 1px solid #dcd5e5;
    border-radius: 13px;
    background: #fff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.address-search-wrap > input:focus {
    border-color: rgba(109,74,255,.52);
    box-shadow: 0 0 0 4px rgba(109,74,255,.08);
}

.address-search-icon {
    position: absolute;
    z-index: 3;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #756a83;
    font-size: 17px;
    pointer-events: none;
}

.address-search-spinner {
    position: absolute;
    z-index: 3;
    right: 15px;
    top: 50%;
    width: 17px;
    height: 17px;
    margin-top: -9px;
    border: 2px solid #e3ddeb;
    border-top-color: #6d4aff;
    border-radius: 50%;
    animation: addressSpinner .7s linear infinite;
}

.address-search-spinner[hidden] {
    display: none !important;
}

.address-suggestions {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #ded7e8;
    border-radius: 15px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 48px rgba(31,20,67,.17);
}

.address-suggestions[hidden] {
    display: none !important;
}

.address-suggestion-item {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 0;
    border-bottom: 1px solid #f0edf3;
    background: transparent;
    color: #302a37;
    text-align: left;
    cursor: pointer;
}

.address-suggestion-item:last-child {
    border-bottom: 0;
}

.address-suggestion-item:hover,
.address-suggestion-item.active {
    background: #f5f1ff;
}

.address-suggestion-pin {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eee9ff;
    color: #6d4aff;
    font-size: 16px;
}

.address-suggestion-item strong,
.address-suggestion-item small {
    display: block;
}

.address-suggestion-item strong {
    font-size: 10px;
    line-height: 1.25;
}

.address-suggestion-item small {
    margin-top: 3px;
    overflow: hidden;
    color: #8e8598;
    font-size: 8px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.address-suggestion-empty {
    padding: 16px;
    color: #8c8495;
    font-size: 9px;
    text-align: center;
}

#roleLocationStatus.address-resolved {
    color: #248255;
    font-weight: 800;
}

.address-preview-map {
    height: 230px;
    overflow: hidden;
    margin-top: 2px;
    border: 1px solid #ded8e6;
    border-radius: 16px;
    background: #eeeaf2;
}

.address-preview-map[hidden] {
    display: none !important;
}

.address-preview-map .leaflet-control-attribution {
    font-size: 7px !important;
}

.role-address-line {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.68);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
}

@keyframes addressSpinner {
    to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
    .address-suggestions {
        max-height: 270px;
    }

    .address-preview-map {
        height: 200px;
    }
}


/* ==================================================
   V1.3 — PERFIL SOCIAL
================================================== */
.profile-social-page,.edit-social-profile-page,.profile-connections-page{width:min(1180px,calc(100% - 34px));margin:0 auto;padding:24px 0 110px}.social-profile-hero{overflow:visible;border:1px solid #e6e0eb;border-radius:26px;background:#fff;box-shadow:0 18px 52px rgba(35,24,75,.08)}.social-profile-cover{position:relative;height:290px;border-radius:25px 25px 0 0;background-size:cover;background-position:center;overflow:hidden}.social-profile-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,12,35,.03),rgba(18,12,35,.30))}.social-profile-cover.fallback{background:linear-gradient(135deg,var(--profile-accent,#6d4aff),var(--profile-accent-2,#9b76ff))}.social-profile-cover.fallback::before{content:"";position:absolute;width:380px;height:380px;right:-80px;top:-150px;border-radius:50%;background:rgba(255,255,255,.12);box-shadow:-330px 250px 0 rgba(255,255,255,.07)}.cover-fallback-copy{position:absolute;z-index:2;left:32px;bottom:28px;color:#fff}.cover-fallback-copy span{display:block;font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;opacity:.78}.cover-fallback-copy strong{display:block;margin-top:6px;font-family:Sora,Plus Jakarta Sans,sans-serif;font-size:25px}.cover-edit-fab{position:absolute;z-index:3;right:18px;top:18px;padding:9px 12px;border:1px solid rgba(255,255,255,.34);border-radius:12px;background:rgba(20,14,38,.48);backdrop-filter:blur(10px);color:#fff;text-decoration:none;font-size:9px;font-weight:850}.social-profile-identity{position:relative;display:grid;grid-template-columns:148px minmax(0,1fr) auto;gap:20px;padding:0 28px 22px}.social-avatar-wrap{position:relative;width:138px;height:138px;margin-top:-62px;z-index:4;border:5px solid #fff;border-radius:50%;background:#f1edff;box-shadow:0 12px 34px rgba(36,24,72,.15)}.social-avatar-wrap>img,.social-avatar-wrap>span{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;object-fit:cover;font-size:46px;font-weight:900;color:#6d4aff}.social-avatar-wrap>a{position:absolute;right:2px;bottom:5px;width:32px;height:32px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;background:#6d4aff;color:#fff;text-decoration:none;font-size:18px}.social-profile-maincopy{padding-top:16px}.social-profile-maincopy h1{margin-top:4px;font-family:Sora,Plus Jakarta Sans,sans-serif;font-size:clamp(30px,4vw,44px);letter-spacing:-.045em}.social-handle{margin-top:4px;color:#81788b;font-size:10px;font-weight:700}.social-handle span{padding:0 4px;color:#c0b8c8}.social-profile-maincopy>p{max-width:650px;margin-top:10px;color:#696170;font-size:11px;line-height:1.65}.social-profile-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:7px;padding-top:20px}.social-profile-actions form{margin:0}.profile-primary-action,.profile-secondary-action{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;border:0;border-radius:11px;font:inherit;font-size:9px;font-weight:900;text-decoration:none;cursor:pointer;white-space:nowrap}.profile-primary-action{background:#6d4aff;color:#fff;box-shadow:0 8px 22px rgba(109,74,255,.20)}.profile-primary-action.following{background:#eee9ff;color:#6047cf}.profile-secondary-action{border:1px solid #ddd6e6;background:#fff;color:#655d6d}.profile-invite-menu{position:relative}.profile-invite-menu>summary{list-style:none}.profile-invite-menu>summary::-webkit-details-marker{display:none}.profile-invite-menu>div{position:absolute;z-index:50;right:0;top:47px;width:300px;max-height:330px;overflow-y:auto;padding:7px;border:1px solid #e1dae8;border-radius:14px;background:#fff;box-shadow:0 18px 46px rgba(35,24,75,.16)}.profile-invite-menu form{margin:0}.profile-invite-menu form button{width:100%;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:8px;padding:9px;border:0;border-radius:10px;background:transparent;text-align:left;cursor:pointer}.profile-invite-menu form button:hover{background:#f6f3fb}.profile-invite-menu form span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#eee9ff}.profile-invite-menu form b{font-size:9px}.profile-invite-menu form small{color:#948b9d;font-size:7px}.profile-thought-shell{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;margin:0 28px 20px;padding:12px 14px;border:1px solid #e9e3ef;border-radius:16px;background:linear-gradient(135deg,#fbfaff,#f5f1ff)}.profile-thought-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#eae4ff;font-size:20px}.profile-thought-copy strong,.profile-thought-copy small{display:block}.profile-thought-copy strong{font-size:11px;line-height:1.45}.profile-thought-copy small{margin-top:3px;color:#958d9e;font-size:8px}.thought-editor{position:relative}.thought-editor>summary{list-style:none;color:#6d4aff;font-size:9px;font-weight:900;cursor:pointer}.thought-editor>summary::-webkit-details-marker{display:none}.thought-editor form{position:absolute;z-index:40;right:0;top:28px;width:min(360px,80vw);padding:11px;border:1px solid #e0d9e7;border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(35,24,75,.16)}.thought-editor textarea{width:100%;resize:none;padding:10px;border:1px solid #ded7e6;border-radius:10px;font:inherit;font-size:10px}.thought-editor form>div{display:flex;align-items:center;gap:6px;margin-top:7px}.thought-editor form small{margin-right:auto;color:#9a92a2;font-size:8px}.thought-editor button{min-height:31px;padding:0 9px;border:0;border-radius:8px;background:#6d4aff;color:#fff;font-size:8px;font-weight:850;cursor:pointer}.thought-editor .thought-delete{background:#f8ecef;color:#b24e60}.profile-social-stats{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #eee9f1}.profile-social-stats>a,.profile-social-stats>div{padding:15px 10px;text-align:center;color:inherit;text-decoration:none;border-right:1px solid #eee9f1}.profile-social-stats>:last-child{border-right:0}.profile-social-stats strong,.profile-social-stats span{display:block}.profile-social-stats strong{font-size:16px}.profile-social-stats span{margin-top:2px;color:#958d9e;font-size:8px}.profile-social-stats>a:hover{background:#faf8fd}.profile-social-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;margin-top:14px}.profile-social-main,.profile-social-side{display:grid;align-content:start;gap:14px}.profile-social-card{padding:20px;border:1px solid #e6e0eb;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(35,24,75,.045)}.profile-social-card.compact{padding:16px}.profile-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}.profile-card-head h2{margin-top:4px;font-size:20px;letter-spacing:-.035em}.profile-card-head>a{color:#6d4aff;text-decoration:none;font-size:8px;font-weight:900}.profile-card-head>small{color:#9a92a2;font-size:8px}.profile-card-head.mini h3{margin-top:3px}.about-bio{color:#665e6d;font-size:11px;line-height:1.7}.profile-vibe-tags,.profile-availability>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}.profile-vibe-tags span,.profile-availability span{padding:7px 9px;border-radius:999px;background:#f4f1f8;color:#675f70;font-size:8px;font-weight:800}.profile-availability{margin-top:16px}.profile-availability>strong{font-size:9px}.profile-interest-chips-social{margin-top:16px}.profile-interest-chips-social a{font-size:8px!important}.profile-vibe-bars{display:grid;gap:10px}.profile-vibe-bars>a{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;color:inherit;text-decoration:none}.vibe-emoji{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#f6f3fa;font-size:17px}.profile-vibe-bars>a>div>div{display:flex;align-items:center;justify-content:space-between}.profile-vibe-bars strong{font-size:9px}.profile-vibe-bars small{color:#928a9b;font-size:8px}.profile-vibe-bars i{display:block;height:6px;margin-top:5px;overflow:hidden;border-radius:999px;background:#eeeaf2}.profile-vibe-bars i b{display:block;height:100%;border-radius:inherit}.profile-role-sections{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-role-sections>div>h3{margin-bottom:8px;font-size:10px}.profile-muted-line{padding:13px;border-radius:12px;background:#faf8fc;color:#9991a2;font-size:9px}.profile-memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.profile-memory-grid>a{position:relative;min-height:145px;overflow:hidden;border-radius:14px;background:#ece8f1;color:#fff;text-decoration:none}.profile-memory-grid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.profile-memory-grid>a::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 44%,rgba(15,10,28,.75))}.profile-memory-grid>a:hover img{transform:scale(1.035)}.profile-memory-grid span,.profile-memory-grid strong{position:absolute;z-index:2;left:9px;right:9px}.profile-memory-grid span{top:9px;width:max-content;padding:4px 6px;border-radius:999px;background:rgba(15,10,28,.55);font-size:7px;font-weight:800}.profile-memory-grid strong{bottom:9px;font-size:8px}.profile-reputation-meter{display:flex;align-items:center;gap:8px;margin:12px 0 8px}.profile-reputation-meter i{flex:1;height:7px;overflow:hidden;border-radius:999px;background:#eeeaf2}.profile-reputation-meter i b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#6d4aff,#aa78ff)}.profile-reputation-meter>strong{font-size:10px}.profile-social-side p{color:#8f8798;font-size:8px;line-height:1.5}.profile-rating{margin-top:10px;color:#c68516;font-size:10px;font-weight:900}.profile-rating span{color:#9b92a3;font-size:7px}.profile-badge-list{display:grid;gap:7px;margin-top:10px}.profile-badge-list>div{display:grid;grid-template-columns:35px minmax(0,1fr);align-items:center;gap:8px;padding:8px;border-radius:11px;background:#faf8fc}.profile-badge-list>div>span{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#eee9ff;font-size:17px}.profile-badge-list strong,.profile-badge-list small{display:block}.profile-badge-list strong{color:#4a414f;font-size:8px}.profile-badge-list small{margin-top:2px;font-size:7px}.profile-people-list{display:grid;gap:6px;margin-top:10px}.profile-people-list>a{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;padding:5px;border-radius:10px;color:inherit;text-decoration:none}.profile-people-list>a:hover{background:#f7f4fa}.profile-people-list img,.profile-people-list>a>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;object-fit:cover;background:#eee9ff;color:#6d4aff;font-weight:900}.profile-people-list strong,.profile-people-list small{display:block}.profile-people-list strong{font-size:8px}.profile-people-list small{color:#958c9e;font-size:7px}.profile-account-links{display:grid;gap:5px}.profile-account-links a{padding:9px;border-radius:9px;color:#675f70;text-decoration:none;font-size:8px;font-weight:800}.profile-account-links a:hover{background:#f7f4fa}.edit-social-profile-page{max-width:920px}.edit-social-profile-form{display:grid;gap:14px;margin-top:20px}.edit-social-card{padding:20px;border:1px solid #e5dfeb;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(35,24,75,.045)}.edit-card-heading{margin-bottom:16px}.edit-card-heading h2{margin-top:4px;font-size:20px}.edit-card-heading p{margin-top:5px;color:#8f8798;font-size:9px}.cover-editor{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(220px,.55fr);gap:16px}.cover-editor-preview{height:235px;border-radius:17px;background-size:cover;background-position:center;background-color:#eee9ff;overflow:hidden}.cover-editor-preview.fallback{display:grid;place-items:center;background:linear-gradient(135deg,#6d4aff,#9b76ff);color:#fff;font-size:11px;font-weight:850}.image-editor-controls{display:grid;align-content:center;gap:10px}.image-editor-controls h3{font-size:14px}.image-editor-controls p{color:#8f8798;font-size:8px}.image-editor-controls>label:not(.upload-social-photo):not(.remove-media-check){display:grid;gap:5px;color:#736b7d;font-size:8px;font-weight:800}.image-editor-controls input[type=range]{width:100%;accent-color:#6d4aff}.upload-social-photo{width:max-content;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 11px;border-radius:10px;background:#6d4aff;color:#fff;font-size:8px;font-weight:900;cursor:pointer}.upload-social-photo input{display:none}.remove-media-check{display:flex!important;align-items:center;gap:6px;color:#b05261!important;font-size:8px!important}.avatar-editor{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center;margin-top:18px;padding-top:18px;border-top:1px solid #eee9f1}.avatar-editor-preview{width:140px;height:140px;border:4px solid #fff;border-radius:50%;overflow:hidden;background:#eee9ff;box-shadow:0 8px 24px rgba(35,24,75,.12)}.avatar-editor-preview img,.avatar-editor-preview span{width:100%;height:100%;display:grid;place-items:center;object-fit:cover;color:#6d4aff;font-size:42px;font-weight:900}.edit-vibe-grid,.edit-availability-grid{display:flex;gap:7px;flex-wrap:wrap}.edit-vibe-grid label,.edit-availability-grid label{cursor:pointer}.edit-vibe-grid input,.edit-availability-grid input{position:absolute;opacity:0;pointer-events:none}.edit-vibe-grid span,.edit-availability-grid span{display:inline-flex;min-height:37px;align-items:center;padding:0 11px;border:1px solid #dfd9e6;border-radius:999px;background:#fff;color:#716879;font-size:8px;font-weight:850}.edit-vibe-grid input:checked+span,.edit-availability-grid input:checked+span{border-color:#6d4aff;background:#eee9ff;color:#6047cf;box-shadow:0 5px 14px rgba(109,74,255,.10)}.sticky-actions{position:sticky;z-index:20;bottom:14px;padding:10px 12px;border:1px solid rgba(224,217,232,.88);border-radius:15px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);box-shadow:0 12px 35px rgba(35,24,75,.11)}.profile-connections-page{max-width:760px}.profile-connections-back{display:inline-block;margin-bottom:20px;color:#6d4aff;text-decoration:none;font-size:9px;font-weight:850}.profile-connections-page h1{margin-top:5px;font-size:38px;letter-spacing:-.05em}.profile-connections-page>p{margin-top:5px;color:#8f8798;font-size:9px}.connections-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.connections-grid>a{display:grid;grid-template-columns:48px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:10px;border:1px solid #e6e0eb;border-radius:14px;background:#fff;color:inherit;text-decoration:none}.connections-grid img,.connections-grid>a>span{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;object-fit:cover;background:#eee9ff;color:#6d4aff;font-size:17px;font-weight:900}.connections-grid strong,.connections-grid small{display:block}.connections-grid strong{font-size:9px}.connections-grid small{margin-top:2px;color:#948c9d;font-size:8px}.connections-grid>a>b{color:#a199a8}.role-address-line{color:#8e8597!important}
@media(max-width:920px){.social-profile-identity{grid-template-columns:120px minmax(0,1fr)}.social-avatar-wrap{width:112px;height:112px}.social-profile-actions{grid-column:1/-1;padding-top:0;justify-content:flex-start}.profile-social-grid{grid-template-columns:1fr}.profile-social-side{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-account-links{grid-column:1/-1}.profile-memory-grid{grid-template-columns:repeat(3,1fr)}.cover-editor{grid-template-columns:1fr}.profile-role-sections{grid-template-columns:1fr}}
@media(max-width:760px){.profile-social-page,.edit-social-profile-page,.profile-connections-page{width:calc(100% - 22px)}.social-profile-cover{height:210px}.cover-fallback-copy{left:18px;bottom:18px}.cover-fallback-copy strong{font-size:18px}.social-profile-identity{display:block;padding:0 16px 16px}.social-avatar-wrap{width:104px;height:104px;margin-top:-48px}.social-profile-maincopy{padding-top:10px}.social-profile-maincopy h1{font-size:30px}.social-profile-actions{margin-top:13px;display:flex;overflow-x:auto;justify-content:flex-start;padding:0 0 3px}.profile-primary-action,.profile-secondary-action{flex:0 0 auto}.profile-invite-menu>div{position:fixed;left:12px;right:12px;top:auto;bottom:90px;width:auto}.profile-thought-shell{grid-template-columns:38px minmax(0,1fr);margin:0 14px 14px}.profile-thought-icon{width:38px;height:38px}.thought-editor{grid-column:1/-1;text-align:right}.thought-editor form{right:0;width:min(340px,calc(100vw - 48px))}.profile-social-stats{grid-template-columns:repeat(5,minmax(0,1fr));overflow-x:auto}.profile-social-stats>a,.profile-social-stats>div{min-width:68px;padding:12px 6px}.profile-social-stats strong{font-size:13px}.profile-social-grid{margin-top:10px}.profile-social-card{padding:15px;border-radius:17px}.profile-social-side{grid-template-columns:1fr}.profile-memory-grid{grid-template-columns:repeat(2,1fr)}.profile-memory-grid>a{min-height:155px}.avatar-editor{grid-template-columns:105px minmax(0,1fr)}.avatar-editor-preview{width:100px;height:100px}.cover-editor-preview{height:180px}.connections-grid{grid-template-columns:1fr}.profile-card-head{align-items:flex-start}.profile-card-head>small{max-width:145px;text-align:right}.sticky-actions{bottom:78px}}




/* ==================================================
   V1.3.1 — PROFILE SCALE POLISH
   Mais presença e legibilidade no desktop sem perder o layout.
================================================== */

@media (min-width: 921px) {
    .profile-social-page {
        width: min(1220px, calc(100% - 40px));
        padding-top: 30px;
    }

    /* Hero */
    .social-profile-hero {
        border-radius: 30px;
        box-shadow: 0 22px 58px rgba(35,24,75,.09);
    }

    .social-profile-cover {
        height: 345px;
        border-radius: 29px 29px 0 0;
    }

    .cover-fallback-copy {
        left: 38px;
        bottom: 32px;
    }

    .cover-fallback-copy span {
        font-size: 11px;
    }

    .cover-fallback-copy strong {
        margin-top: 8px;
        font-size: 31px;
    }

    .cover-edit-fab {
        right: 22px;
        top: 22px;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 0 14px;
        font-size: 10px;
    }

    .social-profile-identity {
        grid-template-columns: 178px minmax(0,1fr) auto;
        gap: 25px;
        padding: 0 34px 28px;
    }

    .social-avatar-wrap {
        width: 166px;
        height: 166px;
        margin-top: -76px;
        border-width: 6px;
        box-shadow: 0 16px 40px rgba(36,24,72,.17);
    }

    .social-avatar-wrap > img,
    .social-avatar-wrap > span {
        font-size: 54px;
    }

    .social-avatar-wrap > a {
        right: 3px;
        bottom: 7px;
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .social-profile-maincopy {
        padding-top: 21px;
    }

    .profile-social-page .section-kicker {
        font-size: 10px;
        letter-spacing: .12em;
    }

    .social-profile-maincopy h1 {
        margin-top: 6px;
        font-size: clamp(39px, 4.2vw, 52px);
        line-height: 1;
    }

    .social-handle {
        margin-top: 7px;
        font-size: 12px;
    }

    .social-profile-maincopy > p {
        max-width: 720px;
        margin-top: 13px;
        font-size: 13px;
        line-height: 1.65;
    }

    .social-profile-actions {
        gap: 9px;
        padding-top: 25px;
    }

    .profile-primary-action,
    .profile-secondary-action {
        min-height: 46px;
        padding: 0 16px;
        border-radius: 13px;
        font-size: 10px;
    }

    /* Pensamento do dia */
    .profile-thought-shell {
        grid-template-columns: 54px minmax(0,1fr) auto;
        gap: 14px;
        margin: 0 34px 26px;
        padding: 16px 18px;
        border-radius: 19px;
    }

    .profile-thought-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 25px;
    }

    .profile-thought-copy strong {
        font-size: 14px;
        line-height: 1.45;
    }

    .profile-thought-copy small {
        margin-top: 4px;
        font-size: 10px;
    }

    .thought-editor > summary {
        font-size: 10px;
    }

    .thought-editor form {
        width: 390px;
        padding: 14px;
    }

    .thought-editor textarea {
        min-height: 90px;
        padding: 12px;
        font-size: 12px;
    }

    .thought-editor button {
        min-height: 35px;
        padding: 0 12px;
        font-size: 9px;
    }

    /* Métricas */
    .profile-social-stats > a,
    .profile-social-stats > div {
        padding: 20px 12px;
    }

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

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

    /* Estrutura geral */
    .profile-social-grid {
        grid-template-columns: minmax(0,1fr) 330px;
        gap: 18px;
        margin-top: 18px;
    }

    .profile-social-main,
    .profile-social-side {
        gap: 18px;
    }

    .profile-social-card {
        padding: 26px;
        border-radius: 23px;
    }

    .profile-social-card.compact {
        padding: 21px;
    }

    .profile-card-head {
        gap: 18px;
        margin-bottom: 18px;
    }

    .profile-card-head h2 {
        margin-top: 6px;
        font-size: 25px;
        line-height: 1.08;
    }

    .profile-card-head.mini h3 {
        font-size: 19px;
    }

    .profile-card-head > a,
    .profile-card-head > small {
        font-size: 9px;
    }

    /* Sobre mim */
    .about-bio {
        font-size: 13px;
        line-height: 1.75;
    }

    .profile-vibe-tags,
    .profile-availability > div {
        gap: 8px;
        margin-top: 16px;
    }

    .profile-vibe-tags span,
    .profile-availability span {
        padding: 9px 12px;
        font-size: 10px;
    }

    .profile-availability {
        margin-top: 20px;
    }

    .profile-availability > strong {
        font-size: 11px;
    }

    .profile-interest-chips-social {
        margin-top: 19px;
    }

    .profile-interest-chips-social a {
        font-size: 10px !important;
        min-height: 34px;
        padding: 0 11px !important;
        display: inline-flex;
        align-items: center;
    }

    /* Minha vibe */
    .profile-vibe-bars {
        gap: 15px;
    }

    .profile-vibe-bars > a {
        grid-template-columns: 45px minmax(0,1fr);
        gap: 13px;
    }

    .vibe-emoji {
        width: 45px;
        height: 45px;
        border-radius: 13px;
        font-size: 21px;
    }

    .profile-vibe-bars strong {
        font-size: 11px;
    }

    .profile-vibe-bars small {
        font-size: 9px;
    }

    .profile-vibe-bars i {
        height: 8px;
        margin-top: 7px;
    }

    /* Agenda */
    .profile-role-sections {
        gap: 23px;
    }

    .profile-role-sections > div > h3 {
        margin-bottom: 11px;
        font-size: 12px;
    }

    .profile-role-list {
        gap: 10px;
    }

    .profile-role-row {
        min-height: 82px;
        padding: 13px 15px;
        border-radius: 16px;
    }

    .profile-role-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 23px;
    }

    .profile-role-copy small {
        font-size: 10px;
    }

    .profile-role-copy strong {
        margin-top: 4px;
        font-size: 15px;
    }

    .profile-role-copy span {
        margin-top: 5px;
        font-size: 11px;
    }

    .profile-role-arrow {
        font-size: 22px;
    }

    .profile-muted-line {
        padding: 16px;
        font-size: 11px;
    }

    /* Memórias */
    .profile-memory-grid {
        gap: 11px;
    }

    .profile-memory-grid > a {
        min-height: 180px;
        border-radius: 17px;
    }

    .profile-memory-grid span {
        top: 11px;
        left: 11px;
        padding: 5px 8px;
        font-size: 8px;
    }

    .profile-memory-grid strong {
        left: 11px;
        right: 11px;
        bottom: 11px;
        font-size: 10px;
    }

    /* Histórico */
    .profile-history-grid {
        gap: 14px;
    }

    .profile-history-card {
        padding: 19px;
        border-radius: 19px;
    }

    .profile-history-card > span {
        font-size: 31px;
    }

    .profile-history-card small {
        font-size: 10px;
    }

    .profile-history-card strong {
        font-size: 15px;
    }

    .profile-history-card p {
        font-size: 11px;
    }

    /* Sidebar */
    .profile-social-side p {
        font-size: 10px;
        line-height: 1.6;
    }

    .profile-reputation-meter {
        gap: 11px;
        margin: 15px 0 11px;
    }

    .profile-reputation-meter i {
        height: 9px;
    }

    .profile-reputation-meter > strong {
        font-size: 12px;
    }

    .profile-rating {
        margin-top: 13px;
        font-size: 12px;
    }

    .profile-rating span {
        font-size: 9px;
    }

    .profile-badge-list {
        gap: 9px;
        margin-top: 13px;
    }

    .profile-badge-list > div {
        grid-template-columns: 43px minmax(0,1fr);
        gap: 10px;
        padding: 10px;
        border-radius: 13px;
    }

    .profile-badge-list > div > span {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 20px;
    }

    .profile-badge-list strong {
        font-size: 10px;
    }

    .profile-badge-list small {
        margin-top: 3px;
        font-size: 8px;
    }

    .profile-people-list {
        gap: 8px;
        margin-top: 13px;
    }

    .profile-people-list > a {
        grid-template-columns: 42px minmax(0,1fr);
        gap: 10px;
        padding: 7px;
    }

    .profile-people-list img,
    .profile-people-list > a > span {
        width: 42px;
        height: 42px;
    }

    .profile-people-list strong {
        font-size: 10px;
    }

    .profile-people-list small {
        font-size: 8px;
    }

    .profile-account-links {
        gap: 7px;
    }

    .profile-account-links a {
        padding: 12px;
        font-size: 10px;
    }
}

/* Tablet: sobe a escala sem estourar a largura */
@media (min-width: 761px) and (max-width: 920px) {
    .social-profile-cover {
        height: 300px;
    }

    .social-profile-maincopy h1 {
        font-size: 38px;
    }

    .social-profile-maincopy > p {
        font-size: 12px;
    }

    .profile-thought-copy strong {
        font-size: 13px;
    }

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

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

    .profile-social-card {
        padding: 22px;
    }

    .profile-card-head h2 {
        font-size: 23px;
    }

    .about-bio {
        font-size: 12px;
    }
}

/* Mobile também ganha legibilidade, mas sem virar uma tela gigante */
@media (max-width: 760px) {
    .social-profile-cover {
        height: 235px;
    }

    .social-avatar-wrap {
        width: 112px;
        height: 112px;
        margin-top: -52px;
    }

    .social-profile-maincopy h1 {
        font-size: 34px;
    }

    .social-handle {
        font-size: 11px;
    }

    .social-profile-maincopy > p {
        font-size: 12px;
        line-height: 1.6;
    }

    .profile-primary-action,
    .profile-secondary-action {
        min-height: 43px;
        padding: 0 14px;
        font-size: 10px;
    }

    .profile-thought-shell {
        padding: 14px;
    }

    .profile-thought-copy strong {
        font-size: 12px;
    }

    .profile-thought-copy small {
        font-size: 9px;
    }

    .profile-social-stats > a,
    .profile-social-stats > div {
        min-width: 76px;
        padding: 15px 8px;
    }

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

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

    .profile-social-card {
        padding: 18px;
    }

    .profile-card-head h2 {
        font-size: 22px;
    }

    .profile-card-head.mini h3 {
        font-size: 17px;
    }

    .about-bio {
        font-size: 12px;
    }

    .profile-vibe-tags span,
    .profile-availability span {
        font-size: 9px;
    }

    .profile-vibe-bars strong {
        font-size: 10px;
    }

    .profile-vibe-bars small {
        font-size: 9px;
    }

    .profile-role-row {
        min-height: 76px;
        padding: 12px;
    }

    .profile-role-copy strong {
        font-size: 14px;
    }

    .profile-role-copy small,
    .profile-role-copy span {
        font-size: 10px;
    }

    .profile-memory-grid > a {
        min-height: 175px;
    }

    .profile-badge-list strong {
        font-size: 10px;
    }

    .profile-badge-list small,
    .profile-social-side p {
        font-size: 9px;
    }

    .profile-account-links a {
        font-size: 10px;
    }
}


/* =========================================================
   v1.4.0 — Web First / Google onboarding
   ========================================================= */
.web-first-login .login-container {
    max-width: 500px;
}

.google-login-button {
    min-height: 60px;
    width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr 20px;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid #dedbe5;
    border-radius: 15px;
    background: #fff;
    color: #1d1a24;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(31, 22, 55, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.google-login-button:hover {
    transform: translateY(-1px);
    border-color: #c8c2d4;
    box-shadow: 0 16px 42px rgba(31, 22, 55, .12);
}

.google-login-button:active {
    transform: translateY(0) scale(.995);
}

.google-login-button b {
    justify-self: end;
    font-size: 18px;
}

.google-g {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e5e2ea;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    font-size: 17px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    flex: 0 0 auto;
}

.google-config-note {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.quick-entry-note {
    margin-top: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ece8f4;
    border-radius: 14px;
    background: #f9f7ff;
}

.quick-entry-note > span {
    font-size: 20px;
}

.quick-entry-note div {
    display: grid;
    gap: 3px;
}

.quick-entry-note strong {
    font-size: 12px;
}

.quick-entry-note small {
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.45;
}

.legacy-login {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.legacy-login summary {
    width: max-content;
    margin: 0 auto;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    user-select: none;
}

.legacy-login[open] summary {
    margin-bottom: 18px;
}

.legacy-login .login-form {
    gap: 16px;
}

.legacy-login .input-box {
    height: 52px;
}

.legacy-login .btn-primary {
    min-height: 52px;
}

.onboarding-page {
    min-height: 100vh;
    padding: clamp(18px, 4vw, 54px);
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 10% 5%, rgba(109, 74, 255, .11), transparent 32%),
        radial-gradient(circle at 95% 90%, rgba(255, 77, 154, .09), transparent 30%),
        #f7f6fa;
}

.onboarding-card {
    width: min(100%, 620px);
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid #e9e5ef;
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 30px 90px rgba(28, 18, 52, .12);
}

.onboarding-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.onboarding-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.onboarding-brand div {
    display: grid;
    gap: 1px;
}

.onboarding-brand strong {
    font-size: 14px;
}

.onboarding-brand small {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
}

.onboarding-progress {
    margin: 25px 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.onboarding-progress span {
    height: 5px;
    border-radius: 999px;
    background: #e9e5ef;
}

.onboarding-progress .done,
.onboarding-progress .active {
    background: var(--primary);
}

.onboarding-header {
    margin-bottom: 26px;
}

.onboarding-header h1 {
    max-width: 500px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.onboarding-header p {
    max-width: 500px;
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.onboarding-errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #ffd3dc;
    border-radius: 12px;
    background: #fff2f5;
    color: #9e2c43;
    font-size: 12px;
    font-weight: 700;
}

.onboarding-errors p + p {
    margin-top: 4px;
}

.onboarding-form {
    display: grid;
    gap: 18px;
}

.onboarding-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.handle-input-shell {
    height: 58px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.handle-input-shell:focus-within {
    border-color: rgba(109, 74, 255, .55);
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .08);
}

.handle-input-shell > span:first-child {
    color: var(--primary);
    font-weight: 900;
}

.handle-input-shell input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-weight: 700;
}

.handle-state {
    width: 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
}

.handle-input-shell[data-state="ok"] {
    border-color: rgba(31, 157, 113, .48);
}

.handle-input-shell[data-state="ok"] .handle-state,
.handle-input-shell[data-state="ok"] + .handle-help {
    color: #16835d;
}

.handle-input-shell[data-state="bad"] {
    border-color: rgba(203, 57, 82, .48);
}

.handle-input-shell[data-state="bad"] .handle-state,
.handle-input-shell[data-state="bad"] + .handle-help {
    color: #b23049;
}

.handle-help {
    display: block;
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.45;
}

.google-account-chip {
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 13px;
    background: #f8f7fa;
}

.google-account-chip .google-g {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.google-account-chip div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.google-account-chip small {
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.google-account-chip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.onboarding-submit {
    min-height: 58px;
    margin-top: 2px;
}

.onboarding-foot {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 760px) {
    .web-first-login .login-header {
        margin-bottom: 26px;
    }

    .web-first-login .login-header h2 {
        font-size: 36px;
    }

    .google-login-button {
        min-height: 58px;
    }

    .onboarding-page {
        align-items: start;
        padding: 0;
        background: #fff;
    }

    .onboarding-card {
        min-height: 100vh;
        width: 100%;
        padding: 24px 20px 34px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .onboarding-header h1 {
        font-size: 34px;
    }

    .onboarding-input,
    .handle-input-shell {
        height: 56px;
    }
}


/* v1.4.2 — permissões administrativas por conta */
.admin-role-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(109, 74, 255, .12);
    border: 1px solid rgba(109, 74, 255, .2);
    font-size: 8px;
    line-height: 1;
    letter-spacing: .08em;
    vertical-align: middle;
}
.admin-user-actions button:disabled {
    opacity: .55;
    cursor: not-allowed;
}


/* v1.4.2.1 — admin visível */
@media (min-width: 761px) {
    .admin-mini-link.admin-mini-link-labeled {
        width: auto;
        min-width: 84px;
        padding: 0 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-size: 14px;
        font-weight: 800;
    }
    .admin-mini-link.admin-mini-link-labeled strong {
        font-size: 11px;
        line-height: 1;
    }
}


/* ==================================================
   V1.4.3 — BOAS-VINDAS DA LARI
================================================== */
.lari-welcome-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(20, 15, 35, .62);
    backdrop-filter: blur(12px);
    animation: lariBackdropIn .28s ease both;
}
.lari-welcome-backdrop.is-leaving {
    opacity: 0;
    transition: opacity .22s ease;
}
.lari-welcome-modal {
    position: relative;
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: hidden auto;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 34px;
    background:
        radial-gradient(circle at 0% 0%, rgba(122,82,255,.16), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(255,106,174,.13), transparent 30%),
        rgba(255,255,255,.98);
    box-shadow: 0 38px 110px rgba(25,17,55,.34);
    animation: lariModalIn .46s cubic-bezier(.2,.85,.25,1.08) both;
}
.lari-welcome-aurora {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(10px);
    opacity: .65;
}
.lari-welcome-aurora-one {
    width: 180px; height: 180px;
    left: -80px; top: 80px;
    background: rgba(112,76,255,.13);
}
.lari-welcome-aurora-two {
    width: 210px; height: 210px;
    right: -90px; bottom: 60px;
    background: rgba(255,99,160,.11);
}
.lari-welcome-close {
    position: absolute;
    z-index: 5;
    top: 19px; right: 19px;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(40,30,70,.08);
    border-radius: 50%;
    background: rgba(255,255,255,.76);
    color: #6b6277;
    font-size: 24px;
    cursor: pointer;
}
.lari-welcome-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 24px 28px 0;
}
.lari-welcome-brand > span {
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 9px 26px rgba(85,58,180,.13);
}
.lari-welcome-brand img { width: 100%; height: 100%; object-fit: cover; }
.lari-welcome-brand div { display: grid; gap: 2px; }
.lari-welcome-brand strong { font-size: 14px; }
.lari-welcome-brand small { color: #8d829b; font-size: 10px; font-weight: 700; }

.lari-welcome-slides {
    position: relative;
    min-height: 430px;
    padding: 28px 54px 18px;
}
.lari-welcome-slide {
    display: none;
    position: relative;
    z-index: 2;
    animation: lariSlideIn .32s ease both;
}
.lari-welcome-slide.is-active { display: block; }
.lari-welcome-hero-icon {
    width: 78px; height: 78px;
    display: grid;
    place-items: center;
    margin: 10px 0 22px;
    border: 1px solid rgba(109,74,255,.1);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(109,74,255,.09), rgba(255,99,160,.08));
    box-shadow: 0 18px 42px rgba(50,30,105,.08);
    font-size: 38px;
}
.lari-welcome-kicker {
    display: block;
    margin-bottom: 10px;
    color: #7658ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}
.lari-welcome-slide h2 {
    max-width: 620px;
    margin: 0;
    color: #1f1929;
    font-family: "Sora", sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -.045em;
}
.lari-welcome-slide > p {
    max-width: 610px;
    margin: 16px 0 0;
    color: #71687c;
    font-size: 14px;
    line-height: 1.72;
}
.lari-note-card {
    position: relative;
    margin-top: 28px;
    padding: 22px 24px 18px 58px;
    border: 1px solid rgba(109,74,255,.12);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(109,74,255,.055), rgba(255,99,160,.04));
}
.lari-note-card > span {
    position: absolute;
    left: 20px; top: 11px;
    color: #7658ff;
    font-family: Georgia, serif;
    font-size: 56px;
    line-height: 1;
}
.lari-note-card p { margin: 0; color: #4d4558; font-size: 13px; line-height: 1.65; }
.lari-note-card b { display: block; margin-top: 9px; color: #7658ff; font-size: 10px; }

.lari-tour-number {
    width: 54px; height: 54px;
    display: grid;
    place-items: center;
    margin: 10px 0 24px;
    border-radius: 18px;
    background: #1f1929;
    color: #fff;
    font-family: "Sora", sans-serif;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(31,25,41,.15);
}
.lari-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}
.lari-feature-pills span {
    padding: 10px 13px;
    border: 1px solid rgba(109,74,255,.11);
    border-radius: 999px;
    background: #fff;
    color: #554b62;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 7px 22px rgba(30,20,68,.05);
}
.lari-mini-role {
    margin-top: 28px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(109,74,255,.1);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(30,20,68,.06);
}
.lari-mini-role div {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 11px;
    align-items: center;
}
.lari-mini-role div > span { grid-row: 1 / 3; font-size: 28px; }
.lari-mini-role strong { font-size: 12px; }
.lari-mini-role small { color: #92899d; font-size: 9px; }
.lari-mini-role > b {
    padding: 10px 14px;
    border-radius: 12px;
    background: #7658ff;
    color: #fff;
    font-size: 10px;
}
.lari-map-preview {
    position: relative;
    height: 150px;
    margin-top: 27px;
    overflow: hidden;
    border: 1px solid rgba(100,87,125,.08);
    border-radius: 22px;
    background:
        linear-gradient(30deg, transparent 48%, rgba(120,112,140,.08) 49%, rgba(120,112,140,.08) 51%, transparent 52%) 0 0/54px 54px,
        linear-gradient(-30deg, transparent 48%, rgba(120,112,140,.06) 49%, rgba(120,112,140,.06) 51%, transparent 52%) 0 0/62px 62px,
        #f6f7f4;
}
.lari-map-road {
    position: absolute;
    display: block;
    width: 115%;
    height: 13px;
    left: -8%;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(80,75,90,.07);
}
.lari-map-road.road-a { top: 62px; transform: rotate(-8deg); }
.lari-map-road.road-b { top: 82px; transform: rotate(19deg); }
.lari-map-preview .pin { position: absolute; font-size: 25px; filter: drop-shadow(0 6px 8px rgba(31,25,41,.18)); }
.lari-map-preview .pin-a { left: 28%; top: 36%; }
.lari-map-preview .pin-b { right: 25%; bottom: 24%; }
.lari-map-preview > b {
    position: absolute;
    right: 14px; top: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.93);
    color: #564c61;
    font-size: 9px;
    box-shadow: 0 7px 18px rgba(40,30,70,.07);
}
.lari-memory-stack {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-top: 28px;
}
.lari-memory-stack div {
    width: 128px;
    height: 142px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 22px;
    background: linear-gradient(145deg, #f1edff, #fff);
    box-shadow: 0 16px 36px rgba(35,25,70,.08);
    font-size: 42px;
}
.lari-memory-stack div:nth-child(2) { height: 165px; transform: translateY(-7px); background: linear-gradient(145deg, #fff1f6, #fff); }
.lari-memory-stack div:nth-child(3) { height: 132px; }
.lari-memory-stack small {
    position: absolute;
    left: 13px; bottom: 12px;
    color: #776e82;
    font-size: 9px;
    font-weight: 800;
}
.lari-admin-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 28px;
}
.lari-admin-preview span {
    min-height: 100px;
    padding: 15px 12px;
    display: grid;
    align-content: center;
    gap: 9px;
    border: 1px solid rgba(109,74,255,.09);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(30,20,68,.05);
}
.lari-admin-preview b { font-size: 24px; }
.lari-admin-preview strong { color: #554c60; font-size: 9px; }
.lari-final-message {
    margin-top: 28px;
    padding: 23px 25px;
    display: grid;
    gap: 5px;
    border-radius: 22px;
    background: linear-gradient(135deg, #6d4aff, #a15dff 60%, #f06ba5);
    color: #fff;
    box-shadow: 0 20px 48px rgba(109,74,255,.2);
}
.lari-final-message strong { font-family: "Sora", sans-serif; font-size: 17px; }
.lari-final-message small { color: rgba(255,255,255,.78); font-size: 10px; }

.lari-welcome-footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 17px 28px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(70,55,95,.07);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
}
.lari-welcome-progress { display: flex; gap: 6px; }
.lari-welcome-progress button {
    width: 7px; height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ded8e8;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}
.lari-welcome-progress button.is-active { width: 24px; background: #7658ff; }
.lari-welcome-actions { display: flex; align-items: center; gap: 8px; }
.lari-welcome-actions button {
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 13px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.lari-tour-skip, .lari-tour-back { background: transparent; color: #8a8095; }
.lari-tour-next {
    min-width: 122px;
    background: #7658ff;
    color: #fff;
    box-shadow: 0 10px 24px rgba(118,88,255,.18);
}

@keyframes lariBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lariModalIn { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes lariSlideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 760px) {
    .lari-welcome-backdrop {
        padding: 0;
        align-items: end;
        backdrop-filter: blur(7px);
    }
    .lari-welcome-modal {
        width: 100%;
        max-height: 94vh;
        border-radius: 28px 28px 0 0;
    }
    .lari-welcome-brand { padding: 19px 20px 0; }
    .lari-welcome-brand > span { width: 42px; height: 42px; border-radius: 14px; }
    .lari-welcome-close { top: 16px; right: 16px; }
    .lari-welcome-slides {
        min-height: 430px;
        padding: 24px 22px 12px;
    }
    .lari-welcome-slide h2 { font-size: 31px; }
    .lari-welcome-slide > p { font-size: 13px; }
    .lari-note-card { padding-left: 49px; }
    .lari-memory-stack div { width: 31%; }
    .lari-admin-preview { grid-template-columns: repeat(2, 1fr); }
    .lari-admin-preview span { min-height: 86px; }
    .lari-welcome-footer {
        padding: 14px 18px max(18px, env(safe-area-inset-bottom));
        align-items: flex-end;
    }
    .lari-welcome-actions { gap: 4px; }
    .lari-tour-skip { display: none; }
    .lari-welcome-actions button { padding: 0 11px; }
    .lari-tour-next { min-width: 116px; }
}


/* ==================================================
   V1.4.4 — MOBILE POLISH + PERFORMANCE
   Navegação mais legível e modo leve em telas pequenas.
================================================== */
@media (max-width: 760px) {
    html {
        scroll-behavior: auto !important;
    }

    /* Header e barra inferior sem blur pesado no mobile. */
    .app-header {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(58, 46, 78, .08) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: 0 3px 14px rgba(33, 24, 55, .055) !important;
        animation: none !important;
    }

    .mobile-nav {
        height: calc(76px + env(safe-area-inset-bottom)) !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        align-items: start !important;
        padding: 7px 6px env(safe-area-inset-bottom) !important;
        border: 0 !important;
        border-top: 1px solid #ebe7f1 !important;
        background: #ffffff !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: 0 -5px 20px rgba(34, 25, 58, .09) !important;
        contain: layout paint;
    }

    .mobile-nav a,
    .mobile-nav button {
        min-width: 0;
        height: 56px !important;
        gap: 2px !important;
        color: #5d5767 !important;
        opacity: 1 !important;
        font-size: 19px !important;
        font-weight: 800 !important;
        transition: color 120ms ease, transform 120ms ease, background-color 120ms ease !important;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav a:not(.mobile-create) > span {
        width: 34px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        background: transparent;
        color: #5d5767;
        font-size: 21px;
        line-height: 1;
        transition: color 120ms ease, background-color 120ms ease !important;
    }

    .mobile-nav small {
        color: #6f6879 !important;
        font-size: 8.5px !important;
        font-weight: 800 !important;
        line-height: 1.05;
        opacity: 1 !important;
        white-space: nowrap;
    }

    .mobile-nav a.active:not(.mobile-create) {
        color: #6547e8 !important;
    }

    .mobile-nav a.active:not(.mobile-create) > span {
        background: #f0ebff !important;
        color: #6547e8 !important;
        animation: none !important;
    }

    .mobile-nav a.active:not(.mobile-create) small {
        color: #6547e8 !important;
        font-weight: 900 !important;
    }

    .mobile-nav a:not(.mobile-create)::after {
        bottom: 0 !important;
        width: 16px !important;
        height: 3px !important;
        background: #6547e8 !important;
        transition: none !important;
    }

    .mobile-nav .mobile-create,
    .mobile-nav .mobile-create.active {
        width: 50px !important;
        height: 50px !important;
        min-height: 50px !important;
        justify-self: center;
        margin-top: -17px !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #6d4aff, #8b5cff) !important;
        color: #fff !important;
        box-shadow: 0 9px 20px rgba(109, 74, 255, .24) !important;
        transform: none !important;
        animation: none !important;
    }

    .mobile-nav .mobile-create > span {
        width: auto !important;
        height: auto !important;
        display: block !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 29px !important;
        line-height: 1 !important;
    }

    /* Elimina blurs que provocam repintura durante o scroll. */
    .mobile-nav,
    .app-header,
    .hero-badge,
    .category-chip,
    .chip,
    .feed-filters,
    .advanced-filters,
    .search-field,
    .filter-select,
    .filter-date,
    .role-card,
    .standard-role,
    .profile-cover-card,
    .profile-section,
    .profile-side-card,
    .edit-profile-card,
    .form-page,
    .mini-calendar,
    .agenda-item,
    .notification-card,
    .notifications-panel,
    .carona-panel,
    .detail-panel,
    .role-detail-panel,
    input:not([type="color"]),
    textarea,
    select,
    .input-box {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* Sombras menores = menos custo de pintura. */
    .themed-hero {
        box-shadow: 0 12px 30px rgba(28, 18, 64, .12) !important;
        background-position: center !important;
        transition: none !important;
        will-change: auto !important;
    }

    .role-card,
    .standard-role,
    .profile-section,
    .profile-side-card,
    .agenda-item,
    .notification-card,
    .mural-role-card,
    .mural-post {
        box-shadow: 0 7px 20px rgba(35, 24, 75, .06) !important;
        transition: none !important;
        will-change: auto !important;
    }

    .hero-decoration {
        display: none !important;
    }

    /* No celular o conteúdo já nasce pronto; sem reveals/counters animados. */
    .motion-reveal,
    .motion-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        transition-delay: 0ms !important;
        will-change: auto !important;
    }

    .motion-progress,
    .motion-route-bar {
        animation: none !important;
        transition: none !important;
    }

    .category-chip,
    .discovery-chip,
    .origin-chip,
    .recurring-chip,
    .hero-badge,
    button,
    .btn-primary,
    .bora-button,
    .role-btn,
    .profile-edit-button {
        transition-duration: 120ms !important;
    }
}


/* ==================================================
   V1.4.4.1 — NAV MOBILE + SPEED FIX
   5 abas realmente centralizadas + Criar como FAB separado.
================================================== */
@media (max-width: 760px) {
    .mobile-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        overflow: visible !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .mobile-nav .mobile-create,
    .mobile-nav .mobile-create.active {
        position: absolute !important;
        right: 18px !important;
        top: -62px !important;
        left: auto !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        margin: 0 !important;
        display: grid !important;
        place-items: center !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #6d4aff, #8b5cff) !important;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(109,74,255,.28) !important;
        z-index: 4 !important;
        transform: none !important;
        animation: none !important;
    }

    .mobile-nav .mobile-create > span {
        width: auto !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 31px !important;
        font-weight: 400 !important;
        line-height: .9 !important;
        transform: translateY(-1px);
    }

    .mobile-nav a:not(.mobile-create) {
        width: 100%;
        min-width: 0;
    }

    .mobile-nav small {
        font-size: 9px !important;
        letter-spacing: -.01em;
    }

    /* Nada de animação global de navegação no celular. */
    .mobile-nav a,
    .mobile-nav button {
        transition: color 90ms ease, background-color 90ms ease !important;
    }

    .mobile-nav a:active,
    .mobile-nav button:active {
        transform: none !important;
    }
}


/* ==================================================
   V1.4.4.2 — MOBILE ACTIONS FIX
   Corrige FAB recortado e adiciona acesso Admin sem
   desalinhar as cinco abas principais.
================================================== */
@media (max-width: 760px) {
    /* contain: paint cortava qualquer FAB que saísse da barra. */
    .mobile-nav {
        contain: layout !important;
        overflow: visible !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    /* Os dois atalhos flutuantes não participam da grade. */
    .mobile-nav .mobile-create,
    .mobile-nav .mobile-admin-shortcut {
        position: absolute !important;
        top: -66px !important;
        margin: 0 !important;
        z-index: 110 !important;
    }

    .mobile-nav .mobile-create,
    .mobile-nav .mobile-create.active {
        right: 18px !important;
        left: auto !important;
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        display: grid !important;
        place-items: center !important;
        border-radius: 18px !important;
        background: linear-gradient(135deg, #6d4aff, #8b5cff) !important;
        color: #fff !important;
        box-shadow: 0 12px 25px rgba(109,74,255,.30) !important;
    }

    .mobile-nav .mobile-create > span {
        font-size: 32px !important;
        line-height: 1 !important;
        transform: translateY(-1px) !important;
    }

    .mobile-nav .mobile-admin-shortcut {
        left: 18px !important;
        right: auto !important;
        width: auto !important;
        min-width: 78px !important;
        height: 46px !important;
        padding: 0 13px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        border: 1px solid #e5defd !important;
        border-radius: 15px !important;
        background: #ffffff !important;
        color: #5f46d8 !important;
        box-shadow: 0 9px 22px rgba(45,31,89,.13) !important;
        text-decoration: none !important;
    }

    .mobile-nav .mobile-admin-shortcut > span {
        width: auto !important;
        height: auto !important;
        display: block !important;
        background: transparent !important;
        color: #6547e8 !important;
        font-size: 17px !important;
        line-height: 1 !important;
    }

    .mobile-nav .mobile-admin-shortcut small {
        display: block !important;
        color: #544a68 !important;
        font-size: 9px !important;
        font-weight: 900 !important;
    }

    .mobile-nav .mobile-admin-shortcut::after {
        display: none !important;
    }

    /* Garante que apenas as 5 abas normais ocupem a grade. */
    .mobile-nav > a:not(.mobile-create):not(.mobile-admin-shortcut) {
        position: relative;
        width: 100%;
        min-width: 0;
    }
}
