:root {
    --primary: #0057B8;
    --primary-dark: #003f86;
    --secondary: #FDB913;
    --success: #16A34A;
    --warning: #F59E0B;
    --error: #DC2626;
    --text: #111827;
    --muted: #6B7280;
    --line: #E5E7EB;
    --soft: #F7F8FA;
    --soft-blue: #EEF6FF;
    --surface: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, .06);
    --radius: 12px;
    --radius-lg: 16px;
    font-family: Inter, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--soft);
    font-family: Inter, system-ui, sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 0 clamp(24px, 5vw, 80px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transition: box-shadow .25s ease, min-height .25s ease;
}

.site-header.is-scrolled {
    min-height: 60px;
    box-shadow: var(--shadow);
}

.brand,
.top-nav,
.header-action {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
}

.brand-mark,
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.top-nav {
    gap: 28px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.top-nav a:hover {
    color: var(--primary);
}

.page {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 56px clamp(24px, 5vw, 80px) 80px;
}

.invite-hero,
.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.dashboard-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(253, 185, 19, .2);
    color: #6b4c00;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

h1,
h2 {
    margin: 0;
    color: var(--text);
    letter-spacing: -1px;
}

h1 {
    max-width: 780px;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.06;
}

h1 strong {
    color: var(--primary);
}

h2 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.14;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.benefit-grid,
.metric-grid,
.field-grid {
    display: grid;
    gap: 16px;
}

.benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.benefit-grid article {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 4px 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.benefit-grid span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--soft-blue);
    color: var(--primary);
    font-weight: 800;
}

.benefit-grid small {
    color: var(--muted);
    line-height: 1.45;
}

.hero-card,
.panel,
.registration-panel,
.metric-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
}

.photo-band {
    min-height: 300px;
    background:
        linear-gradient(rgba(0, 87, 184, .08), rgba(0, 87, 184, .08)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.reward-box {
    padding: 24px;
}

.reward-box div:first-child {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--success);
}

.registration-panel {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 36px;
    padding: clamp(24px, 4vw, 40px);
}

.form-intro p {
    margin-bottom: 0;
}

.registration-form,
.form-stack {
    display: grid;
    gap: 18px;
}

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

label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 87, 184, .12);
}

