:root {
    --bg: #f7f5fa;
    --surface: #ffffff;
    --surface-soft: #fbf9fd;
    --surface-strong: #f0eaf5;
    --text: #272331;
    --text-soft: #4e4858;
    --muted: #7b7486;
    --primary: #5b2e73;
    --primary-dark: #432056;
    --primary-2: #8c73d6;
    --accent: #f26d85;
    --accent-soft: #fff0f3;
    --line: #e7e1eb;
    --success: #2f7b5c;
    --warning: #a16c1a;
    --danger: #a63a53;
    --shadow-sm: 0 10px 28px rgba(69, 39, 84, .08);
    --shadow: 0 24px 70px rgba(69, 39, 84, .13);
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 32px;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #fbf9fd 0%, #f7f5fa 42%, #f8f6fa 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.58;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background-image:
        radial-gradient(circle at 16% 16%, rgba(242,109,133,.08), transparent 23rem),
        radial-gradient(circle at 88% 8%, rgba(140,115,214,.11), transparent 28rem);
}

.ambient {
    position: fixed;
    z-index: -2;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
}
.ambient-one {
    width: 300px;
    height: 300px;
    right: -130px;
    top: 190px;
    background: rgba(140,115,214,.12);
}
.ambient-two {
    width: 260px;
    height: 260px;
    left: -110px;
    bottom: 40px;
    background: rgba(242,109,133,.08);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }

.container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(231,225,235,.72);
    background: rgba(251,249,253,.83);
    backdrop-filter: blur(20px) saturate(150%);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    margin-right: auto;
}
.brand-logo-full {
    width: 230px;
    height: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav > a:not(.button):not(.profile-chip) {
    position: relative;
    padding: 10px 11px;
    color: var(--text-soft);
    border-radius: 11px;
    font-weight: 720;
    font-size: .9rem;
    transition: background .18s ease, color .18s ease;
}
.nav > a:not(.button):not(.profile-chip):hover,
.nav > a.active:not(.button):not(.profile-chip) {
    color: var(--primary);
    background: rgba(91,46,115,.07);
}
.nav .admin-link {
    color: var(--accent) !important;
}
.nav-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(242,109,133,.12);
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: var(--text);
    box-shadow: 0 8px 22px rgba(60,35,78,.05);
}
.profile-avatar {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: .78rem;
    font-weight: 850;
}
.profile-name {
    max-width: 110px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .84rem;
    font-weight: 750;
}
.logout-link {
    color: var(--muted) !important;
}

.language-switch {
    display: flex;
    gap: 4px;
    margin-left: 2px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
}
.language-switch a { color: var(--muted); }
.language-switch a.active { color: var(--primary); }

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: var(--text);
}

.main-content {
    flex: 1;
    padding: 64px 0 92px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .145em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--primary-2));
}

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 64px;
    padding: 38px 0 70px;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 18px 0 22px;
    font-size: clamp(3.45rem, 7vw, 6.8rem);
    line-height: .94;
    letter-spacing: -.064em;
}
.hero-copy > p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 1.13rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.button {
    appearance: none;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #764490);
    color: #fff;
    font: inherit;
    font-weight: 790;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(91,46,115,.21);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 17px 38px rgba(91,46,115,.24);
}
.button-secondary {
    color: var(--primary);
    background: rgba(255,255,255,.82);
    border: 1px solid var(--line);
    box-shadow: none;
}
.button-small {
    min-height: 39px;
    padding: 0 15px;
    border-radius: 11px;
    font-size: .84rem;
}
.button-full { width: 100%; }

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 34px;
}
.trust-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.trust-mini span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eaf6ef;
    color: var(--success);
    font-size: .72rem;
    font-weight: 850;
}
.trust-mini small { font-size: .78rem; }

.hero-visual {
    position: relative;
    min-height: 540px;
}
.visual-card {
    position: absolute;
    border: 1px solid rgba(231,225,235,.88);
    background: rgba(255,255,255,.91);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.visual-card-main {
    top: 42px;
    left: 50%;
    width: min(390px, 82%);
    padding: 18px;
    border-radius: 28px;
    transform: translateX(-50%) rotate(1.5deg);
}
.visual-card-top {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}
.visual-card-top strong,
.visual-card-top small {
    display: block;
}
.visual-card-top strong { font-size: .98rem; }
.visual-card-top small { color: var(--muted); font-size: .74rem; }
.visual-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 850;
}
.visual-shield {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border-radius: 999px;
    background: #eaf6ef;
    color: var(--success);
    font-weight: 850;
}
.visual-image {
    height: 330px;
    border-radius: 21px;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(91,46,115,.08), rgba(242,109,133,.18)),
        radial-gradient(circle at 35% 25%, #f7d6df 0 8%, transparent 9%),
        linear-gradient(135deg, #d9c5e3 0 38%, #f4d9df 38% 64%, #cab8d8 64%);
    position: relative;
}
.visual-image::before {
    content: "";
    position: absolute;
    inset: 15% 20% 0;
    border-radius: 999px 999px 24px 24px;
    background:
        radial-gradient(circle at 50% 24%, #f6d7c9 0 13%, transparent 14%),
        radial-gradient(circle at 50% 26%, #5a3d4e 0 18%, transparent 19%),
        linear-gradient(180deg, #8a5578 0 35%, #5b2e73 35% 100%);
    opacity: .84;
}
.visual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.visual-tags span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f3edf7;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 760;
}
.visual-card-small {
    width: 230px;
    padding: 18px;
    border-radius: 20px;
}
.visual-card-small strong,
.visual-card-small small {
    display: block;
}
.visual-card-small strong {
    margin: 9px 0 4px;
    font-size: .9rem;
}
.visual-card-small small {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.45;
}
.visual-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(91,46,115,.08);
    color: var(--primary);
}
.visual-card-left {
    left: -6px;
    bottom: 72px;
    transform: rotate(-4deg);
}
.visual-card-right {
    right: -2px;
    top: 118px;
    transform: rotate(4deg);
}

.section-block {
    padding: 70px 0 12px;
}
.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}
.section-heading.compact { margin-bottom: 22px; }
.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature {
    position: relative;
    min-height: 280px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.8);
    box-shadow: var(--shadow-sm);
}
.feature::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -42px;
    bottom: -48px;
    border-radius: 999px;
    background: rgba(140,115,214,.08);
}
.feature-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #f3edf7, #fff0f3);
    color: var(--primary);
    font-weight: 850;
}
.feature h3 {
    margin: 28px 0 8px;
    font-size: 1.26rem;
}
.feature p {
    margin: 0;
    color: var(--muted);
}

.auth-shell {
    min-height: 650px;
    display: grid;
    place-items: center;
}
.panel {
    width: min(640px, 100%);
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid rgba(231,225,235,.9);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.panel-small { width: min(500px, 100%); }
.panel h1 {
    margin: 12px 0 8px;
    font-size: clamp(2.15rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.045em;
}
.muted { color: var(--muted); }

form {
    display: grid;
    gap: 17px;
    margin-top: 28px;
}
label {
    display: grid;
    gap: 7px;
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 720;
}
input, select {
    width: 100%;
    min-height: 51px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: rgba(255,255,255,.94);
    color: var(--text);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:hover, select:hover { background: #fff; }
input:focus, select:focus {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 4px rgba(140,115,214,.12);
}
input:disabled {
    background: #f2eff4;
    color: var(--muted);
}
label small {
    color: var(--muted);
    font-weight: 500;
}
.check-row {
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    font-weight: 560;
}
.check-row input {
    min-height: 0;
    margin-top: 4px;
}
.honeypot {
    position: absolute;
    left: -9999px;
}
.auth-footer {
    margin: 25px 0 0;
    text-align: center;
    color: var(--muted);
}

.alert {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}
.alert-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    border-radius: 999px;
    font-weight: 850;
}
.alert ul {
    margin: 0;
    padding-left: 20px;
}
.alert-success {
    color: var(--success);
    background: rgba(237,248,242,.94);
    border-color: #c8e5d5;
}
.alert-success .alert-icon {
    color: #fff;
    background: var(--success);
}
.alert-error {
    color: var(--danger);
    background: rgba(255,240,243,.94);
    border-color: #f2c9d2;
}
.alert-error .alert-icon {
    color: #fff;
    background: var(--danger);
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
    padding: 20px 0 6px;
}
.dashboard-welcome h1 {
    margin: 14px 0 10px;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: .95;
    letter-spacing: -.06em;
}
.dashboard-welcome p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
}
.dashboard-status-card {
    min-width: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-sm);
}
.dashboard-status-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}
.status {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 820;
}
.status-pending { color: var(--warning); background: #fff5df; }
.status-active { color: var(--success); background: #e9f7ef; }
.status-blocked { color: var(--danger); background: #fff0f3; }

.notice-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 23px 25px;
    border: 1px solid #f0d7dd;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff9fa, #fff);
    box-shadow: var(--shadow-sm);
}
.notice-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border-radius: 15px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.1rem;
}
.notice-card h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}
.notice-card p {
    margin: 0;
    color: var(--muted);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.dashboard-card,
.profile-summary-card,
.user-card {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm);
}
.dashboard-card {
    min-height: 250px;
    padding: 25px;
    border-radius: var(--radius);
    transition: transform .18s ease, box-shadow .18s ease;
}
.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.dashboard-card-primary {
    background:
        linear-gradient(150deg, rgba(255,255,255,.96), rgba(245,239,249,.96));
}
.admin-card {
    background:
        linear-gradient(150deg, rgba(255,255,255,.96), rgba(255,241,244,.94));
}
.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(91,46,115,.08);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 850;
}
.card-badge {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1eaf6;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 800;
}
.card-badge.neutral {
    color: var(--muted);
    background: #f2f0f4;
}
.card-badge.accent {
    color: var(--accent);
    background: var(--accent-soft);
}
.dashboard-card h2 {
    margin: 28px 0 8px;
    font-size: 1.28rem;
}
.dashboard-card p {
    color: var(--muted);
}
.dashboard-card a {
    display: inline-flex;
    gap: 8px;
    margin-top: 12px;
    font-weight: 820;
}
.dashboard-card a span {
    transition: transform .18s ease;
}
.dashboard-card a:hover span {
    transform: translateX(4px);
}
.role-value {
    margin: 2px 0 4px;
    color: var(--primary) !important;
    font-size: 1.05rem;
    font-weight: 850;
}

