:root {
    --tif-purple: #6347a8;
    --tif-purple-alt: #71549e;
    --tif-purple-dark: #1c0041;
    --tif-purple-soft: #ede6f5;
    --tif-orange: #f5a623;
    --tif-orange-dark: #b86d00;
    --tif-orange-soft: #fef3dc;
    --tif-green: #20a56a;
    --ink: #303030;
    --ink-soft: #55505e;
    --muted: #888888;
    --line: #e8e8e8;
    --surface: #ffffff;
    --canvas: #faf7f2;
    --shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
    --sidebar-width: 278px;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    font-family: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

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

a {
    color: var(--tif-purple);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tif-purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.78);
}

.button {
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:not(.button-disabled):hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--tif-purple), var(--tif-purple-dark));
    box-shadow: 0 12px 25px rgba(100, 74, 158, 0.24);
}

.button-primary:hover {
    background: linear-gradient(135deg, #6d52a7, #402b6d);
    box-shadow: 0 16px 28px rgba(100, 74, 158, 0.3);
}

.button-light {
    color: var(--tif-purple-dark);
    background: #fff;
    box-shadow: 0 12px 28px rgba(35, 20, 72, 0.18);
}

.button-block {
    width: 100%;
}

.button-disabled {
    opacity: 0.96;
    cursor: default;
}

.alert {
    margin: 0 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.alert-success {
    color: #116140;
    background: #e8f8f0;
    border-color: #c4eed9;
}

.alert-warning {
    color: #815d05;
    background: #fff8dd;
    border-color: #f3df9e;
}

.alert-danger {
    color: #963026;
    background: #fff0ee;
    border-color: #f7ccc7;
}

.error-list {
    margin: 0;
    padding-left: 20px;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Authentication */
.auth-page {
    overflow-x: hidden;
    background: #fff;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(440px, 0.95fr);
}

.auth-story {
    position: relative;
    overflow: hidden;
    padding: 42px clamp(38px, 6vw, 88px);
    color: #fff;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.18), transparent 32%),
        radial-gradient(circle at 85% 78%, rgba(255, 101, 55, 0.28), transparent 30%),
        linear-gradient(145deg, #4a317c 0%, #644a9e 46%, #33205f 100%);
}

.auth-story::before,
.auth-story::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.auth-story::before {
    width: 520px;
    height: 520px;
    right: -260px;
    top: -150px;
    box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.035), 0 0 0 120px rgba(255, 255, 255, 0.025);
}

.auth-story::after {
    width: 420px;
    height: 420px;
    left: -250px;
    bottom: -250px;
    box-shadow: 0 0 0 55px rgba(255, 87, 45, 0.06), 0 0 0 110px rgba(255, 87, 45, 0.04);
}

.auth-story-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 690px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.auth-brand {
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
}

.brand-logo-wrap {
    width: 215px;
    height: 72px;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 18px 45px rgba(28, 13, 63, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-wrap img,
.mobile-auth-brand img,
.setup-logo img,
.sidebar-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-story-copy {
    margin: auto 0;
    padding: 60px 0;
}

.auth-story-copy h1 {
    max-width: 650px;
    margin: 18px 0 20px;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.auth-story-copy p {
    max-width: 530px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.65;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.trust-row span {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 750;
}

.auth-panel {
    min-height: 100vh;
    padding: 44px clamp(30px, 6vw, 92px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 90% 10%, #f1ecfb 0, transparent 31%),
        #fff;
}

.auth-card {
    width: min(100%, 500px);
}

.mobile-auth-brand {
    display: none;
    width: 190px;
    height: 68px;
    margin-bottom: 34px;
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading h2,
.setup-card h1 {
    margin: 10px 0 9px;
    color: var(--ink);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.auth-heading p,
.setup-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.auth-form,
.setup-form {
    display: grid;
    gap: 19px;
}

.field-group {
    min-width: 0;
}

.field-group label,
.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #30394c;
    font-size: 13px;
    font-weight: 800;
}

.field-label-row label {
    margin: 0;
}

.muted-small,
.form-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.field-group input {
    width: 100%;
    height: 54px;
    border: 1px solid #dce2eb;
    border-radius: 14px;
    outline: none;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.025);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-group input::placeholder {
    color: #abb3c1;
}

.field-group input:focus {
    border-color: var(--tif-purple);
    box-shadow: 0 0 0 4px rgba(100, 74, 158, 0.11);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 78px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-width: 58px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.auth-help {
    margin: 24px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
}

.dev-setup-note {
    margin-top: 18px;
    border-radius: 12px;
    padding: 11px 13px;
    color: #74580f;
    background: #fff8de;
    text-align: center;
    font-size: 12px;
    font-weight: 650;
}

/* First user setup */
.setup-page {
    min-height: 100vh;
    padding: 36px 20px;
    background:
        radial-gradient(circle at 10% 12%, rgba(100, 74, 158, 0.12), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(255, 87, 45, 0.09), transparent 28%),
        var(--canvas);
}

.setup-shell {
    width: min(100%, 820px);
    margin: 0 auto;
}

.setup-logo {
    width: 200px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
}

.setup-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 5vw, 48px);
    background: #fff;
    box-shadow: var(--shadow);
}

.setup-card > p {
    margin-bottom: 28px;
}

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

.field-full {
    grid-column: 1 / -1;
}

.form-hint {
    margin: -7px 0 0;
}

/* App shell */
.app-page {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 1000;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    padding: 22px 16px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.13), transparent 28%),
        linear-gradient(180deg, #3f286d 0%, #553988 50%, #342158 100%);
    box-shadow: 18px 0 45px rgba(42, 27, 75, 0.13);
    display: flex;
    flex-direction: column;
}

.sidebar-head {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.sidebar-brand > span:last-child {
    min-width: 0;
}

.sidebar-brand strong,
.sidebar-brand small {
    display: block;
    white-space: nowrap;
}

.sidebar-brand strong {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.sidebar-brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-logo-box {
    width: 49px;
    height: 49px;
    flex: 0 0 auto;
    border-radius: 14px;
    padding: 6px;
    background: #fff;
    box-shadow: 0 11px 24px rgba(25, 11, 53, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 24px;
}

.sidebar-nav {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-label {
    margin: 0 12px 10px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.nav-item {
    min-height: 50px;
    padding: 0 13px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-size: 14px;
    font-weight: 720;
    transition: background 150ms ease, color 150ms ease;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.nav-item.active {
    box-shadow: inset 3px 0 0 var(--tif-orange);
}

.nav-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-flex;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item small {
    margin-left: auto;
    border-radius: 999px;
    padding: 3px 7px;
    color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.08);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.nav-item-disabled {
    cursor: default;
    opacity: 0.62;
}

.sidebar-support {
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 11px;
    background: rgba(255, 255, 255, 0.07);
}

.support-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #fff;
    background: var(--tif-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.sidebar-support strong,
.sidebar-support span {
    display: block;
}

.sidebar-support strong {
    margin-bottom: 4px;
    font-size: 12px;
}

.sidebar-support div span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.45;
}

.sidebar-footer {
    min-height: 42px;
    margin-top: 12px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 650;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #50df98;
    box-shadow: 0 0 0 4px rgba(80, 223, 152, 0.12);
}

.app-shell {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    z-index: 900;
    top: 0;
    min-height: 78px;
    padding: 0 clamp(20px, 3vw, 42px);
    border-bottom: 1px solid rgba(225, 230, 238, 0.92);
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar h1 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.topbar-kicker {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    align-items: center;
    justify-content: center;
}

.menu-button {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--tif-purple);
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px 5px 5px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.avatar {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--tif-purple), #8a6ec5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
}

.profile-copy {
    min-width: 0;
    text-align: left;
}

.profile-copy strong,
.profile-copy small {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.profile-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.chevron {
    color: var(--muted);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 22px 55px rgba(31, 41, 55, 0.16);
}

.profile-dropdown-head {
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.profile-dropdown-head strong,
.profile-dropdown-head span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-head strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.profile-dropdown-head span {
    color: var(--muted);
    font-size: 11px;
}

.dropdown-action {
    width: 100%;
    min-height: 47px;
    border: 0;
    padding: 0 16px;
    color: #9d3228;
    background: #fff;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.dropdown-action:hover {
    background: #fff2f0;
}

.app-content {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: clamp(22px, 3.3vw, 46px);
    flex: 1;
}

.welcome-panel {
    position: relative;
    min-height: 274px;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 52px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.15), transparent 30%),
        linear-gradient(125deg, #4c347e, #6b4ca5 55%, #4d317e);
    box-shadow: 0 22px 55px rgba(73, 50, 120, 0.18);
    display: flex;
    align-items: center;
}

.welcome-panel::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -160px;
    width: 390px;
    height: 390px;
    border: 58px solid rgba(255, 87, 45, 0.13);
    border-radius: 50%;
}

.welcome-copy {
    position: relative;
    z-index: 2;
    width: min(100%, 720px);
}

.welcome-copy h2 {
    margin: 14px 0 13px;
    font-size: clamp(30px, 4vw, 47px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.welcome-copy p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
}

.welcome-actions {
    margin-top: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.security-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 750;
}

.security-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4be096;
    box-shadow: 0 0 0 5px rgba(75, 224, 150, 0.12);
}

.impact-mark {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: clamp(40px, 9vw, 145px);
    width: 160px;
    height: 160px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
}

.impact-ring-two {
    inset: 28px;
    border-color: rgba(255, 255, 255, 0.24);
}

.impact-heart {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--tif-orange), #ff784f);
    box-shadow: 0 18px 36px rgba(44, 18, 83, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 31px;
}

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

.stat-card {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 19px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.055);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-purple {
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
}

.stat-orange {
    color: var(--tif-orange-dark);
    background: #fff0eb;
}

.stat-green {
    color: var(--tif-green);
    background: #e8f8f0;
}

.stat-card > div {
    min-width: 0;
}

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

.stat-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card strong {
    color: var(--ink);
    font-size: 25px;
    letter-spacing: -0.035em;
}

.stat-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 20px;
}

.content-card {
    border: 1px solid var(--line);
    border-radius: 21px;
    padding: clamp(22px, 3vw, 30px);
    background: #fff;
    box-shadow: 0 12px 36px rgba(31, 41, 55, 0.05);
}

.card-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.content-card h3 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: 21px;
    letter-spacing: -0.025em;
}

.phase-badge {
    align-self: flex-start;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.empty-state {
    min-height: 260px;
    padding: 40px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-illustration {
    width: 76px;
    height: 76px;
    border-radius: 23px;
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-illustration svg {
    width: 43px;
    height: 43px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state h4 {
    margin: 18px 0 8px;
    font-size: 17px;
}

.empty-state p {
    max-width: 490px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.campaign-list {
    margin-top: 24px;
}

.campaign-row {
    min-height: 68px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
}

.campaign-type {
    min-width: 66px;
    border-radius: 999px;
    padding: 6px 8px;
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    text-align: center;
    font-size: 9px;
    font-weight: 850;
}

.campaign-main {
    min-width: 0;
    flex: 1;
}

.campaign-main strong,
.campaign-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-main strong {
    font-size: 13px;
}

.campaign-main span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.status-badge {
    border-radius: 999px;
    padding: 6px 9px;
    color: #69520e;
    background: #fff7d8;
    font-size: 9px;
    font-weight: 800;
}

.status-published {
    color: #12663f;
    background: #e7f8ef;
}

.readiness-card h3 {
    margin-bottom: 21px;
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list li {
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 650;
}

.check-list li span {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--muted);
    background: #eef1f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 850;
}

.check-list li.done span {
    color: #fff;
    background: var(--tif-green);
}

.account-meta {
    margin-top: 22px;
    border-radius: 14px;
    padding: 14px;
    background: #f6f7fa;
}

.account-meta span,
.account-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-meta span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-meta strong {
    font-size: 11px;
}

.app-footer {
    min-height: 64px;
    padding: 0 clamp(22px, 3vw, 42px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 10px;
    font-weight: 650;
}

.mobile-overlay {
    display: none;
}

@media (max-width: 1100px) {
    :root {
        --sidebar-width: 246px;
    }

    .impact-mark {
        right: 40px;
        opacity: 0.54;
    }

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

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-story {
        display: none;
    }

    .auth-panel {
        padding: 34px 22px;
        background:
            radial-gradient(circle at 10% 4%, rgba(100, 74, 158, 0.13), transparent 28%),
            radial-gradient(circle at 100% 100%, rgba(255, 87, 45, 0.07), transparent 26%),
            #fff;
    }

    .mobile-auth-brand {
        display: flex;
    }

    .sidebar {
        width: min(86vw, 290px);
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    .sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .mobile-overlay {
        position: fixed;
        z-index: 950;
        inset: 0;
        background: rgba(15, 23, 42, 0.52);
        backdrop-filter: blur(3px);
    }

    .sidebar-open .mobile-overlay {
        display: block;
    }

    .app-shell {
        margin-left: 0;
    }

    .menu-button {
        display: flex;
    }

    .topbar {
        min-height: 72px;
    }
}

@media (max-width: 700px) {
    .setup-page {
        padding: 18px 12px;
    }

    .setup-card {
        border-radius: 20px;
    }

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

    .field-full {
        grid-column: auto;
    }

    .profile-copy,
    .chevron {
        display: none;
    }

    .profile-trigger {
        width: 48px;
        min-height: 48px;
        padding: 4px;
        justify-content: center;
    }

    .topbar {
        padding: 0 14px;
    }

    .topbar h1 {
        font-size: 18px;
    }

    .app-content {
        padding: 16px;
    }

    .welcome-panel {
        min-height: 330px;
        border-radius: 22px;
        align-items: flex-start;
    }

    .welcome-copy h2 {
        font-size: 31px;
    }

    .welcome-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-actions .button {
        width: 100%;
        text-align: center;
    }

    .impact-mark {
        width: 110px;
        height: 110px;
        top: auto;
        right: 20px;
        bottom: 14px;
        transform: none;
        opacity: 0.43;
    }

    .impact-heart {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        font-size: 24px;
    }

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

    .stat-card {
        min-height: 108px;
        padding: 18px;
    }

    .dashboard-grid {
        gap: 14px;
    }

    .content-card {
        border-radius: 18px;
        padding: 20px;
    }

    .campaign-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .status-badge {
        margin-left: 80px;
    }

    .app-footer {
        padding: 18px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .auth-panel {
        padding: 24px 18px;
        align-items: flex-start;
    }

    .mobile-auth-brand {
        width: 165px;
        height: 58px;
        margin-bottom: 28px;
    }

    .auth-heading h2 {
        font-size: 34px;
    }

    .field-group input {
        height: 52px;
    }

    .welcome-panel {
        padding: 25px 21px;
    }
}

/* Read-only legacy donation bridge notice. It is intentionally calm, not an
 * error state: the public amount is visible while finance reconciliation runs. */
.finance-sync-notice {
    margin-top: 18px;
    border-color: rgba(221, 174, 43, 0.34);
    color: #6e5200;
    background: rgba(255, 248, 221, 0.88);
    box-shadow: 0 10px 28px rgba(111, 82, 0, 0.06);
}

@media (max-width: 720px) {
    .finance-sync-notice {
        margin-top: 14px;
        font-size: 13px;
    }
}

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

/* ================================================================
   TIF CAMPAIGNER PORTAL UI v0.2
   Approved brand system: DM Sans, purple/orange.
   ================================================================ */

.app-page {
    color: var(--ink);
    background: var(--canvas);
    font-family: "DM Sans", Arial, sans-serif;
}

.app-page h1,
.app-page h2,
.app-page h3,
.app-page h4,
.app-page p,
.app-page span,
.app-page a,
.app-page button,
.app-page input,
.app-page small,
.app-page strong {
    font-family: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-page a:focus-visible,
.app-page button:focus-visible {
    outline: 3px solid rgba(245, 166, 35, 0.5);
    outline-offset: 3px;
}

.app-page .sidebar {
    width: 264px;
    padding: 22px 18px 18px;
    color: var(--ink);
    background: #fff;
    border-right: 1px solid var(--line);
    box-shadow: none;
}

.app-page .sidebar-head {
    min-height: 74px;
    padding: 0 7px;
}

.app-page .sidebar-brand {
    width: 178px;
    height: 58px;
    color: var(--ink);
    display: flex;
    align-items: center;
}

.app-page .sidebar-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.app-page .sidebar-start {
    min-height: 48px;
    margin-top: 22px;
    border-radius: 10px;
    padding: 0 15px;
    color: var(--ink);
    background: var(--tif-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 150ms ease, transform 150ms ease;
}

.app-page .sidebar-start:hover {
    background: #f9b941;
    transform: translateY(-1px);
}

.app-page .sidebar-start > span {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.app-page .sidebar-nav {
    margin-top: 30px;
    gap: 6px;
}

.app-page .nav-label {
    margin: 0 13px 9px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.12em;
}

.app-page .nav-item {
    min-height: 48px;
    border-radius: 10px;
    padding: 0 13px;
    color: #625e68;
    font-size: 13px;
    font-weight: 600;
}

.app-page .nav-item:hover {
    color: var(--tif-purple);
    background: #faf8fc;
}

.app-page .nav-item.active {
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    box-shadow: inset 3px 0 0 var(--tif-purple);
}

.app-page .nav-icon {
    width: 21px;
    height: 21px;
}

.app-page .sidebar-support {
    border-color: #f3dfb7;
    background: var(--tif-orange-soft);
}

.app-page .support-icon {
    color: var(--ink);
    background: var(--tif-orange);
}

.app-page .sidebar-support strong {
    color: var(--ink);
}

.app-page .sidebar-support div span {
    color: #716957;
}

.app-page .sidebar-footer {
    color: var(--muted);
}

.app-page .status-dot {
    background: #2eb776;
    box-shadow: 0 0 0 4px rgba(46, 183, 118, 0.12);
}

.app-page .sidebar-close {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}

.app-page .app-shell {
    margin-left: 264px;
}

.app-page .topbar {
    min-height: 76px;
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.app-page .topbar h1 {
    margin-top: 3px;
    color: var(--ink);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-page .topbar-kicker {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.app-page .profile-trigger {
    border-color: var(--line);
    border-radius: 12px;
    box-shadow: none;
}

.app-page .avatar {
    border-radius: 10px;
    background: var(--tif-purple);
}

.app-page .profile-copy strong {
    font-size: 12px;
}

.app-page .app-content {
    width: min(100%, 1360px);
    padding: 34px clamp(24px, 3vw, 42px) 44px;
}

.app-page .app-footer {
    border-top-color: var(--line);
    background: #fff;
    font-size: 10px;
}

.brand-label {
    display: inline-flex;
    align-items: center;
    color: var(--tif-purple);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-label::before {
    content: "";
    width: 18px;
    height: 2px;
    margin-right: 8px;
    background: var(--tif-orange);
}

.brand-label-light {
    color: rgba(255, 255, 255, 0.78);
}

.brand-button {
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}

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

.brand-button-accent {
    color: var(--ink);
    background: var(--tif-orange);
}

.brand-button-accent:hover {
    background: #f9b941;
}

.brand-button-primary {
    color: #fff;
    background: var(--tif-purple);
}

.brand-button-primary:hover {
    background: var(--tif-purple-alt);
}

.brand-button-light {
    color: var(--tif-purple-dark);
    background: #fff;
}

.brand-button.button-disabled,
.brand-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.text-link,
.small-link {
    color: var(--tif-purple);
    font-weight: 700;
    text-decoration: none;
}

.text-link {
    font-size: 12px;
}

.small-link {
    font-size: 11px;
}

.text-link:hover,
.small-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.soft-badge,
.count-badge {
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-hero {
    position: relative;
    min-height: 300px;
    border-radius: 18px;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background: var(--tif-purple);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 48px;
    align-items: center;
}

.portal-hero::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -130px;
    top: -185px;
    border: 58px solid rgba(245, 166, 35, 0.16);
    border-radius: 50%;
}

.portal-hero::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    left: 46%;
    bottom: -195px;
    border: 40px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.portal-hero-copy,
.journey-graphic {
    position: relative;
    z-index: 1;
}

.portal-hero h2 {
    max-width: 590px;
    margin: 13px 0 12px;
    color: #fff;
    font-size: 34px;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.portal-hero-copy > p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.65;
}

.portal-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.portal-hero .text-link {
    color: #fff;
}

.journey-graphic {
    max-width: 360px;
    justify-self: end;
    padding: 5px 0;
}

.journey-line {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 23px;
    width: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.journey-node {
    position: relative;
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.journey-node > span {
    position: relative;
    z-index: 1;
    width: 47px;
    height: 47px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.74);
    background: var(--tif-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.journey-node.is-current > span {
    border-color: var(--tif-orange);
    color: var(--ink);
    background: var(--tif-orange);
}

.journey-node.is-done > span {
    border-color: #fff;
    color: var(--tif-purple);
    background: #fff;
}

.journey-node strong,
.journey-node small {
    display: block;
}

.journey-node strong {
    color: #fff;
    font-size: 13px;
}

.journey-node small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 10px;
}

.metric-grid {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.metric-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.metric-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.metric-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-icon.is-purple {
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
}

.metric-icon.is-purple-light {
    color: var(--tif-purple-alt);
    background: #f5f0fa;
}

.metric-icon.is-orange {
    color: #9a5b00;
    background: var(--tif-orange-soft);
}

.metric-icon.is-charcoal {
    color: #fff;
    background: var(--ink);
}

.metric-card > div {
    min-width: 0;
}

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

.metric-card > div > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.metric-card strong {
    margin-top: 4px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.1;
}

.metric-card small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.portal-grid {
    display: grid;
    gap: 18px;
}

.portal-grid-main {
    margin-top: 18px;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
}

.panel-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    background: #fff;
}

.panel-heading,
.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.panel-heading h3,
.section-heading h3 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.018em;
}

.section-heading p {
    max-width: 670px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.record-list {
    margin-top: 18px;
}

.record-row {
    min-height: 72px;
    border-top: 1px solid var(--line);
    padding: 12px 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
}

.record-symbol {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.record-primary {
    min-width: 0;
}

.record-primary strong,
.record-primary span,
.record-amount strong,
.record-amount span {
    display: block;
}

.record-primary strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-primary span,
.record-amount span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.record-amount {
    min-width: 82px;
    text-align: right;
}

.record-amount strong {
    color: var(--ink);
    font-size: 12px;
}

.status-chip {
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-chip.is-positive {
    color: #176641;
    background: #e8f6ee;
}

.status-chip.is-progress {
    color: #845000;
    background: var(--tif-orange-soft);
}

.status-chip.is-attention {
    color: #9a3b32;
    background: #fcecea;
}

.status-chip.is-neutral {
    color: #615b68;
    background: #f0eef1;
}

.compact-empty {
    min-height: 230px;
    padding: 30px 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.compact-empty > div:last-child {
    max-width: 420px;
}

.compact-empty h4,
.wide-empty h4 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 16px;
}

.compact-empty p,
.wide-empty p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.empty-art {
    width: 125px;
    height: 98px;
    flex: 0 0 auto;
}

.empty-art svg {
    width: 100%;
    height: 100%;
    fill: #fff;
    stroke: var(--tif-purple);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-art .art-soft {
    fill: var(--tif-purple-soft);
    stroke: none;
}

.empty-art .art-accent {
    fill: var(--tif-orange);
    stroke: none;
}

.empty-art .art-accent-line {
    fill: none;
    stroke: #fff;
}

.journey-card {
    background: #fff;
}

.launch-checklist,
.eligibility-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.launch-checklist li,
.eligibility-list li {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.launch-checklist li:not(:last-child)::after,
.eligibility-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 31px;
    bottom: 3px;
    left: 14px;
    width: 1px;
    background: var(--line);
}

.launch-checklist li > span,
.eligibility-list li > span {
    position: relative;
    z-index: 1;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

.launch-checklist li.is-done > span,
.eligibility-list li.is-done > span {
    border-color: var(--tif-purple);
    color: #fff;
    background: var(--tif-purple);
}

.launch-checklist li.is-current > span {
    border-color: var(--tif-orange);
    color: var(--ink);
    background: var(--tif-orange);
}

.launch-checklist strong,
.launch-checklist small,
.eligibility-list strong,
.eligibility-list small {
    display: block;
}

.launch-checklist strong,
.eligibility-list strong {
    color: var(--ink);
    font-size: 12px;
}

.launch-checklist small,
.eligibility-list small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.trust-strip {
    margin-top: 18px;
    border: 1px solid #e4d8ee;
    border-radius: 14px;
    padding: 16px 18px;
    background: var(--tif-purple-soft);
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.trust-strip-icon,
.privacy-icon {
    color: #fff;
    background: var(--tif-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust-strip-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.trust-strip-icon svg,
.privacy-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-strip strong,
.trust-strip span {
    display: block;
}

.trust-strip strong {
    font-size: 11px;
}

.trust-strip span {
    margin-top: 3px;
    color: #756b7d;
    font-size: 9px;
}

.trust-strip > a {
    color: var(--tif-purple);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.page-lead {
    min-height: 220px;
    border: 1px solid #e4d8ee;
    border-radius: 18px;
    overflow: hidden;
    padding: 36px 40px;
    background: var(--tif-purple-soft);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 30px;
}

.page-lead h2 {
    max-width: 620px;
    margin: 10px 0 10px;
    color: var(--tif-purple-dark);
    font-size: 32px;
    line-height: 1.18;
}

.page-lead p {
    max-width: 650px;
    margin: 0;
    color: #665f6c;
    font-size: 14px;
    line-height: 1.65;
}

.page-lead-graphic {
    position: relative;
    width: 210px;
    height: 150px;
    justify-self: end;
}

.campaign-stack .stack-card {
    position: absolute;
    width: 118px;
    height: 138px;
    border: 1px solid #d7c7e5;
    border-radius: 14px;
}

.stack-card-back {
    right: 8px;
    top: 3px;
    background: #fff;
    transform: rotate(10deg);
}

.stack-card-middle {
    right: 28px;
    top: 6px;
    background: #dfd3eb;
    transform: rotate(2deg);
}

.stack-card-front {
    right: 49px;
    top: 6px;
    background: var(--tif-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-card-front::after {
    content: "+";
    position: absolute;
    right: -15px;
    bottom: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--tif-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.stack-card-front svg {
    width: 62px;
    height: 62px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-block {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    background: #fff;
    scroll-margin-top: 95px;
}

.campaign-type-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.campaign-choice {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
}

.campaign-choice:hover {
    border-color: #cdbce0;
}

.choice-graphic {
    margin: 18px 0 18px 18px;
    border-radius: 12px;
    background: var(--tif-purple-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ngo-choice .choice-graphic {
    background: var(--tif-orange-soft);
}

.choice-graphic svg {
    width: 135px;
    height: 115px;
    fill: #fff;
    stroke: var(--tif-purple);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.choice-graphic .choice-back {
    fill: rgba(99, 71, 168, 0.12);
    stroke: none;
}

.ngo-choice .choice-graphic .choice-back {
    fill: rgba(245, 166, 35, 0.2);
}

.choice-graphic .choice-accent {
    fill: var(--tif-orange);
    stroke: none;
}

.choice-copy {
    padding: 25px 22px 18px;
}

.choice-tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ngo-choice .choice-tag {
    color: #885100;
    background: var(--tif-orange-soft);
}

.choice-copy h4 {
    margin: 10px 0 7px;
    color: var(--ink);
    font-size: 17px;
}

.choice-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.choice-copy ul {
    list-style: none;
    margin: 13px 0 0;
    padding: 0;
}

.choice-copy li {
    position: relative;
    margin-top: 6px;
    padding-left: 16px;
    color: #68636d;
    font-size: 10px;
}

.choice-copy li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tif-purple);
    font-weight: 700;
}

.campaign-choice .brand-button {
    grid-column: 1 / -1;
    margin: 0 18px 18px;
}

.campaign-library {
    margin-top: 18px;
}

.wide-empty {
    min-height: 245px;
    padding: 34px 18px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wide-empty .empty-art {
    margin-bottom: 15px;
}

.wide-empty p {
    max-width: 540px;
}

.campaign-card-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.campaign-summary-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    background: #fff;
}

.campaign-summary-top,
.campaign-money-row,
.campaign-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.campaign-summary-card h4 {
    min-height: 43px;
    margin: 15px 0 5px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
}

.campaign-summary-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.campaign-money-row {
    margin-top: 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    background: #fafafa;
}

.campaign-money-row > div:last-child {
    text-align: right;
}

.campaign-money-row span,
.campaign-money-row strong {
    display: block;
}

.campaign-money-row span,
.campaign-status-row span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.campaign-money-row strong {
    margin-top: 4px;
    font-size: 12px;
}

.campaign-status-row {
    margin-top: 13px;
}

.campaign-status-row strong {
    color: var(--tif-purple);
    font-size: 10px;
}

.verification-lead {
    background: #f5f0fa;
}

.verification-shield {
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-shield svg {
    width: 146px;
    height: 146px;
    fill: var(--tif-purple);
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verification-shield .shield-back {
    fill: rgba(99, 71, 168, 0.18);
    stroke: none;
}

.verification-shield .shield-check {
    fill: none;
    stroke: var(--tif-orange);
    stroke-width: 7;
}

.verification-overview {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.verification-summary-card {
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.verification-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--tif-purple);
    background: var(--tif-purple-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

.verification-summary-card strong,
.verification-summary-card p {
    display: block;
    margin: 0;
}

.verification-summary-card > div > strong {
    font-size: 12px;
}

.verification-summary-card p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.privacy-card {
    background: var(--tif-purple-dark);
    color: #fff;
}

.privacy-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    color: var(--ink);
    background: var(--tif-orange);
}

.privacy-card .brand-label {
    color: rgba(255, 255, 255, 0.67);
}

.privacy-card h3 {
    margin: 10px 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
}

.privacy-card > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.65;
}

.plain-checks {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.plain-checks li {
    min-height: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
}

.plain-checks li span {
    color: var(--tif-orange);
    font-weight: 700;
}

.balance-hero {
    position: relative;
    min-height: 260px;
    border-radius: 18px;
    overflow: hidden;
    padding: 38px 42px;
    color: #fff;
    background: var(--tif-purple-dark);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 40px;
}

.balance-copy {
    position: relative;
    z-index: 2;
}

.balance-copy > strong {
    display: block;
    margin-top: 10px;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.balance-copy > p {
    max-width: 530px;
    margin: 10px 0 22px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.balance-graphic {
    position: relative;
    z-index: 1;
    width: 330px;
    height: 190px;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.balance-circle-one {
    width: 230px;
    height: 230px;
}

.balance-circle-two {
    width: 170px;
    height: 170px;
    border-color: rgba(245, 166, 35, 0.28);
}

.balance-graphic svg {
    position: relative;
    z-index: 1;
    width: 175px;
    height: 132px;
    fill: var(--tif-purple);
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eligibility-note {
    margin: 5px 0 0;
    border-radius: 10px;
    padding: 12px;
    color: #786f5a;
    background: var(--tif-orange-soft);
    font-size: 9px;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .metric-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-grid-main {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .campaign-type-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .app-page .sidebar {
        width: min(86vw, 286px);
    }

    .app-page .app-shell {
        margin-left: 0;
    }

    .portal-hero {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 25px;
        padding: 34px;
    }

    .portal-hero h2 {
        font-size: 31px;
    }

    .page-lead {
        grid-template-columns: minmax(0, 1fr) 190px;
        padding: 32px;
    }

    .page-lead-graphic {
        width: 180px;
    }

    .verification-overview {
        grid-template-columns: minmax(0, 1fr);
    }

    .balance-hero {
        grid-template-columns: minmax(0, 1fr) 240px;
    }

    .balance-graphic {
        width: 230px;
    }
}

@media (max-width: 720px) {
    .app-page .app-content {
        padding: 16px 14px 30px;
    }

    .app-page .topbar {
        min-height: 70px;
    }

    .app-page .topbar h1 {
        font-size: 20px;
    }

    .portal-hero,
    .page-lead,
    .balance-hero {
        border-radius: 14px;
        padding: 26px 22px;
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-hero {
        min-height: auto;
    }

    .portal-hero h2,
    .page-lead h2 {
        font-size: 29px;
    }

    .journey-graphic {
        width: 100%;
        max-width: none;
        justify-self: stretch;
        margin-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        padding-top: 16px;
    }

    .journey-line {
        top: 43px;
    }

    .page-lead-graphic,
    .balance-graphic {
        display: none;
    }

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

    .metric-card {
        min-height: 132px;
        padding: 15px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .metric-card strong {
        font-size: 19px;
    }

    .panel-card,
    .section-block {
        border-radius: 12px;
        padding: 20px;
    }

    .panel-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .panel-heading h3,
    .section-heading h3 {
        font-size: 22px;
    }

    .compact-empty {
        text-align: center;
        flex-direction: column;
        gap: 14px;
    }

    .record-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .record-row .record-amount {
        grid-column: 2;
        text-align: left;
    }

    .record-row .status-chip {
        grid-column: 3;
        grid-row: 1;
    }

    .trust-strip {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .trust-strip > a {
        grid-column: 2;
    }

    .campaign-choice {
        grid-template-columns: minmax(0, 1fr);
    }

    .choice-graphic {
        min-height: 150px;
        margin: 16px 16px 0;
    }

    .campaign-choice .brand-button {
        grid-column: auto;
        margin: 0 16px 16px;
    }

    .campaign-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .verification-summary-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .verification-summary-card .status-chip {
        grid-column: 2;
        justify-self: start;
    }

    .balance-copy > strong {
        font-size: 34px;
    }
}

@media (max-width: 420px) {
    .metric-grid-four,
    .metric-grid-three {
        grid-template-columns: minmax(0, 1fr);
    }

    .metric-card {
        min-height: 100px;
        align-items: center;
        flex-direction: row;
    }

    .portal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-actions .brand-button {
        width: 100%;
    }

    .record-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .record-row .status-chip,
    .record-row .record-amount {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
    }

    .brand-button {
        width: 100%;
        text-align: center;
    }
}

/* ================================================================
   TIF CAMPAIGNER PORTAL UI v0.2.1
   DM Sans-only typography and calm glass-card design system.
   ================================================================ */

.app-page {
    --portal-glass: rgba(255, 255, 255, 0.74);
    --portal-glass-strong: rgba(255, 255, 255, 0.88);
    --portal-border: rgba(255, 255, 255, 0.82);
    --portal-purple-line: rgba(99, 71, 168, 0.13);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 79% -8%, rgba(99, 71, 168, 0.17), transparent 31rem),
        radial-gradient(circle at 100% 48%, rgba(245, 166, 35, 0.12), transparent 28rem),
        radial-gradient(circle at 42% 105%, rgba(113, 84, 158, 0.11), transparent 34rem),
        linear-gradient(145deg, #faf9fc 0%, #f5f2f8 48%, #faf7f2 100%);
    background-attachment: fixed;
}

.app-page .sidebar {
    inset: 12px auto 12px 12px;
    width: 268px;
    padding: 20px 16px 16px;
    border: 1px solid var(--portal-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.79);
    box-shadow:
        0 22px 65px rgba(28, 0, 65, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
}

.app-page .sidebar-head {
    min-height: 70px;
    padding: 0 8px;
}

.app-page .sidebar-brand {
    width: 184px;
    height: 60px;
}

.app-page .sidebar-start {
    min-height: 50px;
    margin-top: 19px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 15px;
    background: linear-gradient(135deg, #ffc45f 0%, var(--tif-orange) 58%, #ef9215 100%);
    box-shadow: 0 12px 28px rgba(245, 166, 35, 0.24);
}

.app-page .sidebar-start:hover {
    background: linear-gradient(135deg, #ffd17d 0%, #f7af32 58%, #f09a21 100%);
    box-shadow: 0 15px 32px rgba(245, 166, 35, 0.3);
}

.app-page .sidebar-nav {
    margin-top: 27px;
    gap: 7px;
}

.app-page .nav-label {
    margin: 0 14px 8px;
    color: #8e8795;
    font-size: 9px;
    font-weight: 700;
}

.app-page .nav-item {
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 14px;
    color: #68626f;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.app-page .nav-item:hover {
    color: var(--tif-purple);
    border-color: rgba(99, 71, 168, 0.08);
    background: rgba(255, 255, 255, 0.72);
    transform: translateX(2px);
}

.app-page .nav-item.active {
    color: var(--tif-purple-dark);
    border-color: rgba(99, 71, 168, 0.13);
    background: linear-gradient(135deg, rgba(99, 71, 168, 0.16), rgba(255, 255, 255, 0.72));
    box-shadow: 0 9px 22px rgba(99, 71, 168, 0.09);
}

.app-page .sidebar-support {
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(254, 243, 220, 0.88), rgba(255, 255, 255, 0.68));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.app-page .support-icon {
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(245, 166, 35, 0.2);
}

.app-page .app-shell {
    margin-left: 292px;
}

.app-page .topbar {
    top: 12px;
    min-height: 72px;
    margin: 12px 18px 0;
    padding: 0 clamp(18px, 2.5vw, 30px);
    border: 1px solid var(--portal-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 16px 45px rgba(28, 0, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

.app-page .topbar h1 {
    margin-top: 2px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.app-page .topbar-kicker {
    color: #857e8c;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.11em;
}

.app-page .profile-trigger {
    min-height: 50px;
    border-color: rgba(99, 71, 168, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 9px 24px rgba(28, 0, 65, 0.07);
}

.app-page .avatar {
    border-radius: 13px;
    background: linear-gradient(145deg, #8467bd, var(--tif-purple) 60%, #4e327f);
    box-shadow: 0 8px 18px rgba(99, 71, 168, 0.2);
}

.app-page .profile-dropdown {
    border-color: rgba(99, 71, 168, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 65px rgba(28, 0, 65, 0.16);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

.app-page .app-content {
    width: min(100%, 1430px);
    padding: 24px clamp(22px, 2.7vw, 38px) 46px;
}

.brand-label {
    font-weight: 700;
    letter-spacing: 0.13em;
}

.brand-button {
    min-height: 48px;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.brand-button:hover {
    transform: translateY(-2px);
}

.brand-button-accent {
    background: linear-gradient(135deg, #ffc45f 0%, var(--tif-orange) 62%, #ed9219 100%);
    box-shadow: 0 12px 26px rgba(245, 166, 35, 0.22);
}

.brand-button-primary {
    background: linear-gradient(135deg, #7659b4, var(--tif-purple) 56%, #4e347c);
    box-shadow: 0 12px 28px rgba(99, 71, 168, 0.2);
}

.portal-hero {
    min-height: 316px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 30px;
    padding: 46px 48px;
    background:
        radial-gradient(circle at 90% 8%, rgba(245, 166, 35, 0.3), transparent 28%),
        radial-gradient(circle at 58% 110%, rgba(255, 255, 255, 0.14), transparent 38%),
        linear-gradient(135deg, #7154a9 0%, #5e4098 45%, #32135c 100%);
    box-shadow: 0 28px 70px rgba(52, 26, 94, 0.2);
}

.portal-hero::before {
    width: 410px;
    height: 410px;
    right: -175px;
    top: -235px;
    border: 70px solid rgba(255, 255, 255, 0.1);
}

.portal-hero::after {
    width: 270px;
    height: 270px;
    left: 44%;
    bottom: -220px;
    border-color: rgba(245, 166, 35, 0.11);
}

.portal-hero h2 {
    max-width: 630px;
    margin: 14px 0 14px;
    font-size: clamp(35px, 3vw, 45px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.portal-hero-copy > p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.7;
}

.journey-graphic {
    width: min(100%, 350px);
    max-width: none;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 24px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.journey-line {
    top: 41px;
    bottom: 41px;
    left: 43px;
}

.journey-node > span {
    background: rgba(86, 55, 143, 0.76);
    box-shadow: 0 8px 18px rgba(21, 3, 51, 0.12);
}

.metric-grid {
    margin-top: 20px;
    gap: 16px;
}

.metric-card,
.panel-card,
.section-block,
.verification-summary-card,
.campaign-summary-card {
    border-color: var(--portal-border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64));
    box-shadow:
        0 16px 46px rgba(28, 0, 65, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
}

.metric-card {
    position: relative;
    min-height: 126px;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 71, 168, 0.08), transparent 68%);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgba(28, 0, 65, 0.1);
}

.metric-icon {
    width: 47px;
    height: 47px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(28, 0, 65, 0.07);
}

.metric-card > div > span {
    font-size: 9px;
    letter-spacing: 0.09em;
}

.metric-card strong {
    margin-top: 5px;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.portal-grid {
    gap: 20px;
}

.portal-grid-main {
    margin-top: 20px;
}

.panel-card,
.section-block {
    border-radius: 28px;
    padding: 29px;
}

.panel-heading h3,
.section-heading h3 {
    margin-top: 8px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.record-row {
    min-height: 78px;
    border-color: rgba(99, 71, 168, 0.1);
    border-radius: 14px;
    padding: 12px 10px;
    transition: background 160ms ease;
}

.record-row:hover {
    background: rgba(237, 230, 245, 0.42);
}

.record-symbol {
    border-radius: 13px;
}

.compact-empty {
    min-height: 242px;
}

.journey-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(99, 71, 168, 0.1), transparent 15rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66));
}

.launch-checklist li > span,
.eligibility-list li > span {
    border-color: rgba(99, 71, 168, 0.14);
    box-shadow: 0 6px 15px rgba(28, 0, 65, 0.06);
}

.trust-strip {
    margin-top: 20px;
    border-color: var(--portal-border);
    border-radius: 22px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(237, 230, 245, 0.76), rgba(255, 255, 255, 0.68));
    box-shadow:
        0 14px 38px rgba(28, 0, 65, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
}

.trust-strip-icon {
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(99, 71, 168, 0.2);
}

.page-lead {
    min-height: 234px;
    border-color: var(--portal-border);
    border-radius: 30px;
    padding: 40px 44px;
    background:
        radial-gradient(circle at 88% 16%, rgba(245, 166, 35, 0.2), transparent 16rem),
        radial-gradient(circle at 62% 110%, rgba(99, 71, 168, 0.13), transparent 22rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.91), rgba(237, 230, 245, 0.72));
    box-shadow:
        0 22px 62px rgba(28, 0, 65, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

.page-lead h2 {
    font-size: clamp(34px, 3vw, 43px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.stack-card-back,
.stack-card-middle,
.stack-card-front {
    box-shadow: 0 18px 36px rgba(28, 0, 65, 0.12);
}

.section-block {
    margin-top: 20px;
    scroll-margin-top: 112px;
}

.campaign-type-grid {
    gap: 20px;
}

.campaign-choice {
    border-color: rgba(99, 71, 168, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow:
        0 14px 38px rgba(28, 0, 65, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.campaign-choice:hover {
    border-color: rgba(99, 71, 168, 0.22);
    box-shadow: 0 22px 52px rgba(28, 0, 65, 0.1);
    transform: translateY(-3px);
}

.choice-graphic {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(237, 230, 245, 0.92), rgba(255, 255, 255, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ngo-choice .choice-graphic {
    background: linear-gradient(145deg, rgba(254, 243, 220, 0.95), rgba(255, 255, 255, 0.64));
}

.campaign-summary-card {
    border-radius: 21px;
    padding: 20px;
}

.campaign-money-row {
    border-color: rgba(99, 71, 168, 0.09);
    border-radius: 14px;
    background: rgba(250, 248, 252, 0.72);
}

.verification-overview {
    gap: 16px;
}

.verification-summary-card {
    min-height: 124px;
    border-radius: 22px;
    padding: 20px;
}

.verification-number {
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 18px rgba(99, 71, 168, 0.09);
}

.privacy-card {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 166, 35, 0.2), transparent 18rem),
        linear-gradient(145deg, #2d0e55, #1c0041 68%);
    box-shadow: 0 24px 58px rgba(28, 0, 65, 0.24);
}

.balance-hero {
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    padding: 42px 48px;
    background:
        radial-gradient(circle at 88% 16%, rgba(245, 166, 35, 0.22), transparent 19rem),
        radial-gradient(circle at 52% 110%, rgba(255, 255, 255, 0.1), transparent 23rem),
        linear-gradient(135deg, #32135c, #1c0041 70%);
    box-shadow: 0 28px 68px rgba(28, 0, 65, 0.2);
}

.balance-copy > strong {
    font-size: 43px;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.balance-circle {
    background: rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.app-page .app-footer {
    margin: 0 18px 12px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .app-page .sidebar,
    .app-page .topbar,
    .app-page .profile-dropdown,
    .metric-card,
    .panel-card,
    .section-block,
    .verification-summary-card,
    .campaign-summary-card,
    .page-lead,
    .trust-strip {
        background-color: #ffffff;
    }
}

@media (max-width: 1180px) {
    .app-page .sidebar {
        width: 248px;
    }

    .app-page .app-shell {
        margin-left: 272px;
    }

    .portal-hero {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 32px;
        padding: 40px;
    }
}

@media (max-width: 900px) {
    .app-page .sidebar {
        inset: 10px auto 10px 10px;
        width: min(86vw, 286px);
    }

    .app-page .app-shell {
        margin-left: 0;
    }

    .app-page .topbar {
        top: 8px;
        margin: 8px 12px 0;
    }

    .app-page .app-content {
        padding-top: 20px;
    }

    .portal-hero {
        grid-template-columns: minmax(0, 1fr) 270px;
        padding: 34px;
    }

    .portal-hero h2 {
        font-size: 35px;
    }
}

@media (max-width: 720px) {
    .app-page .topbar {
        min-height: 68px;
        border-radius: 18px;
        padding: 0 12px;
    }

    .app-page .app-content {
        padding: 16px 13px 32px;
    }

    .portal-hero,
    .page-lead,
    .balance-hero {
        border-radius: 24px;
        padding: 28px 24px;
    }

    .portal-hero h2,
    .page-lead h2 {
        font-size: 32px;
    }

    .journey-graphic {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.17);
        padding: 16px;
    }

    .journey-line {
        top: 39px;
        left: 39px;
    }

    .metric-grid,
    .portal-grid-main,
    .section-block,
    .campaign-library,
    .verification-overview {
        margin-top: 14px;
    }

    .metric-card {
        min-height: 134px;
        border-radius: 20px;
        padding: 18px;
    }

    .panel-card,
    .section-block {
        border-radius: 22px;
        padding: 22px;
    }

    .panel-heading h3,
    .section-heading h3 {
        font-size: 23px;
    }

    .campaign-choice {
        border-radius: 21px;
    }

    .app-page .app-footer {
        margin: 0 12px 10px;
    }
}

@media (max-width: 420px) {
    .app-page .topbar-kicker {
        display: none;
    }

    .app-page .topbar h1 {
        margin: 0;
        font-size: 19px;
    }

    .portal-hero,
    .page-lead,
    .balance-hero {
        padding: 25px 21px;
    }

    .portal-hero h2,
    .page-lead h2 {
        font-size: 29px;
    }

    .metric-card {
        min-height: 106px;
        align-items: center;
        flex-direction: row;
    }
}
