:root {
    --green-900: #0b7445;
    --green-800: #0e8f53;
    --green-700: #16985d;
    --green-100: #e8f6ef;
    --green-050: #f4fbf7;
    --text-main: #1c2b24;
    --text-muted: #6f7f78;
    --border: #e4ece8;
    --shadow: 0 18px 40px rgba(17, 75, 49, 0.1);
    --warning: #fff5da;
    --warning-text: #996b00;
    --danger: #ffe5e5;
    --danger-text: #a43333;
    --success: #e5f7ec;
    --success-text: #15693f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(17, 143, 83, 0.08), transparent 28%),
        linear-gradient(180deg, #f7faf8 0%, #edf5f0 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
}

a {
    color: var(--green-800);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.mobile-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    box-shadow: var(--shadow);
    position: relative;
    padding-bottom: 104px;
}

.mobile-shell-public {
    padding-bottom: 28px;
}

.global-notice {
    margin: 14px 16px 0;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
}

.global-notice-success {
    background: var(--success);
    color: var(--success-text);
}

.global-notice-error {
    background: var(--danger);
    color: var(--danger-text);
}

.global-notice-warning {
    background: var(--warning);
    color: var(--warning-text);
}

.auth-screen,
.app-screen {
    padding: 20px 16px 0;
}

.auth-screen-login {
    padding-top: 40px;
}

.brand-card {
    text-align: center;
    padding: 12px 12px 24px;
}

.brand-logo {
    width: 190px;
    margin: 0 auto 10px;
}

.brand-caption {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
}

.form-card,
.detail-card,
.profile-card,
.results-summary,
.menu-list,
.illustration-card,
.info-card,
.demo-card,
.warning-banner,
.empty-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(22, 63, 44, 0.05);
}

.form-card {
    padding: 18px;
}

.form-card-tight {
    margin-bottom: 16px;
}

.input-group {
    display: block;
    margin-bottom: 14px;
}

.input-group span {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--text-muted);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    background: #fbfdfc;
    color: var(--text-main);
    outline: none;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 4px rgba(22, 152, 93, 0.08);
}

.otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 28px;
    font-weight: 700;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.btn-primary {
    background: linear-gradient(180deg, var(--green-700) 0%, var(--green-900) 100%);
    color: #fff;
    padding: 14px 18px;
    font-weight: 700;
}

.btn-block {
    width: 100%;
}

.btn-small {
    background: var(--green-800);
    color: #fff;
    padding: 10px 18px;
    font-weight: 600;
}

.btn-muted {
    background: #dce6e0;
    color: #496257;
}

.btn-filter {
    background: #f0f7f4;
    color: var(--green-900);
    padding: 0 16px;
    font-weight: 700;
}

.helper-text {
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.info-card,
.demo-card,
.warning-banner,
.empty-card {
    margin-top: 14px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.info-card {
    background: #f6fbf8;
}

.demo-card {
    background: #f6fffb;
    color: var(--green-900);
}

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

.topbar h1 {
    margin: 0;
    font-size: 20px;
}

.topbar-light {
    margin-bottom: 8px;
}

.back-link,
.share-icon,
.settings-icon,
.hero-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-900);
    background: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.share-icon::before {
    content: "↗";
    font-size: 16px;
}

.settings-icon::before {
    content: "⚙";
    font-size: 16px;
}

.illustration-card {
    text-align: center;
    padding: 18px;
    margin-bottom: 16px;
}

.illustration-card img {
    width: 160px;
    margin: 0 auto 14px;
}

.illustration-card h2,
.results-copy h2,
.detail-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.illustration-card p,
.results-copy p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.otp-hint {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ecfff4;
    color: var(--success-text);
    font-size: 13px;
}

.hero-header {
    background: linear-gradient(180deg, #0c8450 0%, #076b40 100%);
    border-radius: 0 0 26px 26px;
    padding: 18px 16px 22px;
    color: #fff;
    margin: -20px -16px 18px;
}

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hero-top h1 {
    margin: 0 0 4px;
    font-size: 32px;
}

.hero-top p {
    margin: 0;
    opacity: 0.84;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-badge::before {
    content: "🔔";
}

.hero-banner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(233, 247, 239, 0.98));
    border-radius: 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.hero-banner h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.15;
}

.hero-banner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.quick-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 14px 10px;
    text-align: center;
    color: var(--text-main);
    box-shadow: 0 8px 20px rgba(16, 56, 38, 0.05);
}

.quick-card strong {
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.quick-icon,
.nav-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: var(--green-100);
    position: relative;
}