.profile-summary-card {
    position: sticky;
    top: 108px;
    padding: 28px;
    border-radius: var(--radius);
}
.profile-summary-avatar {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.75rem;
    font-weight: 850;
    box-shadow: 0 14px 34px rgba(91,46,115,.2);
}
.profile-summary-card h2 {
    margin: 0 0 2px;
    font-size: 1.45rem;
}
.profile-summary-card > p {
    margin: 0 0 22px;
    overflow: hidden;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: .84rem;
}
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; }
.profile-summary-card .button {
    margin-top: 18px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.page-heading h1 {
    margin: 10px 0 0;
    font-size: clamp(2.35rem, 5vw, 4.3rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.account-panel {
    width: min(760px, 100%);
}
.readonly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.readonly-grid > div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}
.readonly-grid small,
.readonly-grid strong {
    display: block;
}
.readonly-grid small { color: var(--muted); }

.search-bar {
    grid-template-columns: 1fr auto;
    margin: 0 0 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.78);
    box-shadow: var(--shadow-sm);
}
.user-list {
    display: grid;
    gap: 14px;
}
.user-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 20px;
    border-radius: 18px;
}
.user-main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-main h2 {
    margin: 0;
    font-size: 1.06rem;
}
.user-main p {
    margin: 2px 0;
    color: var(--muted);
}
.user-main small {
    color: var(--muted);
}
.avatar {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eee5f4, #ffe8ee);
    color: var(--primary);
    font-weight: 850;
}
.user-controls {
    grid-template-columns: 150px 160px auto;
    gap: 10px;
    align-items: end;
    margin: 0;
}
.user-controls label { font-size: .75rem; }
.user-controls select { min-height: 40px; }

.empty-state {
    padding: 50px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.55);
}

.error-page {
    min-height: 520px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}
.error-page strong {
    color: var(--primary-2);
    font-size: 6rem;
    line-height: 1;
}
.error-page h1 {
    margin: 10px 0 24px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.42);
}
.footer-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: .82rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand img {
    width: 170px;
    height: auto;
    display: block;
}

@media (max-width: 1040px) {
    .profile-name { display: none; }
    .profile-chip { padding-right: 5px; }
    .hero { grid-template-columns: 1fr; }
    .hero-visual { min-height: 500px; width: min(620px, 100%); margin: 0 auto; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature:last-child { grid-column: 1 / -1; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .profile-summary-card { position: static; }
}

@media (max-width: 840px) {
    .header-inner { flex-wrap: wrap; padding: 13px 0; }
    .brand-logo-full { width: 190px; }
    .mobile-menu-button { display: block; }
    .nav {
        display: none;
        width: 100%;
        flex-wrap: wrap;
        align-items: stretch;
        padding: 12px 0 4px;
    }
    .nav.is-open { display: flex; }
    .nav > a:not(.button):not(.profile-chip),
    .nav .button,
    .profile-chip {
        justify-content: flex-start;
        width: 100%;
    }
    .language-switch {
        width: 100%;
        padding: 10px 11px;
    }
    .profile-name { display: inline; }
    .logout-link { border-top: 1px solid var(--line); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .user-card { grid-template-columns: 1fr; }
    .user-controls { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 24px, 1220px); }
    .main-content { padding-top: 34px; }
    .brand-logo-full { width: 150px; }
    .hero {
        gap: 28px;
        padding-top: 10px;
    }
    .hero-copy h1 { font-size: 3.65rem; }
    .hero-visual { min-height: 460px; }
    .visual-card-main { width: 88%; }
    .visual-card-left { left: 0; bottom: 18px; }
    .visual-card-right { right: 0; top: 95px; }
    .visual-card-small { width: 190px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature:last-child { grid-column: auto; }
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-status-card { width: 100%; }
    .dashboard-welcome h1 { font-size: 3.35rem; }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .search-bar { grid-template-columns: 1fr; }
    .user-controls { grid-template-columns: 1fr; }
    .readonly-grid { grid-template-columns: 1fr; }
    .footer-inner {
        min-height: 120px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
}
/* =========================================================
   Lebigi v0.1.5 — registration and login
   ========================================================= */

.auth-page {
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(231,225,235,.92);
    border-radius: 34px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 30px 90px rgba(69,39,84,.13);
    backdrop-filter: blur(20px);
}

.auth-presentation {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(38px, 6vw, 72px);
    background:
        radial-gradient(circle at 80% 18%, rgba(242,109,133,.22), transparent 17rem),
        radial-gradient(circle at 15% 92%, rgba(140,115,214,.26), transparent 20rem),
        linear-gradient(145deg, #4a245e 0%, #5b2e73 52%, #71418a 100%);
    color: #fff;
}

.auth-presentation::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -140px;
    bottom: -150px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(255,255,255,.035),
        0 0 0 86px rgba(255,255,255,.02);
}

.auth-presentation::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    left: -100px;
    top: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}

.auth-presentation > * {
    position: relative;
    z-index: 1;
}

.auth-presentation .eyebrow {
    color: rgba(255,255,255,.74);
}

.auth-presentation .eyebrow::before {
    background: linear-gradient(90deg, var(--accent), rgba(255,255,255,.65));
}

.auth-presentation h1 {
    max-width: 580px;
    margin: 22px 0 18px;
    font-size: clamp(2.9rem, 5.2vw, 5.15rem);
    line-height: .95;
    letter-spacing: -.058em;
}

.auth-presentation > p {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 1.03rem;
}

.auth-benefits {
    display: grid;
    gap: 15px;
    margin-top: 40px;
}

.auth-benefit {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: start;
    gap: 13px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.auth-benefit-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
}

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

.auth-benefit strong {
    margin-bottom: 2px;
    font-size: .92rem;
}

.auth-benefit small {
    color: rgba(255,255,255,.64);
    font-size: .78rem;
    line-height: 1.45;
}

.auth-presentation-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 34px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(255,255,255,.075);
}

.auth-presentation-note > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 14px;
    background: rgba(242,109,133,.21);
    color: #fff;
    font-weight: 900;
}

.auth-presentation-note p {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: .78rem;
}

.auth-form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 66px);
    background:
        radial-gradient(circle at 100% 0%, rgba(140,115,214,.08), transparent 20rem),
        rgba(255,255,255,.91);
}

.auth-form-header {
    max-width: 620px;
    margin-bottom: 30px;
}

.auth-step {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2ebf6;
    color: var(--primary);
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-form-header h2 {
    margin: 15px 0 8px;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.auth-form-header p {
    margin: 0;
    color: var(--muted);
}

.auth-form {
    gap: 24px;
    margin-top: 0;
}

.form-section {
    display: grid;
    gap: 17px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.75);
    box-shadow: 0 12px 34px rgba(69,39,84,.045);
}

.form-section-confirmation {
    background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,245,248,.78));
}

.form-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1px;
}

.form-section-heading > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 11px;
    background: rgba(91,46,115,.08);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 900;
}

.form-section-heading strong,
.form-section-heading small {
    display: block;
}

.form-section-heading strong {
    color: var(--text);
    font-size: .92rem;
}

.form-section-heading small {
    margin-top: 1px;
    color: var(--muted);
    font-size: .74rem;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px;
}

.field > span {
    color: var(--text-soft);
}

.field input {
    min-height: 54px;
    background: #fff;
}

.field input::placeholder {
    color: #aaa3b2;
}

.check-card {
    position: relative;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,.84);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.check-card:hover {
    border-color: #d7c8e0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(69,39,84,.06);
}

.check-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1.5px solid #c9c0ce;
    border-radius: 7px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease;
}

.check-card input:checked + .custom-check {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.check-card input:checked + .custom-check::after {
    content: "✓";
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
}

.check-card input:focus-visible + .custom-check {
    box-shadow: 0 0 0 4px rgba(140,115,214,.14);
}

.check-card > span:last-child strong,
.check-card > span:last-child small {
    display: block;
}

.check-card > span:last-child {
    min-width: 0;
    width: 100%;
}

.check-card > span:last-child strong {
    color: var(--text);
    font-size: .84rem;
}

.check-card > span:last-child small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.45;
}

.auth-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.auth-security-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
}

.auth-security-note > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f2edf5;
    color: var(--primary);
    font-weight: 850;
}

.auth-security-note small {
    max-width: 270px;
    font-size: .72rem;
    line-height: 1.45;
}

.auth-submit {
    min-width: 190px;
    gap: 11px;
}

.auth-submit > span {
    transition: transform .18s ease;
}

.auth-submit:hover > span {
    transform: translateX(4px);
}

.form-errors {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid #f0c4ce;
    border-radius: 16px;
    background: #fff2f5;
    color: var(--danger);
}

.form-errors-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--danger);
    color: #fff;
    font-weight: 900;
}