.terms {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.terms input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

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

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

.button-primary:hover {
    background: var(--primary-dark);
}

.button-outline {
    border-color: var(--primary);
    background: #fff;
    color: var(--primary);
}

.button-outline:hover {
    background: var(--soft-blue);
}

.button-cta {
    background: var(--secondary);
    color: #07224A;
}

.button-wide {
    grid-column: 1 / -1;
    width: 100%;
}

.auth-layout {
    display: grid;
    min-height: calc(100vh - 72px);
    place-items: center;
    padding: 40px 24px;
}

.compact-panel {
    width: min(520px, 100%);
}

.panel {
    padding: 28px;
}

.two-column,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    margin-bottom: 24px;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.metric-card {
    padding: 22px;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 18px 0;
}

.icon-button {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    font-weight: 800;
}

.qr-code {
    display: block;
    width: 220px;
    height: 220px;
    margin: 8px auto 22px;
    border: 12px solid #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}

th {
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.badge,
.level-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge.success {
    background: rgba(22, 163, 74, .12);
    color: var(--success);
}

.badge.warning {
    background: rgba(245, 158, 11, .14);
    color: #8a5800;
}

.level-list,
.message-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 22px;
    padding: 0;
    list-style: none;
}

.level-pill {
    background: color-mix(in srgb, var(--level-color) 14%, white);
    color: var(--level-color);
}

.message-list li {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.message-list span {
    color: var(--muted);
    font-size: 12px;
}

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

.flash {
    position: fixed;
    left: 50%;
    top: 18px;
    z-index: 50;
    width: min(640px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 14px 18px;
    border: 1px solid rgba(0, 87, 184, .18);
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
    font-weight: 700;
    transition: opacity .25s ease, transform .25s ease;
}

.flash.is-hiding {
    transform: translate(-50%, -8px);
    opacity: 0;
    pointer-events: none;
}

.simple-invite-page {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: #fff;
}

.simple-invite-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    background: #fff;
}

.simple-invite-top {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    background: linear-gradient(180deg, var(--primary) 0%, #020381 100%);
    border-bottom: 5px solid var(--secondary);
}

.simple-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(230px, 76vw);
    height: 86px;
}

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

.simple-registration-form {
    display: grid;
    gap: 20px;
    padding: 26px 28px 12px;
}

.simple-form-head {
    margin-bottom: 4px;
    text-align: center;
}

.simple-form-head .inviter-line {
    width: fit-content;
    margin: 0 auto 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(253, 185, 19, .22);
    color: #735200;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.simple-form-head h1 {
    max-width: none;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
}

.simple-form-head p {
    margin: 10px 0 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.45;
}

.simple-registration-form label {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.simple-registration-form label span {
    color: #ef476f;
}

.input-with-icon {
    position: relative;
    margin-top: 9px;
}

.input-with-icon i {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 1;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background: var(--primary);
    color: transparent;
    font-size: 0;
    font-style: normal;
    -webkit-mask: var(--icon) center / 21px 21px no-repeat;
    mask: var(--icon) center / 21px 21px no-repeat;
}

.input-with-icon .icon-phone {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.77.63 2.61a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.47-1.2a2 2 0 0 1 2.11-.45c.84.3 1.71.51 2.61.63A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    background: #16A34A;
}

.input-with-icon .icon-user {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.input-with-icon .icon-users {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.input-with-icon .icon-calendar {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
    background: #F59E0B;
}

.input-with-icon .icon-gender {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='14' r='5'/%3E%3Cpath d='M19 5h-5'/%3E%3Cpath d='M14 5v5'/%3E%3Cpath d='M14 5l-4.5 4.5'/%3E%3Cpath d='M10 19v3'/%3E%3Cpath d='M7 22h6'/%3E%3C/svg%3E");
    background: #6D5BD0;
}

.input-with-icon .icon-pin {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background: #10B981;
}

.input-with-icon input,
.input-with-icon select {
    min-height: 52px;
    padding-left: 46px;
    border-color: #e6e8ec;
    border-radius: 7px;
    color: #111827;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.input-with-icon input::placeholder {
    color: #8b95a5;
}

.input-with-icon select {
    appearance: auto;
    color: #374151;
}

.simple-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: -6px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.simple-check input {
    width: 18px;
    min-height: 18px;
    margin-top: 1px;
    border-radius: 5px;
    accent-color: var(--primary);
}

.simple-check a,
.already-registered a,
.simple-invite-footer a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
}

.simple-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.simple-submit:hover {
    background: var(--primary-dark);
}

.already-registered {
    margin: -2px 0 2px;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.simple-invite-footer {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 8px 28px 28px;
    color: #374151;
    font-size: 13px;
    text-align: center;
}

.simple-invite-footer span {
    color: var(--success);
    font-weight: 800;
}

.verify-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background: #fff;
}

.verify-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 430px);
    min-height: 120px;
    padding: 24px;
    background: linear-gradient(180deg, var(--primary) 0%, #020381 100%);
    border-bottom: 5px solid var(--secondary);
}

.verify-shell {
    display: grid;
    justify-items: center;
    width: min(100%, 430px);
    margin: 0;
    padding: 34px 28px 28px;
}

.verify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 87, 184, .12);
}

.verify-icon svg {
    width: 34px;
    height: 34px;
}

.verify-copy {
    max-width: 340px;
    margin-bottom: 28px;
    text-align: center;
}

.verify-copy h1 {
    max-width: none;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

.verify-copy p {
    margin: 12px 0 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.55;
}

.verify-copy strong {
    color: #111827;
    font-weight: 800;
}

.verify-card {
    display: grid;
    justify-items: center;
    width: 100%;
    padding: 30px 0 18px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.verify-card label {
    margin-bottom: 18px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
    width: 100%;
    margin-bottom: 24px;
}

.otp-grid input {
    min-height: 52px;
    padding: 0;
    border-color: #e6e8ec;
    border-radius: 7px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.verify-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.verify-submit::after {
    content: "→";
    margin-left: 10px;
    font-size: 17px;
}

.verify-submit:hover {
    background: var(--primary-dark);
}

.resend-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 2px;
    transform: none;
    color: #374151;
    font-size: 13px;
}

.resend-form button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.verify-footer {
    display: grid;
    justify-items: center;
    gap: 18px;
    margin-top: 34px;
    width: 100%;
    padding-top: 18px;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

.verify-footer span::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 1px solid #374151;
    border-radius: 2px;
    vertical-align: -1px;
}

.verify-footer i {
    display: block;
    width: 64px;
    height: 1px;
    background: #d1d5db;
}

.verify-footer small,
.verify-footer a {
    color: #374151;
    font-size: 12px;
}

.verify-footer a {
    font-weight: 700;
}

.participant-page {
    min-height: 100vh;
    padding-bottom: 86px;
    background: #f7f8fa;
    color: var(--text);
}

.participant-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    background: linear-gradient(180deg, var(--primary) 0%, #020381 100%);
    border-bottom: 5px solid var(--secondary);
    box-shadow: 0 1px 8px rgba(17, 24, 39, .08);
}

.participant-logo {
    display: inline-flex;
    justify-content: center;
    width: min(230px, 76vw);
    height: 86px;
}

.participant-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.participant-content {
    display: grid;
    gap: 16px;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 16px 16px 26px;
}

.password-card,
.level-card,
.participant-card,
.participant-stats article {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(17, 24, 39, .04);
}

.password-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-color: rgba(0, 87, 184, .22);
    background: var(--soft-blue);
}

.password-card > span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.password-card small {
    color: #374151;
    font-size: 12px;
    line-height: 1.4;
}

.copy-row.compact {
    margin: 0;
}

.level-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: hidden;
    background: var(--primary);
    color: #fff;
}

.level-card span {
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.level-card h1 {
    margin-top: 4px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
}

.level-card p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.5;
}

.level-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.level-progress strong {
    color: #fff;
}

.level-card .progress {
    background: rgba(255,255,255,.26);
}

.level-card .progress span {
    background: #fff;
}

.participant-stats {
    display: grid;
    gap: 12px;
}

.participant-stats article {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.participant-stats span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.participant-stats strong {
    color: #111827;
    font-size: 32px;
    line-height: 1;
}

.participant-stats small {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.participant-grid {
    display: grid;
    gap: 16px;
}

.participant-card {
    padding: 18px;
}

.participant-card h2 {
    font-size: 22px;
    letter-spacing: 0;
}

.participant-card p {
    margin: 8px 0 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.invite-card textarea {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.share-actions {
    display: grid;
    gap: 10px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-weight: 900;
}

.qr-panel {
    display: grid;
    justify-items: center;
    text-align: center;
}

.qr-panel .qr-code {
    margin: 0;
}

.qr-code-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.qr-code-wrap .qr-code {
    border: 8px solid #fff;
    box-shadow: none;
}

.qr-center-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    border: 4px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 87, 184, .2);
}

.activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.activity-head h2 {
    font-size: 22px;
}

.activity-head a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.activity-list {
    display: grid;
}

.activity-list article {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary);
    font-weight: 900;
}

.activity-list strong {
    display: block;
    color: #111827;
    font-size: 13px;
}

.activity-list small {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}

.activity-list b {
    width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--primary);
    font-size: 11px;
}

.participant-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 8px;
    min-height: 68px;
    padding: 10px 16px;
    background: linear-gradient(180deg, var(--primary) 0%, #020381 100%);
    border-top: 5px solid var(--secondary);
}

.participant-bottom-nav a {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 44px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.participant-bottom-nav a.active {
    background: var(--secondary);
    color: #020381;
}

.participant-bottom-nav a.active .nav-icon,
.participant-bottom-nav a.active span {
    color: #020381;
}

.nav-icon {
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--nav-icon) center / 20px 20px no-repeat;
    mask: var(--nav-icon) center / 20px 20px no-repeat;
}

.nav-home {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.nav-link {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07L11.5 4.43'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0L4.1 13.83a5 5 0 1 0 7.07 7.07l1.33-1.33'/%3E%3C/svg%3E");
}

.nav-network {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Ccircle cx='5' cy='19' r='3'/%3E%3Ccircle cx='19' cy='19' r='3'/%3E%3Cpath d='M10.5 7.6 6.5 16.4'/%3E%3Cpath d='m13.5 7.6 4 8.8'/%3E%3Cpath d='M8 19h8'/%3E%3C/svg%3E");
}

@media (min-width: 760px) {
    .participant-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 24px 32px 34px;
    }

    .password-card,
    .level-card,
    .participant-grid,
    .activity-card {
        grid-column: 1 / -1;
    }

    .participant-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .level-card {
        grid-template-columns: 1fr minmax(260px, .4fr);
        align-items: end;
    }
}

@media (min-width: 700px) {
    .verify-page {
        align-items: flex-start;
        align-items: center;
        padding: 28px 0;
        background: #f1f3f5;
    }

    .verify-page::before {
        content: "";
        position: fixed;
        inset: 0;
        background: #f1f3f5;
        z-index: -1;
    }

    .verify-page > .verify-topbar,
    .verify-page > .verify-shell {
        width: min(100%, 430px);
        background-color: #fff;
    }

    .verify-page > .verify-topbar {
        overflow: hidden;
        border: 1px solid var(--line);
        border-bottom: 5px solid var(--secondary);
        border-radius: 18px 18px 0 0;
        background: linear-gradient(180deg, var(--primary) 0%, #020381 100%);
    }

    .verify-page > .verify-shell {
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 18px 18px;
        box-shadow: var(--shadow);
    }
}

/* Administrative dashboard based on the Stitch Campaign Referral System. */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.admin-app {
    --admin-primary: #0057B8;
    --admin-accent: #FDB913;
    --admin-navy: #020381;
    --admin-success: #16A34A;
    --admin-muted: #64748b;
    --admin-outline: #d7e0dc;
    --admin-soft: #eff4ff;
    min-height: 100vh;
    background: #f8f9ff;
    color: var(--admin-navy);
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 256px;
    padding: 36px 0 24px;
    border-right: 0;
    background: linear-gradient(180deg, var(--admin-primary) 0%, #020381 100%);
    box-shadow: 8px 0 28px rgba(2, 3, 129, .12);
}

.admin-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    margin: 0 24px;
    padding: 8px 14px;
}

.admin-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 24px;
    padding: 0 24px;
}

.admin-profile div,
.admin-person p {
    display: grid;
    gap: 2px;
    margin: 0;
}

.admin-profile strong,
.admin-person strong {
    font-size: 13px;
}

.admin-profile strong {
    color: #fff;
}

.admin-profile small,
.admin-person small {
    color: var(--admin-muted);
    font-size: 10px;
}

.admin-profile small {
    color: rgba(255, 255, 255, .72);
}

.admin-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--admin-accent);
    color: #020381;
    font-weight: 900;
}