.icon-doc::before,
.nav-icon-doc::before,
.icon-plus::before,
.nav-icon-plus::before,
.icon-like::before,
.icon-chart::before,
.nav-icon-home::before,
.nav-icon-user::before,
.nav-icon-chart::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--green-900);
    font-size: 13px;
    font-weight: 700;
}

.icon-doc::before,
.nav-icon-doc::before {
    content: "≡";
}

.icon-plus::before,
.nav-icon-plus::before {
    content: "+";
}

.icon-like::before {
    content: "✓";
}

.icon-chart::before,
.nav-icon-chart::before {
    content: "▥";
}

.nav-icon-home::before {
    content: "⌂";
}

.nav-icon-user::before {
    content: "◔";
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.summary-grid-profile {
    grid-template-columns: repeat(2, 1fr);
}

.summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(20, 63, 44, 0.04);
}

.summary-card span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.summary-card strong {
    font-size: 24px;
    color: var(--green-900);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-head h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.section-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.proposal-list,
.vote-list,
.rank-list {
    display: grid;
    gap: 14px;
}

.proposal-card,
.vote-item,
.rank-item {
    display: grid;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 12px;
    color: var(--text-main);
    box-shadow: 0 7px 22px rgba(13, 59, 40, 0.05);
}

.proposal-card {
    grid-template-columns: 92px 1fr;
    align-items: center;
}

.proposal-card img {
    width: 92px;
    height: 78px;
    object-fit: cover;
    border-radius: 16px;
}

.proposal-card-wide {
    grid-template-columns: 1fr 112px;
}

.proposal-card-wide img {
    width: 112px;
    height: 98px;
}

.proposal-content h4,
.vote-item h3,
.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.proposal-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

.proposal-meta-column {
    justify-content: flex-start;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.tag-infra {
    background: #e6f6ea;
    color: #137945;
}

.tag-health {
    background: #ecf4ff;
    color: #326cc6;
}

.tag-education {
    background: #fff0dc;
    color: #bb7b16;
}

.tag-economy {
    background: #f7ebff;
    color: #8744b1;
}

.tag-default {
    background: #f0f2f3;
    color: #52616d;
}

.search-panel {
    margin-bottom: 16px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 12px;
}

.search-row input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.filter-pills,
.tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.pill,
.tab {
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f6f4;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.pill.is-active,
.tab.is-active {
    background: var(--green-100);
    color: var(--green-900);
    border-color: rgba(22, 152, 93, 0.15);
    font-weight: 700;
}

.detail-card {
    padding: 18px;
}

.detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.detail-image {
    width: 100%;
    height: 208px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.detail-section {
    margin-bottom: 16px;
}

.detail-section h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.detail-section p {
    margin: 0;
    line-height: 1.7;
    color: #2f3b35;
}

.vote-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #f5fbf7;
    margin-bottom: 14px;
}

.vote-highlight span,
.vote-highlight strong {
    display: block;
}

.vote-highlight strong {
    font-size: 28px;
    color: var(--green-900);
}

.secure-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f5fbf7;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.char-counter {
    display: block;
    text-align: right;
    margin-top: 8px;
    color: var(--text-muted);
}

.warning-banner {
    background: var(--warning);
    color: var(--warning-text);
}

.warning-banner strong {
    display: block;
    margin-bottom: 4px;
}

.warning-banner p {
    margin: 0;
}

.vote-item {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.results-summary {
    display: grid;
    grid-template-columns: 1.2fr 110px;
    align-items: center;
    gap: 16px;
    padding: 18px;
    margin-bottom: 16px;
}

.stats-line {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.stats-line span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.stats-line strong {
    font-size: 28px;
    color: var(--green-900);
}

.donut-chart {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 20px;
    background: #fff;
    border-radius: 50%;
}

.rank-item {
    grid-template-columns: 42px 1fr;
}

.rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #ffbf54 0%, #f29a26 100%);
}

.progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #ebf2ee;
    overflow: hidden;
    margin-top: 10px;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
}

.profile-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 16px;
}

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

.profile-copy h2 {
    margin: 0 0 6px;
}

.profile-copy p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.verified-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e9f9f0;
    color: var(--success-text);
    font-weight: 700;
    font-size: 12px;
}

.menu-list {
    padding: 4px 0;
    overflow: hidden;
}

.menu-list a,
.menu-button-logout {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border: 0;
    background: #fff;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.menu-list a + a,
.menu-list a + form,
.menu-list form + a,
.menu-list form + form {
    border-top: 1px solid var(--border);
}

.menu-list a::after,
.menu-button-logout::after {
    content: "›";
    color: #8da198;
    font-size: 18px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 430px);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(16, 55, 38, 0.08);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.bottom-nav-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
}

.bottom-nav-item .nav-icon {
    margin: 0 auto 6px;
}

.bottom-nav-item.is-active {
    color: var(--green-900);
    font-weight: 700;
}

.bottom-nav-item.is-active .nav-icon {
    background: #dff3e7;
}

@media (max-width: 480px) {
    .mobile-shell {
        width: 100%;
        box-shadow: none;
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }

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

@media (max-width: 390px) {
    .hero-banner {
        grid-template-columns: 1fr;
    }

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

    .results-summary {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .proposal-card,
    .proposal-card-wide,
    .profile-card {
        grid-template-columns: 1fr;
    }
}

body {
    font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
    transition: background 0.35s ease, color 0.35s ease;
}

body.theme-emerald {
    --green-900: #0d6b4d;
    --green-800: #118761;
    --green-700: #13a06f;
    --green-100: #e6f7f0;
    --green-050: #f5fcf9;
    --text-main: #1b2a24;
    --text-muted: #63766e;
    --border: rgba(17, 94, 67, 0.12);
}

body.theme-ocean {
    --green-900: #184a86;
    --green-800: #1f63ae;
    --green-700: #2b7ccf;
    --green-100: #e8f2ff;
    --green-050: #f5f9ff;
    --text-main: #162236;
    --text-muted: #61728d;
    --border: rgba(33, 92, 160, 0.14);
}

body.theme-sunset {
    --green-900: #9a4c0d;
    --green-800: #b86518;
    --green-700: #d18128;
    --green-100: #fff1e3;
    --green-050: #fff8f1;
    --text-main: #302117;
    --text-muted: #806252;
    --border: rgba(184, 101, 24, 0.14);
}

body.theme-berry {
    --green-900: #7f244e;
    --green-800: #a23163;
    --green-700: #bb4275;
    --green-100: #fdeaf2;
    --green-050: #fff7fa;
    --text-main: #321927;
    --text-muted: #7b5a69;
    --border: rgba(162, 49, 99, 0.15);
}

body.theme-graphite {
    --green-900: #2c3546;
    --green-800: #3d495f;
    --green-700: #596884;
    --green-100: #edf1f7;
    --green-050: #f7f9fc;
    --text-main: #1f2733;
    --text-muted: #687485;
    --border: rgba(61, 73, 95, 0.14);
}

body.theme-ocean,
body.theme-sunset,
body.theme-berry,
body.theme-graphite,
body.theme-emerald {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 26%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.35), transparent 24%),
        linear-gradient(180deg, var(--green-050) 0%, #eef3f8 100%);
}

.mobile-shell {
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.94)),
        #fff;
}