.form-errors strong {
    display: block;
    margin-bottom: 4px;
}

.form-errors ul,
.form-errors p {
    margin: 0;
    color: #8d4051;
    font-size: .82rem;
}

.form-errors ul {
    padding-left: 18px;
}

.auth-footer {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: .86rem;
}

.auth-footer a {
    margin-left: 4px;
    font-weight: 820;
}

.auth-page-login {
    min-height: 650px;
    grid-template-columns: minmax(0, .92fr) minmax(430px, .78fr);
}

.auth-presentation-login {
    background:
        radial-gradient(circle at 80% 18%, rgba(242,109,133,.2), transparent 17rem),
        radial-gradient(circle at 12% 94%, rgba(140,115,214,.3), transparent 21rem),
        linear-gradient(145deg, #432056 0%, #5b2e73 58%, #74438d 100%);
}

.login-privacy-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    max-width: 470px;
    margin-top: 38px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.075);
}

.login-privacy-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.18rem;
}

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

.login-privacy-card strong {
    margin-bottom: 3px;
}

.login-privacy-card small {
    color: rgba(255,255,255,.65);
    font-size: .78rem;
}

.auth-quote {
    max-width: 500px;
    margin: 38px 0 0;
    padding: 0 0 0 19px;
    border-left: 2px solid rgba(242,109,133,.8);
}

.auth-quote p {
    margin: 0 0 7px;
    color: rgba(255,255,255,.76);
    font-size: .92rem;
    font-style: italic;
}

.auth-quote footer {
    color: rgba(255,255,255,.48);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-form-card-login {
    padding-inline: clamp(34px, 6vw, 76px);
}

.login-form {
    gap: 18px;
}

.login-submit {
    margin-top: 4px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 30px 0 18px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.register-invitation {
    display: grid;
    grid-template-columns: 43px 1fr 24px;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #faf6fc);
    color: var(--text);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.register-invitation:hover {
    transform: translateY(-1px);
    border-color: #d7c8e0;
    box-shadow: 0 12px 30px rgba(69,39,84,.075);
}

.register-invitation-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.15rem;
}

.register-invitation strong,
.register-invitation small {
    display: block;
}

.register-invitation strong {
    font-size: .88rem;
}

.register-invitation small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .74rem;
}

.register-invitation-arrow {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 850;
}

@media (max-width: 1020px) {
    .auth-page,
    .auth-page-login {
        grid-template-columns: 1fr;
    }

    .auth-presentation {
        min-height: auto;
        padding: 44px;
    }

    .auth-presentation h1 {
        max-width: 720px;
        font-size: clamp(2.7rem, 7vw, 4.6rem);
    }

    .auth-benefits {
        grid-template-columns: repeat(3, 1fr);
    }

    .auth-benefit {
        grid-template-columns: 34px 1fr;
        border-top: 0;
        border-left: 1px solid rgba(255,255,255,.12);
        padding: 8px 0 8px 14px;
    }

    .auth-presentation-note {
        max-width: 620px;
    }

    .auth-form-card {
        padding: 48px;
    }
}

@media (max-width: 700px) {
    .auth-page {
        border-radius: 24px;
    }

    .auth-presentation {
        padding: 32px 25px;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-top: 28px;
    }

    .auth-benefit {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.12);
        padding: 13px 0;
    }

    .auth-presentation-note {
        margin-top: 24px;
    }

    .auth-form-card {
        padding: 30px 22px;
    }

    .form-section {
        padding: 18px;
    }

    .form-columns {
        grid-template-columns: 1fr;
    }

    .auth-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-security-note {
        order: 2;
    }

    .auth-submit {
        width: 100%;
    }
}
/* =========================================================
   Lebigi v0.1.6 — private maintenance mode
   ========================================================= */

.maintenance-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 780;
}

.maintenance-nav-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(242,109,133,.12);
}

.maintenance-login-note {
    display: grid;
    grid-template-columns: 43px 1fr;
    align-items: center;
    gap: 13px;
    margin-top: 26px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #faf6fc);
}

.maintenance-login-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f2ebf6;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 850;
}

.maintenance-login-note strong,
.maintenance-login-note small {
    display: block;
}

.maintenance-login-note strong {
    color: var(--text);
    font-size: .87rem;
}

.maintenance-login-note small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.45;
}

@media (max-width: 840px) {
    .maintenance-nav-label {
        width: 100%;
        justify-content: flex-start;
    }
}
/* =========================================================
   Lebigi v0.1.7 — modular profile and privacy preview
   ========================================================= */

.profile-editor-heading,
.preview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.profile-editor-heading h1,
.preview-heading h1 {
    margin: 12px 0 8px;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.profile-editor-heading p,
.preview-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.profile-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-completion-card {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-sm);
}

.profile-completion-card > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.profile-completion-card span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 720;
}

.profile-completion-card strong {
    color: var(--primary);
    font-size: 1.06rem;
}

.profile-completion-card small {
    color: var(--muted);
    font-size: .74rem;
}

.profile-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #ede8f0;
}

.profile-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
    transition: width .25s ease;
}

.profile-progress-card {
    margin-top: 17px;
}

.profile-errors {
    margin-bottom: 22px;
}

.profile-editor {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 24px;
    margin-top: 0;
}

.profile-editor-main {
    display: grid;
    gap: 15px;
}

.profile-module {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: rgba(255,255,255,.87);
    box-shadow: var(--shadow-sm);
}

.profile-module summary {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

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

.profile-module[open] summary {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,244,250,.9));
}

.profile-module-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #f1eaf5;
    color: var(--primary);
    font-size: 1.08rem;
    font-weight: 850;
}

.profile-module-intimate .profile-module-icon {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .72rem;
}

.profile-module summary strong,
.profile-module summary small {
    display: block;
}

.profile-module summary strong {
    color: var(--text);
    font-size: 1rem;
}

.profile-module summary small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .76rem;
}

.module-chevron {
    color: var(--muted);
    font-size: 1.25rem;
    transition: transform .18s ease;
}

.profile-module[open] .module-chevron {
    transform: rotate(180deg);
}

.profile-module-body {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.module-privacy-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border-radius: 15px;
    background: #f8f5fa;
}

.module-privacy-head > span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 760;
}

.privacy-control {
    display: grid;
    grid-template-columns: auto 180px;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.privacy-control > span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 680;
}

.privacy-control select {
    min-height: 40px;
    font-size: .78rem;
}

.field textarea {
    width: 100%;
    resize: vertical;
    min-height: 140px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.field textarea:focus {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 4px rgba(140,115,214,.12);
}

.choice-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-fieldset legend {
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 720;
}

.choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.choice-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.choice-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 720;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.choice-chip:hover span {
    transform: translateY(-1px);
    border-color: #d7c8e0;
}

.choice-chip input:checked + span {
    border-color: rgba(91,46,115,.2);
    background: #f0e8f5;
    color: var(--primary);
}

.choice-chip input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(140,115,214,.13);
}

.choice-chip-intimate input:checked + span {
    border-color: rgba(242,109,133,.25);
    background: var(--accent-soft);
    color: var(--accent);
}

.switch-card {
    position: relative;
    display: grid;
    grid-template-columns: 45px 1fr;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.switch-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}

.switch-ui {
    position: relative;
    width: 44px;
    height: 25px;
    border-radius: 999px;
    background: #d9d3dd;
    transition: background .18s ease;
}

.switch-ui::after {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 9px rgba(42,30,49,.18);
    transition: transform .18s ease;
}

.switch-card input:checked + .switch-ui {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.switch-card-intimate input:checked + .switch-ui {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.switch-card input:checked + .switch-ui::after {
    transform: translateX(19px);
}

.switch-card input:focus-visible + .switch-ui {
    box-shadow: 0 0 0 4px rgba(140,115,214,.14);
}

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

.switch-card strong {
    color: var(--text);
    font-size: .86rem;
}

.switch-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .74rem;
}

.conditional-panel {
    display: grid;
    gap: 17px;
}

.conditional-panel[hidden] {
    display: none !important;
}

.computed-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8f5fa;
}

.computed-value span {
    color: var(--muted);
    font-size: .78rem;
}

.computed-value strong {
    color: var(--primary);
}

.profile-editor-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 106px;
}

.profile-side-card,
.privacy-help-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm);
}

.profile-side-avatar {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.6rem;
    font-weight: 850;
}

.profile-side-card h2 {
    margin: 0 0 2px;
}

.profile-side-card > p {
    margin: 0 0 20px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-side-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.profile-side-status span {
    color: var(--muted);
    font-size: .76rem;
}

.profile-side-status strong {
    color: var(--primary);
}

.profile-side-card .button {
    margin-top: 18px;
}

.privacy-help-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f1eaf5;
    color: var(--primary);
    font-size: 1.08rem;
}

.privacy-help-card h3 {
    margin: 15px 0 6px;
}

.privacy-help-card > p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.privacy-help-card ul {
    display: grid;
    gap: 8px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .75rem;
}

.privacy-help-card strong {
    color: var(--text-soft);
}

.profile-mobile-save {
    display: none;
}

.viewer-mode-card {
    display: grid;
    grid-template-columns: minmax(250px, 420px) 1fr;
    align-items: end;
    gap: 18px;
    margin: 0 0 22px;
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow-sm);
}

.viewer-mode-card label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
}

.viewer-mode-card label > span {
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 760;
}

.viewer-mode-card small {
    color: var(--muted);
    font-size: .75rem;
}