.admin-avatar.light {
    width: 44px;
    height: 44px;
    border: 2px solid var(--admin-primary);
    background: #fff;
    color: var(--admin-primary);
}

.admin-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 24px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.admin-nav a.active {
    margin-right: 12px;
    border-radius: 0 999px 999px 0;
    background: var(--admin-accent);
    color: #020381;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.admin-settings-link {
    margin-top: auto;
}

.admin-main {
    width: min(1280px, calc(100% - 256px));
    margin-left: 256px;
    padding: 32px;
}

.admin-topbar,
.admin-top-actions,
.admin-kpi-head,
.admin-card-heading,
.admin-section-head,
.admin-goal-card > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-topbar {
    margin-bottom: 34px;
}

.admin-topbar h1 {
    font-size: 26px;
    letter-spacing: -.02em;
}

.admin-topbar p,
.admin-card-heading p,
.admin-section-head p,
.admin-top-referrer > p {
    margin: 4px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.5;
}

.admin-primary-button,
.admin-icon-button,
.admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.admin-primary-button {
    padding: 0 18px;
    background: var(--admin-primary);
    color: #fff;
}

.admin-icon-button {
    width: 40px;
    color: #3c4a42;
}

.admin-logout {
    padding: 0 10px;
    color: var(--admin-muted);
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-kpis article,
.admin-card,
.admin-top-referrer {
    border: 1px solid var(--admin-outline);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(11, 28, 48, .05);
}

.admin-kpis article {
    padding: 24px;
}

.admin-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

.admin-kpi-icon.green {
    background: rgba(0, 87, 184, .12);
    color: var(--admin-primary);
}

.admin-kpi-icon.amber {
    background: rgba(245, 158, 11, .14);
    color: #855300;
}

.admin-kpi-icon.navy {
    background: #e5eeff;
    color: #3c475a;
}

.admin-kpi-head em {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 87, 184, .08);
    color: var(--admin-primary);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.admin-kpis article > small {
    display: block;
    margin-top: 18px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
}

.admin-kpis article > strong {
    display: block;
    margin-top: 4px;
    font-size: 31px;
}

.admin-bento {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.admin-card {
    padding: 24px;
}

.admin-card h2,
.admin-goal-card h2 {
    font-size: 20px;
    letter-spacing: -.01em;
}

.admin-card-heading > span {
    padding: 5px 10px;
    border: 1px solid var(--admin-primary);
    border-radius: 999px;
    color: var(--admin-primary);
    font-size: 10px;
    font-weight: 800;
}

.admin-growth-card {
    min-height: 360px;
}

.admin-chart {
    display: flex;
    align-items: stretch;
    gap: 16px;
    height: 250px;
    padding: 36px 10px 0;
}

.admin-chart-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    height: 100%;
}

.admin-chart-column i {
    width: 100%;
    max-width: 52px;
    min-height: 6px;
    border-radius: 7px 7px 2px 2px;
    background: var(--admin-primary);
    transition: height .8s ease;
}

.admin-chart-column b,
.admin-chart-column small {
    color: var(--admin-muted);
    font-size: 9px;
    font-style: normal;
}

.admin-side-cards {
    display: grid;
    gap: 24px;
}

.admin-goal-card {
    padding: 24px;
    border-radius: 12px;
    background: var(--admin-primary);
    color: #fff;
    background: linear-gradient(145deg, var(--admin-primary), #020381);
    box-shadow: 0 10px 24px rgba(2, 3, 129, .18);
}

.admin-goal-card,
.admin-goal-card h2,
.admin-goal-card small,
.admin-goal-card strong,
.admin-goal-card span {
    color: #fff;
}

.admin-goal-card > small,
.admin-top-referrer > small {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.admin-goal-track {
    height: 10px;
    margin: 20px 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.admin-goal-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--admin-accent);
}

.admin-goal-card strong,
.admin-goal-card span {
    font-size: 10px;
}

.admin-top-referrer {
    padding: 22px;
    background: #dce9ff;
}

.admin-top-referrer > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-top-referrer p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.admin-top-referrer p strong {
    font-size: 13px;
}

.admin-top-referrer p b {
    color: var(--admin-primary);
    font-size: 11px;
}

.admin-activity {
    margin-bottom: 24px;
    padding: 0;
    overflow: hidden;
}

.admin-section-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--admin-outline);
}