.app-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}

.app-icon svg {
    width: 100%;
    height: 100%;
}

.back-link,
.share-icon,
.settings-icon,
.hero-badge {
    font-size: 0;
}

.back-link .app-icon,
.share-icon .app-icon,
.settings-icon .app-icon,
.hero-badge .app-icon {
    font-size: initial;
}

.back-link::before {
    content: "\2190";
    font-size: 18px;
    line-height: 1;
}

.back-link .app-icon + span,
.back-link svg {
    position: relative;
    z-index: 1;
}

.back-link-icon::before {
    display: none;
}

.share-icon::before {
    content: "+";
    font-size: 18px;
}

.settings-icon::before {
    content: "";
}

.hero-badge::before {
    content: "";
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-800);
}

.hero-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 30%),
        linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
    box-shadow: 0 18px 45px rgba(18, 52, 38, 0.18);
}

.hero-header::after {
    content: "";
    position: absolute;
    inset: auto -60px -110px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(6px);
}

.hero-header-admin {
    margin-top: 10px;
    padding-bottom: 18px;
}

.hero-badge {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-badge .app-icon {
    width: 18px;
    height: 18px;
    color: #fff;
}

.hero-badge-bell {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffd861 0%, #f0b321 100%);
    border-color: rgba(255, 234, 176, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        0 12px 24px rgba(76, 54, 9, 0.24);
    color: #fff6d1;
}

.hero-badge-bell .app-icon {
    width: 22px;
    height: 22px;
    color: #fffdf5;
}

.hero-badge-bell.has-unread {
    animation: bellPulse 1.05s ease-in-out infinite;
}

.hero-badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #a56a00;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid #ffe9a4;
}

.hero-badge-bell:not(.has-unread) .hero-badge-count {
    opacity: 0.82;
}

.hero-banner {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-banner-managed {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.25fr) minmax(170px, 200px);
    gap: 18px;
}

.hero-banner-managed::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 136, 97, 0.12), transparent 72%);
    pointer-events: none;
}