.profile-preview-card {
    width: min(860px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
}

.profile-preview-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 29px;
    background:
        radial-gradient(circle at 90% 0%, rgba(242,109,133,.14), transparent 19rem),
        linear-gradient(145deg, #fbf8fd, #fff);
    border-bottom: 1px solid var(--line);
}

.preview-avatar {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    flex: 0 0 86px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 2rem;
    font-weight: 850;
    box-shadow: 0 17px 38px rgba(91,46,115,.21);
}

.preview-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-name-line h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -.035em;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e9f7ef;
    color: var(--success);
    font-size: .72rem;
    font-weight: 800;
}

.preview-location {
    margin: 5px 0 0;
    color: var(--muted);
}

.preview-section {
    padding: 25px 29px;
    border-bottom: 1px solid var(--line);
}

.preview-section h3 {
    margin: 0 0 13px;
    font-size: 1.15rem;
}

.preview-bio {
    margin: 0;
    color: var(--text-soft);
}

.preview-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.preview-facts > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #faf8fb;
}

.preview-facts span,
.preview-facts strong {
    display: block;
}

.preview-facts span,
.preview-tag-block > span {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .72rem;
}

.preview-facts strong {
    color: var(--text-soft);
    font-size: .88rem;
}

.preview-tag-block {
    margin-top: 17px;
}

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

.preview-tags > span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f0e9f4;
    color: var(--primary);
    font-size: .74rem;
    font-weight: 740;
}

.preview-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-section-title > span {
    color: var(--primary-2);
    font-weight: 850;
}

.preview-section-intimate {
    background: linear-gradient(145deg, #fff, #fff7f9);
}

.preview-section-intimate .preview-section-title > span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .68rem;
}

.preview-tags-intimate > span {
    background: var(--accent-soft);
    color: var(--accent);
}

.preview-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 29px;
    background: #faf8fb;
}

.preview-footer > span {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eee7f3;
    color: var(--primary);
}

.preview-footer p {
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
}

@media (max-width: 980px) {
    .profile-editor {
        grid-template-columns: 1fr;
    }

    .profile-editor-side {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 740px) {
    .profile-editor-heading,
    .preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-heading-actions {
        width: 100%;
    }

    .profile-heading-actions .button {
        flex: 1;
    }

    .profile-completion-card {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .profile-completion-card small {
        display: none;
    }

    .module-privacy-head {
        align-items: stretch;
        flex-direction: column;
    }

    .privacy-control {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
    }

    .form-columns,
    .profile-editor-side,
    .preview-facts,
    .viewer-mode-card {
        grid-template-columns: 1fr;
    }

    .profile-editor-side {
        display: none;
    }

    .profile-mobile-save {
        position: sticky;
        bottom: 12px;
        z-index: 10;
        display: block;
        padding: 10px;
        border: 1px solid rgba(231,225,235,.9);
        border-radius: 17px;
        background: rgba(255,255,255,.88);
        box-shadow: var(--shadow);
        backdrop-filter: blur(16px);
    }

    .profile-preview-hero {
        align-items: flex-start;
    }

    .preview-avatar {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 22px;
        font-size: 1.55rem;
    }

    .preview-name-line h2 {
        font-size: 1.55rem;
    }
}


/* =========================================================
   Lebigi v0.1.8 — private photos and identity verification
   ========================================================= */

.profile-avatar,
.profile-summary-avatar,
.preview-avatar {
    overflow: hidden;
}

.profile-avatar img,
.profile-summary-avatar img,
.preview-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.media-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 25px;
}

.media-page-heading h1 {
    margin: 12px 0 8px;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.media-page-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.media-count {
    min-width: 120px;
    padding: 16px 19px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.media-count strong,
.media-count span {
    display: block;
}

.media-count strong {
    color: var(--primary);
    font-size: 1.4rem;
}

.media-count span {
    color: var(--muted);
    font-size: .73rem;
}

.media-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: start;
    gap: 23px;
}

.media-main {
    display: grid;
    gap: 20px;
}

.photo-upload-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(140,115,214,.08), transparent 18rem),
        rgba(255,255,255,.87);
    box-shadow: var(--shadow-sm);
}

.photo-upload-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 19px;
}

.photo-upload-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    flex: 0 0 49px;
    border-radius: 16px;
    background: #f1eaf5;
    color: var(--primary);
    font-size: 1.35rem;
}

.photo-upload-copy h2 {
    margin: 0 0 3px;
}

.photo-upload-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.photo-upload-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin: 0;
}

.image-dropzone {
    position: relative;
    cursor: pointer;
}

.image-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}

.image-dropzone-preview {
    min-height: 135px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    overflow: hidden;
    padding: 18px;
    border: 1px dashed #cdbfd5;
    border-radius: 17px;
    background: #faf8fb center/cover no-repeat;
    text-align: center;
}

.image-dropzone-preview.has-image {
    position: relative;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

.image-dropzone-preview.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(35,20,44,.35);
}

.image-dropzone-preview > * {
    position: relative;
    z-index: 1;
}

.image-dropzone-symbol {
    color: var(--primary-2);
    font-size: 1.5rem;
}

.image-dropzone-preview strong {
    color: var(--text);
    font-size: .88rem;
}

.image-dropzone-preview.has-image strong,
.image-dropzone-preview.has-image small {
    color: #fff;
}

.image-dropzone-preview small {
    color: var(--muted);
    font-size: .72rem;
}

.media-limit-message {
    padding: 15px;
    border-radius: 15px;
    background: #f4f0f6;
    color: var(--muted);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.photo-management-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-sm);
}

.photo-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee8f1;
}

.photo-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-badges {
    position: absolute;
    inset: 12px 12px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.photo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(34,26,38,.72);
    color: #fff;
    font-size: .68rem;
    font-weight: 820;
    backdrop-filter: blur(8px);
}

.photo-badge.primary {
    background: rgba(91,46,115,.88);
}

.photo-badge.status-approved {
    background: rgba(47,123,92,.9);
}

.photo-badge.status-rejected {
    background: rgba(166,58,83,.9);
}

.photo-card-body {
    padding: 17px;
}

.photo-rejection,
.verification-rejection {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #f0c4ce;
    border-radius: 13px;
    background: #fff2f5;
    color: var(--danger);
    font-size: .76rem;
}

.photo-rejection strong,
.photo-rejection span {
    display: block;
}

.photo-settings-form {
    gap: 12px;
    margin: 0;
}

.photo-settings-form select {
    min-height: 42px;
}

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

.photo-delete-form {
    margin: 13px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.text-danger-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-size: .76rem;
    font-weight: 760;
    cursor: pointer;
}

.media-empty-state {
    padding: 54px 25px;
    border: 1px dashed var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.55);
    text-align: center;
}

.media-empty-state > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 18px;
    background: #f1eaf5;
    color: var(--primary);
    font-size: 1.35rem;
}

.media-empty-state h2 {
    margin: 0 0 5px;
}

.media-empty-state p {
    margin: 0;
    color: var(--muted);
}

.verification-card {
    position: sticky;
    top: 106px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242,109,133,.08), transparent 18rem),
        rgba(255,255,255,.9);
    box-shadow: var(--shadow-sm);
}

.verification-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.verification-card-heading h2 {
    margin: 4px 0 0;
}

.verification-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 16px;
    background: #e9f7ef;
    color: var(--success);
    font-weight: 900;
}

.verification-card > p {
    color: var(--muted);
    font-size: .82rem;
}

.verification-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border-radius: 14px;
    background: #f5f1f7;
}

.verification-status span {
    color: var(--muted);
    font-size: .73rem;
}

.verification-status strong {
    color: var(--text-soft);
    font-size: .79rem;
}

.verification-status.status-approved {
    background: #eaf7ef;
}

.verification-status.status-rejected {
    background: #fff1f4;
}

.verification-status.status-pending {
    background: #fff6e5;
}

.verification-preview {
    width: 100%;
    max-height: 270px;
    display: block;
    margin-top: 16px;
    border-radius: 16px;
    object-fit: contain;
    background: #ece7ef;
}

.verification-instructions {
    margin-top: 18px;
    padding: 15px;
    border-radius: 15px;
    background: #faf8fb;
}

.verification-instructions h3 {
    margin: 0 0 8px;
    font-size: .9rem;
}

.verification-instructions ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 19px;
    color: var(--muted);
    font-size: .76rem;
}

.verification-upload-form {
    margin-top: 16px;
}

.verification-pending-note,
.verification-approved-note,
.verification-privacy-note {
    display: grid;
    grid-template-columns: 35px 1fr;
    align-items: start;
    gap: 10px;
    margin-top: 16px;
    padding: 13px;
    border-radius: 14px;
}

.verification-pending-note {
    background: #fff6e5;
    color: var(--warning);
}

.verification-approved-note {
    background: #eaf7ef;
    color: var(--success);
}

.verification-privacy-note {
    background: #f4eff7;
    color: var(--primary);
}

.verification-pending-note > span,
.verification-approved-note > span,
.verification-privacy-note > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255,255,255,.58);
}

.verification-pending-note p,
.verification-approved-note p,
.verification-privacy-note p {
    margin: 0;
    color: inherit;
    font-size: .75rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.76);
    box-shadow: var(--shadow-sm);
}

.admin-tabs a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 14px;
    border-radius: 11px;
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 760;
}

.admin-tabs a.active,
.admin-tabs a:hover {
    background: #f0e8f5;
    color: var(--primary);
}

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

.review-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-sm);
}

.review-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #ece7ef;
}

.review-image-verification {
    object-fit: contain;
}

.review-card-body {
    padding: 18px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.review-user h2 {
    margin: 0;
    font-size: 1.04rem;
}

.review-user p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: .76rem;
}

.review-meta span {
    color: var(--muted);
}