.admin-section-head a {
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 800;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-activity table {
    min-width: 820px;
}

.admin-activity th {
    background: #eff4ff;
}

.admin-activity td,
.admin-activity th {
    padding: 13px 24px;
    font-size: 11px;
}

.admin-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-person > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d8e3fb;
    color: #111c2d;
    font-weight: 900;
}

.admin-campaign-chip {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 4px;
    background: #d8e3fb;
    color: #3c475a;
    font-size: 9px;
    text-transform: uppercase;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
}

.admin-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.admin-status.complete {
    color: var(--admin-success);
}

.admin-status.complete i {
    background: var(--admin-success);
}

.admin-status.pending {
    color: #855300;
}

.admin-status.pending i {
    background: #e29100;
}

.admin-settings {
    margin-bottom: 32px;
}

.admin-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 22px;
}

.admin-settings-form .wide,
.admin-settings-form .admin-primary-button {
    grid-column: 1 / -1;
}

.admin-settings-form .admin-primary-button {
    width: fit-content;
}

.admin-leader-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.admin-leader-card {
    position: relative;
    display: flex;
    min-height: 168px;
    gap: 18px;
    overflow: hidden;
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(145deg, #0057B8, #020381);
    color: #fff;
    box-shadow: 0 12px 26px rgba(2, 3, 129, .16);
}

.admin-leader-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(253, 185, 19, .16);
}