.hero-banner-copy {
    position: relative;
    z-index: 1;
}

.hero-visual-card {
    position: relative;
    min-height: 170px;
    border-radius: 24px;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(226, 243, 234, 0.9), rgba(246, 252, 248, 0.98)),
        #eef7f1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 30px rgba(15, 54, 39, 0.08);
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    min-height: 142px;
    object-fit: contain;
}

.hero-banner-preview {
    min-height: 100%;
}

.quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.quick-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 112px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(19, 64, 45, 0.12);
    border-color: rgba(19, 136, 97, 0.22);
}

.quick-card-featured {
    background: linear-gradient(180deg, var(--green-050), #ffffff);
}

.quick-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--green-100), rgba(255, 255, 255, 0.95));
    color: var(--green-900);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.summary-card small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.native-card {
    margin: 0 0 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 186, 158, 0.8);
    background: linear-gradient(180deg, #ffffff, #fffaf8);
    box-shadow: 0 10px 24px rgba(104, 80, 64, 0.05);
}

.native-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #143055;
}

.native-card p {
    margin: 0;
    color: #6e7ea5;
    line-height: 1.55;
}

.native-status-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.native-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #e0f6d7;
    color: #0b8e47;
    font-weight: 800;
}

.native-permission {
    color: #6e7ea5;
}

.native-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.native-link {
    color: var(--green-800);
    font-weight: 700;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.native-link-button {
    font: inherit;
}

.section-head-compact {
    margin-top: 22px;
}

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

.activity-list-spaced {
    margin-top: 14px;
}

.activity-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(17, 51, 38, 0.05);
    color: var(--text-main);
}

.activity-card.is-fresh {
    border-color: rgba(19, 136, 97, 0.24);
    background: linear-gradient(180deg, var(--green-050), #fff);
}

.activity-icon-wrap {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--green-100), rgba(255, 255, 255, 0.95));
    color: var(--green-900);
}

.activity-icon {
    width: 22px;
    height: 22px;
}

.activity-copy strong,
.activity-copy p,
.activity-copy span {
    display: block;
}

.activity-copy strong {
    margin-bottom: 4px;
    font-size: 15px;
}

.activity-copy p {
    margin: 0 0 6px;
    color: var(--text-muted);
    line-height: 1.5;
}

.activity-copy span {
    color: var(--green-800);
    font-size: 12px;
    font-weight: 700;
}

.admin-strip {
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--green-050));
    border: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(16, 55, 38, 0.07);
}

.admin-strip h3 {
    margin: 6px 0 0;
    font-size: 20px;
}

.admin-strip-stats,
.admin-grid {
    display: grid;
    gap: 12px;
}

.admin-strip-stats {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
}

.admin-strip-stats span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.admin-strip-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
    color: var(--green-900);
}

.admin-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 20px;
}

.admin-command-panel,
.admin-panel-card {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(18, 52, 38, 0.08);
}

.admin-command-panel {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.8), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--green-050));
}

.admin-command-copy h3,
.admin-panel-card h3 {
    margin: 0;
}

.admin-command-copy p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.admin-highlight-grid,
.admin-report-layout,
.hero-settings-grid {
    display: grid;
    gap: 14px;
}

.admin-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
}

.report-stat-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.report-stat-card span,
.report-stat-card small {
    display: block;
}

.report-stat-card span {
    color: var(--text-muted);
    font-size: 12px;
}

.report-stat-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 28px;
    line-height: 1.1;
    color: var(--green-900);
}

.report-stat-card small {
    color: var(--text-muted);
    line-height: 1.55;
}

.admin-report-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.admin-panel-card {
    padding: 18px;
    border-radius: 26px;
}

.admin-panel-card-wide {
    grid-column: 1 / -1;
}

.admin-section-gap {
    margin-bottom: 22px;
}

.trend-totals {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.trend-totals span {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--green-050);
    color: var(--text-muted);
    font-size: 12px;
}

.trend-totals strong {
    color: var(--green-900);
}

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

.trend-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.trend-label strong {
    display: block;
    padding-top: 10px;
    font-size: 13px;
}

.trend-bars {
    display: grid;
    gap: 10px;
}

.trend-bar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(16, 55, 38, 0.06);
    background: #f8fbf9;
}

.trend-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--bar-size, 0%);
    border-radius: inherit;
    opacity: 0.18;
}

.trend-bar span,
.trend-bar strong {
    position: relative;
    z-index: 1;
}

.trend-bar span {
    color: var(--text-muted);
    font-size: 12px;
}

.trend-bar strong {
    color: var(--green-900);
    font-size: 13px;
}