.review-form {
    margin-top: 13px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

@media (max-width: 1020px) {
    .media-page-layout {
        grid-template-columns: 1fr;
    }

    .verification-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .media-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-count {
        width: 100%;
    }

    .photo-upload-form,
    .photo-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

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


/* =========================================================
   Lebigi v0.2.0 — complete beta application
   ========================================================= */

.nav-with-badge,
.nav-notification-link,
.mobile-nav-badge { position: relative; }

.nav-count {
    min-width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .62rem;
    font-weight: 900;
}

.nav-notification-link {
    width: 39px;
    height: 39px;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
    border: 1px solid var(--line);
    border-radius: 999px !important;
    background: #fff;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -7px;
    margin: 0;
}

.mobile-bottom-nav { display: none; }

.login-helper-row {
    display: flex;
    justify-content: space-between;
    margin-top: -8px;
    font-size: .76rem;
}
.login-helper-row a { font-weight: 760; }

.result-panel { text-align: center; }
.result-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 24px;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}
.result-icon.success { background: var(--success); }
.result-icon.error { background: var(--danger); }

.totp-input {
    letter-spacing: .32em;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 850;
}

.security-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 310px;
    align-items: start;
    gap: 22px;
}
.security-setup-panel { width: 100%; }
.security-setup-panel h2 { margin-top: 28px; }
.security-setup-panel h2:first-child { margin-top: 0; }
.secret-code {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f8f5fa;
}
.secret-code code { flex: 1; overflow-wrap: anywhere; color: var(--primary); font-weight: 850; letter-spacing: .08em; }
.copy-button {
    border: 0;
    border-radius: 10px;
    padding: 8px 11px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}