.admin-leader-card > .material-symbols-outlined {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--admin-accent);
    color: #020381;
    font-size: 24px;
}

.admin-leader-card div {
    position: relative;
    z-index: 1;
}

.admin-leader-card small {
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.admin-leader-card h2 {
    margin-top: 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
}

.admin-leader-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.4;
}

.admin-leader-card p strong {
    color: #fff;
    font-size: 18px;
}

.admin-insight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(145deg, #0057B8, #020381);
    color: #fff;
}

.admin-insight-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--admin-accent);
    color: #020381;
}

.admin-insight-card small,
.admin-insight-card strong {
    display: block;
    color: #fff;
}

.admin-insight-card small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-insight-card strong {
    margin-top: 3px;
    font-size: 26px;
}

.admin-insight-card p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    line-height: 1.4;
}

.admin-campaign-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0057B8, #020381);
    color: #fff;
    box-shadow: 0 14px 30px rgba(2, 3, 129, .18);
}

.admin-campaign-hero small,
.admin-campaign-hero h2,
.admin-campaign-hero p,
.admin-campaign-hero strong,
.admin-campaign-hero span {
    color: #fff;
}

.admin-campaign-hero small {
    color: var(--admin-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-campaign-hero h2 {
    margin-top: 8px;
    font-size: 28px;
}

.admin-campaign-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.admin-campaign-hero > div:last-child {
    display: grid;
    min-width: 130px;
    text-align: right;
}

.admin-campaign-hero > div:last-child strong {
    font-size: 38px;
}

.admin-campaign-hero > div:last-child span {
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
}

.admin-ranking {
    padding: 0;
    overflow: hidden;
}

.admin-ranking table {
    min-width: 700px;
}

.admin-rank-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5eeff;
    color: var(--admin-primary);
}

.admin-ranking tbody tr:first-child .admin-rank-position {
    background: var(--admin-accent);
    color: #020381;
}

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

.admin-system-card {
    display: grid;
    gap: 20px;
    min-height: 260px;
    align-content: start;
    padding: 28px;
    border: 1px solid var(--admin-outline);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 28, 48, .06);
}