.trend-bar-proposal::before {
    background: linear-gradient(90deg, #8be0a4, #18a667);
}

.trend-bar-vote::before {
    background: linear-gradient(90deg, #8fc4ff, #287ad1);
}

.trend-bar-user::before {
    background: linear-gradient(90deg, #ffd28d, #d8891d);
}

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

.report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #f9fbfa;
    border: 1px solid rgba(16, 55, 38, 0.06);
}

.report-row strong,
.report-row span,
.report-row b {
    display: block;
}

.report-row span {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.report-row b {
    color: var(--green-900);
    white-space: nowrap;
}

.report-row-link {
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-row-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(18, 52, 38, 0.08);
}

.hero-settings-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
}

.hero-settings-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--green-050);
    color: var(--green-900);
    font-size: 12px;
    font-weight: 700;
}

.hero-settings-actions .form-card {
    margin: 0;
}

.hero-settings-buttons {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.hero-settings-buttons form {
    margin: 0;
}

.admin-mini-stat {
    min-width: 84px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    padding: 12px;
    background: linear-gradient(180deg, var(--green-050), #fff);
    color: var(--green-900);
}

.admin-mini-stat span {
    font-size: 11px;
    color: var(--text-muted);
}

.admin-mini-stat strong {
    font-size: 24px;
}

.profile-card-rich {
    align-items: stretch;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--green-050)),
        #fff;
}

.avatar-large {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(16, 55, 38, 0.12);
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-900);
    font-weight: 700;
    font-size: 12px;
}

.section-stack {
    margin-top: 16px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 14px 0 18px;
}

.theme-option {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
}

.theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-option.is-active {
    border-color: rgba(19, 136, 97, 0.28);
    box-shadow: 0 10px 24px rgba(19, 64, 45, 0.08);
}

.theme-swatch {
    display: block;
    width: 100%;
    height: 56px;
    border-radius: 14px;
}

.theme-swatch-emerald {
    background: linear-gradient(135deg, #13a06f, #0d6b4d);
}

.theme-swatch-ocean {
    background: linear-gradient(135deg, #2b7ccf, #184a86);
}

.theme-swatch-sunset {
    background: linear-gradient(135deg, #d18128, #9a4c0d);
}

.theme-swatch-berry {
    background: linear-gradient(135deg, #bb4275, #7f244e);
}

.theme-swatch-graphite {
    background: linear-gradient(135deg, #596884, #2c3546);
}

.notification-summary {
    margin-bottom: 14px;
}

.notification-summary-icon {
    display: grid;
    place-items: center;
}

.notification-summary-bell {
    width: 56px;
    height: 56px;
    color: var(--green-900);
}

.bottom-nav {
    align-items: stretch;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -6px 18px rgba(15, 44, 33, 0.06);
}

@supports not ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
    .bottom-nav {
        background: #ffffff;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    border-radius: 12px;
}

.bottom-nav-label {
    line-height: 1.1;
    font-size: 11px;
    font-weight: 500;
}

.nav-icon-wrap {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: transparent;
    transition: color 0.22s ease, transform 0.22s ease;
}

.nav-icon {
    width: 18px;
    height: 18px;
    margin: 0;
    background: none;
    color: currentColor;
}

.nav-icon::before {
    content: none;
}

.bottom-nav-item.is-active .nav-icon-wrap {
    background: transparent;
    transform: none;
}

.bottom-nav-item.is-active .nav-icon {
    color: var(--green-900);
}

.bottom-nav-item.is-active .bottom-nav-label {
    color: var(--green-900);
    font-weight: 700;
}

.bottom-nav-item:not(.is-active) .nav-icon,
.bottom-nav-item:not(.is-active) .bottom-nav-label {
    color: #7a858f;
}

.menu-list a::after,
.menu-button-logout::after {
    content: "\203A";
}

@keyframes bellPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        box-shadow: 0 16px 30px rgba(14, 49, 36, 0.22);
    }
    25% {
        transform: rotate(-8deg) scale(1.04);
    }
    50% {
        transform: rotate(8deg) scale(1.08);
        box-shadow: 0 18px 34px rgba(14, 49, 36, 0.28);
    }
    75% {
        transform: rotate(-6deg) scale(1.04);
    }
}

@media (max-width: 480px) {
    .admin-grid,
    .theme-grid,
    .admin-strip-stats,
    .admin-highlight-grid,
    .admin-report-layout,
    .hero-settings-grid {
        grid-template-columns: 1fr;
    }

    .trend-row,
    .hero-banner-managed {
        grid-template-columns: 1fr;
    }

    .trend-label strong {
        padding-top: 0;
    }
}