.uri-details { margin: 12px 0 28px; color: var(--muted); }
.uri-details code { display:block; margin-top:10px; overflow-wrap:anywhere; font-size:.7rem; }
.security-success-card,
.recovery-codes-card,
.admin-principles-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm);
}
.security-success-card > span {
    width: 50px; height: 50px; display:grid; place-items:center; flex:0 0 50px;
    border-radius:16px; background:#e9f7ef; color:var(--success); font-weight:900;
}
.security-success-card h2,
.admin-principles-card h2 { margin:0 0 5px; }
.security-success-card p,
.admin-principles-card p { margin:0; color:var(--muted); }
.recovery-codes-card { display:block; margin-top:20px; }
.recovery-code-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin:18px 0; }
.recovery-code-grid code { padding:12px; border-radius:11px; background:#f3eff5; text-align:center; font-weight:850; }
.warning-text { color:var(--danger); font-weight:720; }

.settings-layout {
    display: grid;
    grid-template-columns: 220px minmax(0,1fr);
    align-items: start;
    gap: 22px;
}
.settings-nav {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-sm);
}
.settings-nav a { padding:11px 12px; border-radius:11px; color:var(--text-soft); font-size:.82rem; font-weight:750; }
.settings-nav a:hover { background:#f1eaf5; color:var(--primary); }
.settings-content { display:grid; gap:17px; }
.settings-card {
    scroll-margin-top: 110px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm);
}
.settings-card h2 { margin:0 0 18px; }
.settings-card h3 { margin:24px 0 4px; }
.security-status-row { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:15px; border-radius:15px; background:#f8f5fa; }
.security-status-row strong,
.security-status-row small { display:block; }
.security-status-row small { color:var(--muted); }
.danger-inline-form { margin-top:25px; padding-top:20px; border-top:1px solid var(--line); }
.danger-settings-card { border-color:#f1cbd4; background:linear-gradient(145deg,#fff,#fff8fa); }
.danger-settings-card > p { color:var(--muted); }
.danger-button {
    min-height: 45px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 18px;
    border:0;
    border-radius:13px;
    background:var(--danger);
    color:#fff;
    font:inherit;
    font-weight:800;
    cursor:pointer;
}
.blocked-list { display:grid; gap:9px; }
.blocked-list > div { display:grid; grid-template-columns:45px 1fr auto; align-items:center; gap:12px; padding:11px; border:1px solid var(--line); border-radius:14px; }
.blocked-list form { margin:0; }

.security-notice { border-left-color:var(--primary); }
.dashboard-notification-heading { margin-top:36px; }
.notification-preview-list,
.notification-list { display:grid; gap:9px; }
.notification-preview,
.notification-item {
    display:grid;
    grid-template-columns:43px 1fr auto;
    align-items:center;
    gap:13px;
    padding:14px;
    border:1px solid var(--line);
    border-radius:15px;
    background:rgba(255,255,255,.8);
    color:var(--text);
}
.notification-preview.unread,
.notification-item.unread { border-color:#d6c5df; background:#fbf7fd; }
.notification-type-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; background:#f0e8f5; color:var(--primary); font-size:1.1rem; }
.notification-preview strong,
.notification-item h2 { margin:0; font-size:.9rem; }
.notification-preview p,
.notification-item p { margin:2px 0 0; color:var(--muted); font-size:.76rem; }
.notification-preview > small,
.notification-item > small { color:var(--muted); font-size:.7rem; }
.compact-empty { padding:28px; }

.discover-heading { align-items:flex-end; }
.discover-filters {
    margin:0 0 24px;
    padding:20px;
    border:1px solid var(--line);
    border-radius:20px;
    background:rgba(255,255,255,.84);
    box-shadow:var(--shadow-sm);
}
.filter-row { display:grid; grid-template-columns:110px 110px 1fr 1fr; gap:12px; }
.filter-actions { display:flex; align-items:center; justify-content:flex-end; gap:18px; }
.filter-actions a { font-size:.8rem; font-weight:760; }
.discover-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.discover-card { overflow:hidden; border:1px solid var(--line); border-radius:23px; background:rgba(255,255,255,.9); box-shadow:var(--shadow-sm); transition:transform .18s ease,box-shadow .18s ease; }
.discover-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.discover-photo { position:relative; display:block; aspect-ratio:4/4.6; overflow:hidden; background:linear-gradient(135deg,#e5d9eb,#f5dce3); }
.discover-photo img { width:100%; height:100%; display:block; object-fit:cover; }
.discover-avatar { width:100%; height:100%; display:grid; place-items:center; color:var(--primary); font-size:5rem; font-weight:850; }
.card-verified { position:absolute; top:13px; left:13px; }
.discover-card-body { padding:17px; }
.discover-title-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.discover-title-row h2 { margin:0; color:var(--text); font-size:1.25rem; }
.online-dot { width:9px; height:9px; border-radius:50%; background:#c8c1cc; }
.online-dot.online { background:#4cad78; box-shadow:0 0 0 4px rgba(76,173,120,.12); }
.discover-location { margin:4px 0 10px; color:var(--muted); font-size:.78rem; }
.discover-tags { display:flex; flex-wrap:wrap; gap:6px; min-height:31px; }
.discover-tags span { padding:6px 9px; border-radius:999px; background:#f1eaf5; color:var(--primary); font-size:.68rem; font-weight:720; }
.discover-actions { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:17px; padding-top:15px; border-top:1px solid var(--line); }
.discover-actions form { margin:0; }
.round-action { width:45px; height:45px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; background:#fff; font-size:1.35rem; cursor:pointer; transition:transform .18s ease; }
.round-action:hover { transform:scale(1.06); }
.round-action.pass { color:var(--muted); }
.round-action.like { width:52px; height:52px; border:0; background:var(--accent); color:#fff; box-shadow:0 12px 26px rgba(242,109,133,.24); }
.round-action.favorite { color:var(--primary-2); }

.member-profile-header { position:relative; display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.back-link { color:var(--text-soft); font-weight:760; }
.more-button { width:42px; height:42px; border:1px solid var(--line); border-radius:13px; background:#fff; cursor:pointer; }
.member-safety-menu { position:absolute; z-index:30; right:max(20px,calc((100vw - 1220px)/2)); top:115px; width:220px; padding:8px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow); }
.member-safety-menu form { margin:0; }
.member-safety-menu button { width:100%; padding:10px; border:0; border-radius:10px; background:transparent; text-align:left; color:var(--danger); cursor:pointer; }
.member-profile-card { width:min(980px,100%); margin:0 auto; overflow:hidden; border:1px solid var(--line); border-radius:28px; background:rgba(255,255,255,.92); box-shadow:var(--shadow); }
.member-gallery { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(78%,1fr); gap:5px; overflow-x:auto; scroll-snap-type:x mandatory; background:#ebe5ef; }
.member-gallery.single { grid-auto-columns:100%; }
.member-gallery img,
.member-gallery-placeholder { width:100%; height:min(62vh,620px); display:block; object-fit:cover; scroll-snap-align:start; }
.member-gallery-placeholder { display:grid; place-items:center; color:var(--primary); font-size:7rem; font-weight:900; background:linear-gradient(135deg,#dfd0e8,#f5dbe3); }
.member-profile-content { padding:29px; }
.member-title h1 { margin:0; font-size:clamp(2.2rem,5vw,3.7rem); letter-spacing:-.05em; }
.member-title p { margin:8px 0 0; color:var(--muted); }
.member-section { padding:23px 0; border-top:1px solid var(--line); }
.member-section:first-of-type { margin-top:20px; }
.member-section h2 { margin:0 0 12px; font-size:1.15rem; }
.member-section > p { margin:0; color:var(--text-soft); }
.intimate-member-section { background:linear-gradient(145deg,transparent,#fff8fa); }
.member-action-bar { position:sticky; bottom:12px; z-index:10; display:flex; justify-content:center; gap:10px; margin:25px -5px -5px; padding:12px; border:1px solid rgba(231,225,235,.9); border-radius:17px; background:rgba(255,255,255,.9); box-shadow:var(--shadow); backdrop-filter:blur(15px); }
.member-action-bar form { margin:0; }
.report-panel,
.admin-create-panel { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; background:rgba(32,20,38,.55); backdrop-filter:blur(8px); }
.report-panel[hidden],.admin-create-panel[hidden] { display:none; }
.report-panel .panel,.admin-create-panel .panel { position:relative; max-height:90vh; overflow:auto; }
.modal-close { position:absolute; top:13px; right:13px; width:38px; height:38px; border:0; border-radius:12px; background:#f2edf5; cursor:pointer; font-size:1.25rem; }

.match-list { display:grid; gap:12px; }
.match-card { display:grid; grid-template-columns:74px 1fr auto; align-items:center; gap:15px; padding:15px; border:1px solid var(--line); border-radius:19px; background:rgba(255,255,255,.87); box-shadow:var(--shadow-sm); }
.match-avatar,.conversation-avatar { overflow:hidden; display:grid; place-items:center; border-radius:20px; background:linear-gradient(135deg,var(--primary),var(--accent)); color:#fff; font-weight:850; }
.match-avatar { width:72px; height:72px; font-size:1.6rem; }
.match-avatar img,.conversation-avatar img { width:100%; height:100%; object-fit:cover; }
.match-copy h2 { margin:0; }
.match-copy p { margin:3px 0 0; color:var(--muted); font-size:.77rem; }
.match-actions { display:flex; gap:8px; }
.match-actions form { margin:0; }
.button-count { min-width:20px; height:20px; display:inline-grid; place-items:center; border-radius:999px; background:#fff; color:var(--primary); font-size:.66rem; }

.conversation-list { display:grid; gap:8px; max-width:850px; margin:auto; }
.conversation-row { display:grid; grid-template-columns:58px 1fr auto; align-items:center; gap:13px; padding:13px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.83); color:var(--text); }
.conversation-row.unread { border-color:#d7c7df; background:#fbf7fd; }
.conversation-avatar { width:56px; height:56px; border-radius:18px; }
.conversation-copy strong,.conversation-copy small { display:block; }
.conversation-copy small { max-width:520px; overflow:hidden; color:var(--muted); white-space:nowrap; text-overflow:ellipsis; }
.conversation-meta { display:grid; justify-items:end; gap:6px; }
.conversation-meta small { color:var(--muted); font-size:.7rem; }
.conversation-meta b { min-width:23px; height:23px; display:grid; place-items:center; border-radius:999px; background:var(--accent); color:#fff; font-size:.68rem; }

.chat-shell { width:min(900px,100%); height:calc(100vh - 190px); min-height:580px; display:grid; grid-template-rows:auto 1fr auto; margin:auto; overflow:hidden; border:1px solid var(--line); border-radius:24px; background:rgba(255,255,255,.91); box-shadow:var(--shadow); }
.chat-header { display:flex; align-items:center; gap:14px; padding:13px 17px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.94); }
.chat-partner { display:flex; align-items:center; gap:11px; color:var(--text); }
.chat-partner .conversation-avatar { width:46px; height:46px; border-radius:15px; }
.chat-partner strong,.chat-partner small { display:block; }
.chat-partner small { color:var(--muted); font-size:.71rem; }
.chat-messages { overflow-y:auto; display:flex; flex-direction:column; gap:9px; padding:22px; background:linear-gradient(180deg,#faf8fb,#f5f1f7); }
.chat-message { max-width:min(76%,620px); padding:11px 13px 8px; border-radius:17px; box-shadow:0 5px 15px rgba(50,32,58,.05); }
.chat-message p { margin:0; }
.chat-message small { display:block; margin-top:4px; font-size:.62rem; opacity:.65; text-align:right; }
.chat-message.mine { align-self:flex-end; border-bottom-right-radius:5px; background:linear-gradient(135deg,var(--primary),#704087); color:#fff; }
.chat-message.theirs { align-self:flex-start; border-bottom-left-radius:5px; background:#fff; color:var(--text); }
.chat-composer { grid-template-columns:1fr auto; align-items:end; gap:10px; margin:0; padding:13px; border-top:1px solid var(--line); background:#fff; }
.chat-composer textarea { min-height:48px; max-height:150px; resize:none; padding:13px 15px; border:1px solid var(--line); border-radius:15px; font:inherit; outline:none; }
.chat-composer textarea:focus { border-color:var(--primary-2); box-shadow:0 0 0 4px rgba(140,115,214,.12); }
.send-button { width:48px; height:48px; border:0; border-radius:15px; background:var(--primary); color:#fff; cursor:pointer; font-size:1.1rem; }

.notification-list { max-width:900px; margin:auto; }
.notification-item h2 { font-size:.95rem; }

.admin-stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
.admin-stat { min-height:145px; display:flex; flex-direction:column; justify-content:center; padding:20px; border:1px solid var(--line); border-radius:19px; background:rgba(255,255,255,.87); color:var(--text); box-shadow:var(--shadow-sm); }
.admin-stat > span { color:var(--primary); font-size:1.25rem; }
.admin-stat strong { margin:8px 0 0; color:var(--primary); font-size:2rem; }
.admin-stat small { color:var(--muted); }
.admin-stat.danger strong,.admin-stat.danger > span { color:var(--danger); }
.admin-principles-card { margin-top:20px; }
.user-admin-stack { display:grid; gap:8px; }
.admin-password-form { grid-template-columns:1fr auto; align-items:center; margin:0; }
.admin-password-form input { min-height:38px; }
.deleted-user { opacity:.58; }
.report-status-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.report-status-tabs a { padding:8px 12px; border-radius:999px; background:#f1edf3; color:var(--muted); font-size:.75rem; font-weight:760; }
.report-status-tabs a.active { background:var(--primary); color:#fff; }
.report-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.report-card { padding:20px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.88); box-shadow:var(--shadow-sm); }
.report-card-head { display:grid; grid-template-columns:42px 1fr auto; align-items:start; gap:12px; }
.report-card-head h2 { margin:0; font-size:1rem; }
.report-card-head p { margin:2px 0 0; color:var(--muted); font-size:.76rem; }
.report-card-head > small { color:var(--muted); font-size:.68rem; }
.report-severity { width:40px; height:40px; display:grid; place-items:center; border-radius:13px; background:#fff4df; color:var(--warning); font-weight:900; }
.report-severity.high { background:#fff0f3; color:var(--danger); }
.report-facts { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:15px; }
.report-facts > div { padding:11px; border-radius:12px; background:#f8f5fa; }
.report-facts span,.report-facts strong { display:block; }
.report-facts span { color:var(--muted); font-size:.68rem; }
.report-facts strong { font-size:.8rem; }
.report-description { padding:13px; border-left:3px solid var(--accent); background:#fff8fa; color:var(--text-soft); font-size:.82rem; }
.risk-section { margin-top:40px; }
.audit-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow-sm); }
.audit-table { width:100%; border-collapse:collapse; font-size:.76rem; }
.audit-table th,.audit-table td { padding:11px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.audit-table th { color:var(--muted); background:#faf8fb; font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; }
.audit-table td small { display:block; color:var(--muted); }
.audit-table pre { max-width:420px; white-space:pre-wrap; word-break:break-word; }
.severity-badge { padding:5px 8px; border-radius:999px; background:#f1edf3; font-size:.65rem; }
.severity-badge.high { background:#fff0f3; color:var(--danger); }
.severity-badge.medium { background:#fff6e5; color:var(--warning); }

@media (max-width: 1100px) {
    .discover-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .admin-stat-grid { grid-template-columns:repeat(2,1fr); }
    .filter-row { grid-template-columns:1fr 1fr; }
    .report-list { grid-template-columns:1fr; }
}

@media (max-width: 840px) {
    body.is-authenticated { padding-bottom:78px; }
    .site-footer { margin-bottom:68px; }
    .mobile-bottom-nav {
        position:fixed;
        z-index:80;
        left:10px;
        right:10px;
        bottom:9px;
        display:grid;
        grid-template-columns:repeat(5,1fr);
        padding:7px;
        border:1px solid rgba(231,225,235,.9);
        border-radius:20px;
        background:rgba(255,255,255,.93);
        box-shadow:0 18px 50px rgba(50,30,60,.18);
        backdrop-filter:blur(18px);
    }
    .mobile-bottom-nav a { position:relative; display:grid; place-items:center; gap:1px; min-height:49px; border-radius:14px; color:var(--muted); }
    .mobile-bottom-nav a.active { background:#f0e8f5; color:var(--primary); }
    .mobile-bottom-nav span { font-size:1.15rem; line-height:1; }
    .mobile-bottom-nav small { font-size:.59rem; font-weight:750; }
    .mobile-bottom-nav b { position:absolute; top:1px; right:12%; min-width:18px; height:18px; display:grid; place-items:center; border-radius:999px; background:var(--accent); color:#fff; font-size:.58rem; }
    .settings-layout,.security-layout { grid-template-columns:1fr; }
    .settings-nav { position:static; display:flex; overflow-x:auto; }
    .settings-nav a { white-space:nowrap; }
    .member-safety-menu { right:15px; top:100px; }
    .match-card { grid-template-columns:64px 1fr; }
    .match-actions { grid-column:1/-1; }
    .admin-stat-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 640px) {
    .recovery-code-grid,.discover-grid,.filter-row,.report-facts { grid-template-columns:1fr; }
    .discover-filters[hidden] { display:none; }
    .member-profile-content { padding:20px; }
    .member-gallery img,.member-gallery-placeholder { height:55vh; }
    .member-action-bar { flex-direction:column; }
    .member-action-bar .button,.member-action-bar form { width:100%; }
    .member-action-bar form .button { width:100%; }
    .match-actions { flex-direction:column; }
    .match-actions .button,.match-actions form { width:100%; }
    .conversation-row { grid-template-columns:52px 1fr auto; }
    .conversation-avatar { width:50px; height:50px; }
    .chat-shell { height:calc(100vh - 145px); min-height:500px; border-radius:18px; }
    .chat-message { max-width:87%; }
    .admin-stat-grid { grid-template-columns:1fr 1fr; gap:9px; }
    .admin-stat { min-height:120px; padding:15px; }
    .user-card { padding:15px; }
    .user-admin-stack,.user-controls,.admin-password-form { grid-template-columns:1fr; }
    .report-card-head { grid-template-columns:40px 1fr; }
    .report-card-head > small { grid-column:2; }
}


/* =========================================================
   Lebigi v0.2.4 — risk events and continuous verification
   ========================================================= */

.identity-notice {
    border-color: #f0c4ce;
    background: linear-gradient(135deg, #fff3f6, #fff);
}

.identity-notice .notice-icon {
    background: #ffe2e9;
    color: var(--danger);
}

.verification-status.status-required {
    background: #fff0f3;
}

.verification-status.status-required strong {
    color: var(--danger);
}

.verification-required-note {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #f0c4ce;
    border-radius: 14px;
    background: #fff2f5;
    color: var(--danger);
}

.verification-required-note > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--danger);
    color: #fff;
    font-weight: 900;
}

.verification-required-note p {
    margin: 0;
    font-size: .77rem;
}

.risk-filters {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) auto;
    align-items: end;
    gap: 12px;
    margin: 0 0 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.8);
    box-shadow: var(--shadow-sm);
}

.risk-card-list {
    display: grid;
    gap: 15px;
}

.risk-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 19px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-sm);
}

.risk-card.risk-low {
    border-left-color: #8c9aaa;
}

.risk-card.risk-medium {
    border-left-color: #d39a2d;
}

.risk-card.risk-high {
    border-left-color: var(--danger);
}

.risk-card.is-reviewed {
    opacity: .76;
}

.risk-card-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: start;
    gap: 13px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.risk-level-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f5f1f7;
    color: var(--text-soft);
    font-size: 1.05rem;
    font-weight: 900;
}

.risk-high .risk-level-icon {
    background: #fff0f3;
    color: var(--danger);
}

.risk-medium .risk-level-icon {
    background: #fff6e5;
    color: var(--warning);
}

.risk-card-title h2 {
    margin: 5px 0 2px;
    font-size: 1.05rem;
}

.risk-card-title p,
.risk-card-head time {
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
}

.risk-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.risk-reverify-badge,
.risk-reviewed-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: .67rem;
    font-weight: 820;
}

.risk-reverify-badge {
    background: #fff0f3;
    color: var(--danger);
}

.risk-reviewed-badge {
    background: #eaf7ef;
    color: var(--success);
}

.risk-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.risk-facts > div {
    padding: 13px 16px;
    background: #faf8fb;
}

.risk-facts span,
.risk-facts strong {
    display: block;
}

.risk-facts span {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .68rem;
}

.risk-facts strong {
    overflow-wrap: anywhere;
    color: var(--text-soft);
    font-size: .78rem;
}

.risk-context-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    background: #fbfafc;
    font-size: .75rem;
}

.risk-context-note span {
    color: var(--muted);
}

.risk-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin: 0;
    padding: 15px 18px;
}

.nav-notification-link {
    color: inherit;
    text-decoration: none;
}

.nav-notification-link:hover {
    color: inherit;
    transform: translateY(-1px);
}

@media (max-width: 800px) {
    .risk-filters,
    .risk-facts {
        grid-template-columns: 1fr;
    }

    .risk-card-head {
        grid-template-columns: 42px 1fr;
    }

    .risk-card-head time {
        grid-column: 2;
    }

    .risk-context-note,
    .risk-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .risk-actions .button {
        width: 100%;
    }
}


/* =========================================================
   Lebigi v0.2.5 — unified profile/account and mandatory 2FA
   ========================================================= */

.profile-anchor-section {
    scroll-margin-top: 112px;
}

.profile-hub-nav {
    position: sticky;
    top: 91px;
    z-index: 18;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 8px;
    border: 1px solid rgba(231,225,235,.9);
    border-radius: 17px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.profile-hub-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 12px;
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 780;
}

.profile-hub-nav a:hover {
    background: #f1eaf5;
    color: var(--primary);
}

.profile-hub-nav a > span {
    color: var(--primary);
    font-weight: 850;
}

.profile-hub-nav a > b {
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1eaf5;
    color: var(--primary);
    font-size: .62rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.profile-hub-nav a.needs-attention {
    background: #fff0f3;
    color: var(--danger);
}

.profile-hub-nav a.needs-attention > span,
.profile-hub-nav a.needs-attention > b {
    color: var(--danger);
}

.profile-hub-nav a.needs-attention > b {
    background: #ffe0e8;
}

.profile-settings-zone {
    margin-top: 72px;
    padding-top: 8px;
}

.profile-settings-heading {
    margin-bottom: 24px;
}

.profile-settings-heading h2 {
    margin: 12px 0 7px;
    font-size: clamp(2.15rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.profile-settings-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.unified-settings-layout {
    align-items: start;
}

.profile-settings-nav {
    top: 165px;
}

.profile-settings-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.required-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(242,109,133,.12);
}

.settings-card-heading {
    margin-bottom: 18px;
}

.settings-card-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card-heading h2,
.settings-card-heading p {
    margin: 0;
}

.settings-card-heading p {
    margin-top: 3px;
    color: var(--muted);
    font-size: .78rem;
}

.settings-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    border-radius: 14px;
    background: #f1eaf5;
    color: var(--primary);
    font-weight: 850;
}

.settings-icon.danger {
    background: #fff0f3;
    color: var(--danger);
}

.security-status-row.security-required {
    border: 1px solid #e3d6e8;
    background: linear-gradient(145deg, #faf6fc, #fff);
}

.security-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.required-badge,
.optional-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.required-badge {
    background: #f0e8f5;
    color: var(--primary);
}

.optional-badge {
    background: #f2f0f4;
    color: var(--muted);
}

.security-status-row p {
    max-width: 600px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .76rem;
}

.password-settings-form {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.mandatory-security-note,
.mandatory-2fa-banner {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #d9cbe1;
    border-radius: 15px;
    background: #f8f3fa;
    color: var(--primary);
}

.mandatory-security-note > span,
.mandatory-2fa-banner > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eee4f3;
    color: var(--primary);
    font-weight: 900;
}

.mandatory-security-note p,
.mandatory-2fa-banner p {
    margin: 0;
    color: var(--text-soft);
    font-size: .78rem;
}

.mandatory-2fa-banner strong {
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 840px) {
    .profile-hub-nav {
        top: 76px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .profile-hub-nav::-webkit-scrollbar {
        display: none;
    }

    .profile-hub-nav a {
        white-space: nowrap;
    }

    .profile-settings-zone {
        margin-top: 48px;
    }

    .profile-settings-nav {
        top: auto;
    }
}

@media (max-width: 620px) {
    .security-status-row {
        align-items: stretch;
        flex-direction: column;
    }

    .security-status-row .button {
        width: 100%;
    }
}


/* =========================================================
   Lebigi — drag & drop image upload
   ========================================================= */

.image-dropzone-preview {
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.image-dropzone:hover .image-dropzone-preview,
.image-dropzone:focus-within .image-dropzone-preview {
    border-color: var(--primary-2);
    background-color: #f7f1fa;
    box-shadow: 0 0 0 4px rgba(140,115,214,.08);
}

.image-dropzone.is-dragover .image-dropzone-preview {
    border-style: solid;
    border-color: var(--accent);
    background-color: #fff1f5;
    box-shadow: 0 0 0 5px rgba(242,109,133,.12);
    transform: translateY(-2px);
}

.image-dropzone.is-dragover .image-dropzone-symbol {
    transform: translateY(-3px);
}

.image-dropzone-symbol {
    transition: transform .18s ease;
}

.verification-dropzone {
    display: block;
    margin-bottom: 12px;
}

.verification-dropzone .image-dropzone-preview {
    min-height: 118px;
}


/* =========================================================
   Lebigi v0.2.6 — staff action notifications
   ========================================================= */

.nav-notification-link.has-required-action {
    position: relative;
    color: var(--danger);
    border-color: rgba(204, 62, 89, .22);
    background: #fff3f6;
}

.nav-notification-link.has-required-action > span:first-child {
    font-weight: 900;
}

.nav-notification-link.has-required-action .notification-count {
    background: var(--danger);
    color: #fff;
}

.staff-action-section {
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 20px;
    border: 1px solid #efc8d1;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242,109,133,.10), transparent 38%),
        #fffafb;
    box-shadow: var(--shadow-sm);
}

.staff-action-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.staff-action-heading h2 {
    margin: 5px 0 4px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.staff-action-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.staff-action-total {
    min-width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 15px;
    background: var(--danger);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.staff-action-list {
    display: grid;
    gap: 9px;
}

.staff-action-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.staff-action-card:hover {
    color: inherit;
    transform: translateY(-1px);
    border-color: #cfbad9;
    box-shadow: var(--shadow-sm);
}

.staff-action-card.priority-high {
    border-color: #efc6cf;
    background: #fff7f9;
}

.staff-action-card.priority-medium {
    border-color: #ead7ad;
    background: #fffdf8;
}

.staff-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f1eaf5;
    color: var(--primary);
    font-weight: 900;
}

.priority-high .staff-action-icon {
    background: #ffe8ee;
    color: var(--danger);
}

.priority-medium .staff-action-icon {
    background: #fff4dc;
    color: #9a6a0b;
}

.staff-action-copy {
    min-width: 0;
}

.staff-action-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-action-title-row h3 {
    margin: 0;
    font-size: .91rem;
}

.staff-action-count {
    min-width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #f0e8f4;
    color: var(--primary);
    font-size: .69rem;
    font-weight: 850;
}

.priority-high .staff-action-count {
    background: #ffe1e8;
    color: var(--danger);
}

.staff-action-copy p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .76rem;
}

.staff-action-open {
    white-space: nowrap;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
}

.staff-action-note {
    margin: 13px 2px 0;
    color: var(--muted);
    font-size: .7rem;
}

.personal-notifications-section {
    max-width: 900px;
    margin: 0 auto;
}

.section-mini-heading {
    margin: 0 0 10px;
}

.section-mini-heading h2 {
    margin: 0;
    font-size: 1rem;
}

.compact-empty-state {
    padding-block: 24px;
}

.admin-stat.needs-action {
    border-color: #decbe7;
    background: linear-gradient(145deg, #fff, #fbf5fd);
}

@media (max-width: 720px) {
    .staff-action-heading {
        align-items: center;
    }

    .staff-action-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .staff-action-open {
        grid-column: 2;
    }
}


/* =========================================================
   2026-10-21 — isolate notification list from header bell
   ========================================================= */

.notification-item {
    width: 100%;
    height: auto;
    text-decoration: none;
}

.notification-item:hover {
    color: var(--text);
    transform: translateY(-1px);
    border-color: #d6c5df;
    box-shadow: var(--shadow-sm);
}

.notification-item > div {
    min-width: 0;
}


/* Lebigi v0.2.7 — active liveness */
.liveness-intro{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:start;margin:16px 0;padding:14px;border:1px solid #ded2e5;border-radius:16px;background:#fbf7fd}.liveness-intro h3,.liveness-intro p{margin:0}.liveness-intro h3{margin-bottom:3px;font-size:.9rem}.liveness-intro p{color:var(--muted);font-size:.75rem;line-height:1.55}.liveness-shield{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#efe6f4;color:var(--primary);font-size:1.15rem;font-weight:900}.liveness-stage{margin-top:14px}.liveness-camera-frame{position:relative;overflow:hidden;aspect-ratio:4/3;border:1px solid #d9c9e1;border-radius:18px;background:#17131a}.liveness-camera-frame video{width:100%;height:100%;display:block;object-fit:cover;background:#17131a}.liveness-camera-frame>video[data-liveness-camera]{transform:scaleX(-1)}.liveness-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;padding:24px 18px;text-align:center;color:#fff;background:linear-gradient(to top,rgba(16,10,19,.72),rgba(16,10,19,0) 54%);pointer-events:none}.liveness-overlay strong{max-width:90%;padding:8px 13px;border-radius:999px;background:rgba(24,15,28,.72);backdrop-filter:blur(7px);font-size:.9rem}.liveness-overlay small{min-height:18px;color:rgba(255,255,255,.84);font-weight:800}.liveness-record-dot{position:absolute;top:15px;right:15px;width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.45);box-shadow:0 0 0 5px rgba(255,255,255,.10)}.liveness-record-dot.is-recording{background:#ff4d6d;box-shadow:0 0 0 5px rgba(255,77,109,.18);animation:livenessPulse 1.1s infinite}@keyframes livenessPulse{50%{transform:scale(.78);opacity:.75}}.liveness-status{min-height:20px;margin:10px 2px 0;color:var(--muted);font-size:.74rem;line-height:1.45}.liveness-status.is-error{color:var(--danger)}.liveness-status.is-success{color:var(--success)}.liveness-actions{display:flex;gap:9px;margin-top:10px}.liveness-actions .button{flex:1}.review-video{width:100%;display:block;aspect-ratio:4/3;object-fit:cover;background:#17131a}.liveness-review-block{margin:14px 0;padding:13px 14px;border:1px solid #ded2e5;border-radius:14px;background:#fbf8fd}.liveness-review-block ol{margin:8px 0;padding-left:20px}.liveness-review-block li{margin:4px 0;font-size:.8rem;font-weight:720}.liveness-review-block p{margin:8px 0 0;color:var(--muted);font-size:.72rem;line-height:1.5}@media(max-width:620px){.liveness-actions{flex-direction:column}}


/* Definitivní ochrana nativního hidden atributu. */
html [hidden] {
    display: none !important;
}

/* Druhá pojistka pro řízené prvky živého ověření. */
.liveness-is-hidden {
    display: none !important;
}


/* =========================================================
   Lebigi — camera permission onboarding
   ========================================================= */

.liveness-permission-card,
.liveness-help-card {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #ded2e5;
    border-radius: 18px;
    background: #fbf8fd;
}

.liveness-permission-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.liveness-permission-icon,
.liveness-help-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eee5f4;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 900;
}

.liveness-permission-copy h3,
.liveness-help-card h3 {
    margin: 0 0 5px;
    font-size: .95rem;
}

.liveness-permission-copy > p,
.liveness-help-card > div > p {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.55;
}

.liveness-browser-hint {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin-top: 12px;
    padding: 10px 11px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8ddec;
}

.liveness-browser-hint > span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f5ef;
    color: #26845f;
    font-size: .7rem;
    font-weight: 900;
}

.liveness-browser-hint p {
    margin: 1px 0 0;
    color: var(--text);
    font-size: .72rem;
    line-height: 1.45;
}

.liveness-permission-actions {
    grid-column: 1 / -1;
    display: grid;
    gap: 7px;
    margin-top: 3px;
}

.liveness-permission-actions .text-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    padding: 7px;
}

.liveness-help-card {
    display: grid;
    gap: 14px;
    border-color: #ebccd3;
    background: #fff9fa;
}

.liveness-help-card > div:nth-child(2) {
    min-width: 0;
}

.liveness-address-demo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 13px 0 11px;
    padding: 9px 11px;
    border: 1px solid #d9d3dc;
    border-radius: 999px;
    background: #fff;
    color: #5b5560;
    font-size: .72rem;
    font-weight: 750;
}

.liveness-address-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1edf3;
    color: var(--primary);
}

.liveness-help-list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.liveness-help-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text);
    font-size: .75rem;
    line-height: 1.45;
}

.liveness-help-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eee5f4;
    color: var(--primary);
    font-size: .62rem;
    font-weight: 900;
}

.liveness-browser-detail {
    margin-top: 11px !important;
    padding: 10px 11px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eadfe8;
    color: #6f6374 !important;
    font-size: .7rem !important;
}

@media (max-width: 620px) {
    .liveness-permission-card {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 14px;
    }
}


.liveness-auto-note {
    margin: 10px 0 0 !important;
    padding: 9px 11px;
    border-radius: 12px;
    background: #eef8f3;
    color: #2b765a !important;
    font-size: .7rem !important;
    font-weight: 700;
    line-height: 1.45;
}


/* =========================================================
   Native browser-controlled camera capability (Chrome 153+)
   ========================================================= */
















/* <usermedia> is a browser-owned security control.
   Do not clip, distort or overlay it. */
.verification-card {
    min-width: 0;
}





/* On narrower screens the entire verification card becomes its own row.
   This gives the browser-owned control the full available viewport width. */
@media (max-width: 1100px) {
    .media-page-layout {
        grid-template-columns: 1fr;
    }

    .verification-card {
        width: 100%;
        max-width: 640px;
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .verification-card {
        max-width: none;
    }
}


/* =========================================================
   Lebigi — dedicated browser camera permission gateway
   ========================================================= */

html.liveness-gateway-open,
body.liveness-gateway-open {
    overflow: hidden;
}

.liveness-gateway {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 16px;
}

.liveness-gateway-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 19, 32, .62);
}

.liveness-gateway-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #dfd1e6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(41, 26, 48, .22);
}

.liveness-gateway-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f4eef7;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.25rem;
}

.liveness-gateway-copy {
    max-width: 600px;
    margin: 0 auto 22px;
    padding-right: 36px;
}

.liveness-gateway-copy h2 {
    margin: 6px 0 7px;
}

.liveness-gateway-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

/*
 * IMPORTANT:
 * Do NOT set width/height/transform/opacity/overflow on <camera>.
 * Chrome owns that UI and validates it as trusted anti-clickjacking UI.
 */
.liveness-capability-host {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 74px;
    margin: 12px 0;
}

.liveness-gateway-status {
    min-height: 22px;
    max-width: 620px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.5;
    text-align: center;
}

.liveness-gateway-status.is-error {
    color: var(--danger);
}

.liveness-gateway-note {
    display: block;
    max-width: 620px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 620px) {
    .liveness-gateway {
        padding: 8px;
        place-items: start center;
        overflow-y: auto;
    }

    .liveness-gateway-dialog {
        width: calc(100vw - 16px);
        max-height: none;
        margin: 8px 0;
        padding: 22px 14px;
        border-radius: 20px;
        overflow: visible;
    }

    .liveness-gateway-copy {
        padding-right: 34px;
    }

    .liveness-capability-host {
        justify-content: flex-start;
        width: 100%;
    }
}


/* Capability-element readiness feedback. The <usermedia> element itself
   intentionally receives no site CSS. */
.liveness-gateway-status.is-success {
    color: var(--success);
    font-weight: 700;
}