.admin-system-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e5eeff;
    color: var(--admin-primary);
    font-size: 26px;
}

.admin-system-card small {
    color: var(--admin-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-system-card h2 {
    margin-top: 8px;
    font-size: 21px;
}

.admin-system-card p {
    margin-bottom: 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.6;
}

.admin-system-card a {
    color: var(--admin-primary);
    font-weight: 800;
}

.whatsapp-status-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: 26px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0057B8, #020381);
    color: #fff;
    box-shadow: 0 14px 30px rgba(2, 3, 129, .18);
}

.whatsapp-status-card > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--admin-accent);
    color: #020381;
    font-size: 28px;
}

.whatsapp-status-card small,
.whatsapp-status-card h2,
.whatsapp-status-card p {
    color: #fff;
}

.whatsapp-status-card small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.whatsapp-status-card h2 {
    margin-top: 4px;
    font-size: 23px;
}

.whatsapp-status-card p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.5;
}

.whatsapp-status-card > b {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 10px;
    letter-spacing: .06em;
}

.whatsapp-status-card.enabled > b {
    background: var(--admin-accent);
    color: #020381;
}

.whatsapp-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.admin-section-head.no-gutter {
    padding: 0 0 20px;
}

.admin-settings-form.single {
    grid-template-columns: 1fr;
    padding-top: 0;
}

.whatsapp-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    border-radius: 9px;
    background: #eff4ff;
}

.whatsapp-toggle input {
    width: 20px;
    min-height: 20px;
    accent-color: var(--admin-primary);
}

.whatsapp-steps-card ol {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.whatsapp-steps-card li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.whatsapp-steps-card li > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.whatsapp-steps-card strong {
    font-size: 13px;
}

.whatsapp-steps-card p {
    margin: 3px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.5;
}

.whatsapp-template-section {
    margin-bottom: 24px;
}

.whatsapp-template-section .admin-section-head form {
    flex: 0 0 auto;
}

.whatsapp-template-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    padding-top: 22px;
}

.whatsapp-empty {
    margin-bottom: 0;
    padding: 16px;
    border-radius: 10px;
    background: #eff4ff;
    color: var(--admin-muted);
    font-size: 13px;
}

.whatsapp-test-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
}

.whatsapp-test-copy {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.whatsapp-test-copy > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #e5eeff;
    color: var(--admin-primary);
    font-size: 25px;
}

.whatsapp-test-copy h2 {
    font-size: 20px;
}

.whatsapp-test-copy p {
    margin: 6px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.55;
}

.whatsapp-test-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.whatsapp-test-form .admin-primary-button {
    white-space: nowrap;
}

.admin-users-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0057B8, #020381);
    color: #fff;
    box-shadow: 0 14px 30px rgba(2, 3, 129, .18);
}

.admin-users-summary > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-users-summary > div > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--admin-accent);
    color: #020381;
    font-size: 27px;
}

.admin-users-summary small,
.admin-users-summary h2,
.admin-users-summary p {
    color: #fff;
}

.admin-users-summary small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-users-summary h2 {
    margin-top: 4px;
    font-size: 24px;
}

.admin-users-summary p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
}

.admin-users-summary > .admin-primary-button {
    background: var(--admin-accent);
    color: #020381;
}

.admin-create-user {
    margin-bottom: 24px;
    padding: 0 24px 24px;
}

.admin-create-user .admin-section-head {
    padding-inline: 0;
}

.admin-user-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding-top: 20px;
}

.admin-users-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-user-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-outline);
}

.admin-user-card-head > div {
    display: grid;
    gap: 3px;
}

.admin-user-card-head small {
    color: var(--admin-primary);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-user-card-head strong {
    font-size: 14px;
}

.admin-user-card-head > b {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(22, 163, 74, .1);
    color: var(--admin-success);
    font-size: 9px;
}

.admin-user-edit-form {
    display: grid;
    gap: 14px;
}

.admin-user-edit-form .copy-row {
    margin: 0;
}

.admin-user-edit-form .admin-primary-button {
    width: fit-content;
}

.admin-activity code {
    color: var(--admin-muted);
    font-size: 10px;
}

@media (max-width: 960px) {
    .admin-sidebar {
        position: static;
        width: 100%;
        padding: 18px 16px 0;
        border-right: 0;
        border-bottom: 5px solid var(--admin-accent);
    }

    .admin-brand {
        justify-content: flex-start;
        width: 176px;
        height: 62px;
        margin: 0;
        padding: 4px 0;
    }

    .admin-profile {
        position: absolute;
        right: 16px;
        top: 12px;
        margin: 0;
        padding: 0;
    }

    .admin-profile div {
        display: none;
    }

    .admin-nav {
        flex-direction: row;
        margin-top: 16px;
        overflow-x: auto;
    }

    .admin-nav a,
    .admin-nav a.active {
        flex: 0 0 auto;
        margin: 0;
        padding: 0 14px;
        border-radius: 8px 8px 0 0;
    }

    .admin-settings-link {
        margin-top: 0;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .admin-main {
        padding: 20px 16px;
    }

    .admin-topbar {
        align-items: flex-start;
    }

    .admin-top-actions .admin-icon-button,
    .admin-top-actions .admin-primary-button {
        display: none;
    }

    .admin-kpis,
    .admin-leader-grid,
    .admin-bento,
    .admin-settings-form,
    .admin-system-grid {
        grid-template-columns: 1fr;
    }

    .admin-campaign-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .admin-campaign-hero > div:last-child {
        text-align: left;
    }

    .admin-settings-form .wide,
    .admin-settings-form .admin-primary-button {
        grid-column: auto;
    }

    .whatsapp-config-grid,
    .whatsapp-template-form,
    .whatsapp-test-section,
    .whatsapp-test-form,
    .admin-user-form,
    .admin-users-grid {
        grid-template-columns: 1fr;
    }

    .admin-users-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .whatsapp-status-card {
        grid-template-columns: auto 1fr;
    }

    .whatsapp-status-card > b {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .whatsapp-template-section .admin-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-chart {
        gap: 7px;
        height: 220px;
        padding-inline: 0;
    }
}

@media (min-width: 700px) {
    .simple-invite-page {
        align-items: flex-start;
        padding: 28px 0;
        background: #f1f3f5;
    }

    .simple-invite-shell {
        min-height: auto;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 1024px) {
    .invite-hero,
    .registration-panel,
    .two-column,
    .admin-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .site-header {
        padding: 0 24px;
    }

    .top-nav {
        display: none;
    }

    .page {
        padding-top: 32px;
    }

    .invite-hero,
    .dashboard-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .registration-form,
    .benefit-grid,
    .metric-grid,
    .field-grid,
    .copy-row {
        grid-template-columns: 1fr;
    }

    .photo-band {
        min-height: 220px;
    }

    .dashboard-hero {
        padding: 24px;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 34px;
    }

    .panel,
    .registration-panel {
        padding: 20px;
    }
}

/* The three core screens keep the same app-like composition on desktop. */
.participant-page {
    width: min(100%, 430px);
    margin: 0 auto;
}

@media (min-width: 760px) {
    .participant-content {
        grid-template-columns: 1fr;
        padding: 16px 16px 26px;
    }

    .password-card,
    .level-card,
    .participant-grid,
    .activity-card,
    .participant-stats {
        grid-column: auto;
    }

    .participant-stats,
    .participant-grid,
    .level-card {
        grid-template-columns: 1fr;
    }
}

.participant-bottom-nav {
    left: 50%;
    right: auto;
    width: min(100%, 430px);
    transform: translateX(-50%);
}

.participant-top {
    position: relative;
}

.participant-logout {
    position: absolute;
    right: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.points-stat {
    border-color: rgba(253, 185, 19, .5) !important;
    background: #fffbeb !important;
}

.points-stat strong {
    color: #735200 !important;
}

.activity-head > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.login-form {
    align-content: start;
    min-height: 500px;
    padding-top: 42px;
}

.flash.error {
    border-color: rgba(220, 38, 38, .25);
    color: var(--error);
}

.flash.success {
    border-color: rgba(22, 163, 74, .25);
    color: var(--success);
}

.compact-panel code {
    display: block;
    overflow-wrap: anywhere;
    padding: 12px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #374151;
    font-size: 12px;
}

@media (min-width: 700px) {
    body {
        background: #f1f3f5;
    }

    .participant-page {
        margin-top: 28px;
        margin-bottom: 28px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .participant-top {
        border-radius: 18px 18px 0 0;
    }
}
