:root {
    color-scheme: dark;
    --bg: #050b13;
    --bg-soft: #081421;
    --panel: rgba(12, 27, 43, 0.88);
    --panel-strong: #0d1c2c;
    --panel-raised: #12263a;
    --line: rgba(141, 189, 214, 0.16);
    --line-strong: rgba(68, 218, 204, 0.35);
    --text: #eef7f8;
    --muted: #91a9b5;
    --primary: #44dacc;
    --primary-strong: #26b9b1;
    --accent: #f1ba68;
    --danger: #ff7b79;
    --success: #64dfaa;
    --info: #70b7ff;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(46, 157, 168, 0.16), transparent 30rem),
        radial-gradient(circle at 95% 18%, rgba(241, 186, 104, 0.09), transparent 26rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background: rgba(68, 218, 204, 0.3);
}

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

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

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

.ambient-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(145, 169, 181, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(145, 169, 181, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--primary);
    color: #031615;
    font-weight: 800;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

:focus-visible {
    outline: 3px solid rgba(68, 218, 204, 0.5);
    outline-offset: 3px;
}

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

.brand__mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(68, 218, 204, 0.2), rgba(68, 218, 204, 0.04));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.brand__mark img {
    width: 26px;
    height: 26px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    letter-spacing: -0.02em;
}

.brand small {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 26px;
    height: 1px;
    background: currentColor;
    content: "";
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button--primary {
    background: var(--primary);
    color: #041615;
    box-shadow: 0 12px 30px rgba(68, 218, 204, 0.18);
}

.button--primary:hover {
    background: #63e6da;
}

.button--secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.button--danger {
    border-color: rgba(255, 123, 121, 0.3);
    background: rgba(255, 123, 121, 0.08);
    color: #ffaeac;
}

.button--full {
    width: 100%;
}

/* Landing page */
.site-header {
    display: flex;
    width: min(calc(100% - 40px), var(--content));
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav > a:not(.button) {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav > a:hover {
    color: var(--text);
}

.hero {
    display: grid;
    width: min(calc(100% - 40px), var(--content));
    min-height: calc(100vh - 86px);
    align-items: center;
    margin: 0 auto;
    padding: 70px 0 100px;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: clamp(48px, 8vw, 110px);
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3.1rem, 7vw, 6.7rem);
    font-weight: 730;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.hero h1 span {
    color: var(--primary);
}

.hero__lead {
    max-width: 640px;
    margin: 28px 0 34px;
    color: #b4c7cf;
    font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.access-visual {
    position: relative;
    min-height: 520px;
}

.access-visual::before {
    position: absolute;
    inset: 10% 0 0 6%;
    border-radius: 50%;
    background: rgba(68, 218, 204, 0.09);
    filter: blur(40px);
    content: "";
}

.pass-card {
    position: absolute;
    overflow: hidden;
    width: min(100%, 390px);
    aspect-ratio: 1.6;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    background: linear-gradient(145deg, #153b51, #0a1c2b 65%);
    box-shadow: var(--shadow);
}

.pass-card::after {
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(68, 218, 204, 0.2);
    border-radius: 50%;
    content: "";
}

.pass-card--primary {
    top: 75px;
    right: 0;
    z-index: 2;
    transform: rotate(4deg);
}

.pass-card--primary::after {
    right: -70px;
    bottom: -90px;
}

.pass-card--secondary {
    top: 250px;
    left: 0;
    z-index: 1;
    background: linear-gradient(145deg, #26283f, #101321 70%);
    transform: rotate(-7deg) scale(0.92);
}

.pass-card__top,
.pass-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pass-card__top {
    color: #cce5e6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pass-card__signal {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(68, 218, 204, 0.15);
    color: var(--primary);
}

.pass-card__name {
    margin: 58px 0 30px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pass-card__bottom {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(100, 223, 170, 0.2);
    border-radius: 999px;
    background: rgba(100, 223, 170, 0.08);
    color: var(--success);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
    content: "";
}

.section {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 105px 0;
}

.section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.section__heading h2 {
    max-width: 690px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.section__heading p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

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

.feature-card {
    min-height: 270px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(18, 38, 58, 0.85), rgba(8, 20, 33, 0.72));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.feature-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 58px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: rgba(68, 218, 204, 0.07);
    color: var(--primary);
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.contact-panel {
    display: grid;
    padding: clamp(30px, 6vw, 70px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(23, 61, 73, 0.75), rgba(9, 22, 35, 0.92));
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.contact-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.04em;
}

.contact-panel p {
    margin: 0;
    color: #b3cbd1;
}

.contact-list {
    display: grid;
    align-content: center;
    gap: 12px;
    color: #c8d9de;
    font-style: normal;
}

.contact-list a {
    text-decoration: none;
}

.site-footer {
    display: flex;
    width: min(calc(100% - 40px), var(--content));
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 28px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

/* Authentication */
.auth-shell {
    display: grid;
    width: min(calc(100% - 32px), 1120px);
    min-height: 100vh;
    align-items: center;
    margin: 0 auto;
    padding: 34px 0;
    grid-template-columns: minmax(300px, 0.92fr) minmax(390px, 1.08fr);
    gap: clamp(40px, 8vw, 100px);
}

.auth-aside {
    padding: 20px;
}

.auth-aside h1 {
    margin: 82px 0 22px;
    font-size: clamp(2.7rem, 5vw, 4.9rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.auth-aside h1 span {
    color: var(--primary);
}

.auth-aside > p {
    max-width: 470px;
    color: var(--muted);
    font-size: 1.05rem;
}

.auth-proof {
    display: grid;
    margin-top: 48px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.auth-proof div {
    padding: 14px;
    border-left: 2px solid var(--line-strong);
}

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

.auth-proof small {
    margin-top: 4px;
    color: var(--muted);
}

.auth-card {
    width: 100%;
    max-width: 560px;
    justify-self: end;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(9, 22, 35, 0.88);
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.auth-card--wide {
    max-width: 620px;
}

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

.auth-card__header h2 {
    margin: 0 0 8px;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

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

.field {
    margin-bottom: 18px;
}

.field__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #c8d9de;
    font-size: 0.85rem;
    font-weight: 750;
}

.field__control {
    position: relative;
}

.field input,
.profile-form input:not([type="file"]) {
    width: 100%;
    min-height: 52px;
    padding: 0 48px 0 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background: rgba(2, 10, 18, 0.48);
    color: var(--text);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder,
.profile-form input::placeholder {
    color: #607985;
}

.field input:focus,
.profile-form input:focus {
    border-color: var(--primary);
    background: rgba(5, 18, 29, 0.8);
    box-shadow: 0 0 0 4px rgba(68, 218, 204, 0.08);
}

.field__actions {
    position: absolute;
    top: 50%;
    right: 8px;
    display: flex;
    gap: 2px;
    transform: translateY(-50%);
}

.icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.field-help {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.field-help summary {
    width: fit-content;
    cursor: pointer;
    color: #aac0c9;
}

.field-help div {
    margin-top: 8px;
    padding: 12px 14px;
    border-left: 2px solid var(--line-strong);
    background: rgba(68, 218, 204, 0.035);
}

.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 24px;
    color: var(--muted);
    font-size: 0.86rem;
}

.text-link {
    color: var(--primary);
    font-weight: 750;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.message {
    display: grid;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-raised);
    color: #dce9ec;
    grid-template-columns: auto 1fr auto;
    gap: 11px;
    font-size: 0.88rem;
}

.message--success {
    border-color: rgba(100, 223, 170, 0.28);
    background: rgba(100, 223, 170, 0.07);
}

.message--success > i {
    color: var(--success);
}

.message--error {
    border-color: rgba(255, 123, 121, 0.3);
    background: rgba(255, 123, 121, 0.07);
}

.message--error > i {
    color: var(--danger);
}

.message--info > i {
    color: var(--info);
}

.message__dismiss {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

/* Authenticated app */
.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    min-height: 76px;
    align-items: center;
    padding: 0 max(24px, calc((100vw - var(--content)) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 19, 0.84);
    backdrop-filter: blur(20px);
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
}

.app-nav {
    display: flex;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    gap: 3px;
}

.app-nav a {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 750;
    text-decoration: none;
}

.app-nav a:hover,
.app-nav a[aria-current="page"] {
    background: rgba(68, 218, 204, 0.09);
    color: var(--primary);
}

.account-menu {
    position: relative;
    justify-self: end;
}

.account-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu__copy {
    text-align: right;
}

.account-menu__copy small,
.account-menu__copy strong {
    display: block;
}

.account-menu__copy small {
    color: var(--muted);
    font-size: 0.65rem;
}

.account-menu__copy strong {
    font-size: 0.84rem;
}

.avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    object-fit: cover;
}

.avatar--fallback {
    background: rgba(68, 218, 204, 0.12);
    color: var(--primary);
    font-weight: 850;
}

.account-menu__panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: grid;
    width: 190px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0b1927;
    box-shadow: var(--shadow);
}

.account-menu__panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 9px;
    color: #c4d4d9;
    font-size: 0.85rem;
    text-decoration: none;
}

.account-menu__panel a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.app-main {
    width: min(calc(100% - 40px), var(--content));
    min-height: calc(100vh - 147px);
    margin: 0 auto;
    padding: 54px 0 80px;
}

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

.page-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.page-heading p:not(.eyebrow) {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
}

.page-heading__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.8rem;
}

.page-heading__meta::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 13px var(--success);
    content: "";
}

.stat-grid {
    display: grid;
    margin-bottom: 22px;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(12, 27, 43, 0.72);
}

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

.stat-card span {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-card strong {
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 24, 38, 0.8);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 23px 24px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
}

.panel__header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.panel__header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.credential-grid {
    display: grid;
    padding: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.credential-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: linear-gradient(145deg, #113850, #091c2c 72%);
}

.credential-card::after {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(68, 218, 204, 0.18);
    border-radius: 50%;
    content: "";
}

.credential-card--google {
    background: linear-gradient(145deg, #24304b, #101724 72%);
}

.credential-card--physical {
    background: linear-gradient(145deg, #353046, #181322 72%);
}

.credential-card--token {
    background: linear-gradient(145deg, #24463e, #0e211d 72%);
}

.credential-card--empty {
    display: grid;
    min-height: 190px;
    place-items: center;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}

.credential-card__top,
.credential-card__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.credential-card__type {
    color: #cbe2e5;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.credential-card__owner {
    position: relative;
    z-index: 1;
    margin: 46px 0 38px;
}

.credential-card__owner small,
.credential-card__owner strong {
    display: block;
}

.credential-card__owner small {
    margin-bottom: 5px;
    color: #8eadb8;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.credential-card__owner strong {
    overflow: hidden;
    font-size: 1.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.credential-meta {
    color: #a9c0c7;
    font-size: 0.76rem;
}

.credential-empty__icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--primary);
}

.credential-empty strong,
.credential-empty small {
    display: block;
}

.credential-empty small {
    max-width: 270px;
    margin-top: 6px;
    color: var(--muted);
}

.activity-list {
    display: grid;
    padding: 10px 20px 20px;
}

.activity-row {
    display: grid;
    align-items: center;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: auto 1fr auto;
    gap: 14px;
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-row__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: rgba(68, 218, 204, 0.07);
    color: var(--primary);
}

.activity-row strong,
.activity-row small {
    display: block;
}

.activity-row small,
.activity-row time {
    color: var(--muted);
    font-size: 0.77rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
    gap: 18px;
}

.empty-activity {
    padding: 48px 20px;
    color: var(--muted);
    text-align: center;
}

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

.wallet-action {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 24, 38, 0.82);
}

.wallet-action__icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin-bottom: 48px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: rgba(68, 218, 204, 0.07);
    color: var(--primary);
    font-size: 1.2rem;
}

.wallet-action h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.wallet-action p {
    margin: 0 0 24px;
    color: var(--muted);
}

.wallet-action__controls {
    display: flex;
    align-items: end;
    margin-top: auto;
    gap: 10px;
}

.wallet-badge-button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.wallet-badge-button img {
    display: block;
    height: 48px;
    width: auto;
}

.app-footer {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

/* Profile */
.profile-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
}

.profile-panel {
    padding: clamp(24px, 4vw, 36px);
}

.profile-panel h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.profile-panel > p {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-picture-wrap {
    display: grid;
    justify-items: center;
    margin-bottom: 28px;
}

.image-preview {
    display: grid;
    width: 126px;
    height: 126px;
    margin-bottom: 15px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 32px;
    background: rgba(68, 218, 204, 0.06);
}

.profile-picture,
.default-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    padding: 28px;
    color: var(--primary);
}

.profile-form .field input {
    padding-right: 15px;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.crop-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(1, 5, 10, 0.82);
    backdrop-filter: blur(10px);
}

.crop-modal[hidden] {
    display: none;
}

.crop-modal__dialog {
    width: min(100%, 620px);
    padding: 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.crop-modal__canvas {
    min-height: 300px;
}

.crop-modal__canvas img {
    display: block;
    max-height: 360px;
    margin: 0 auto;
}

.crop-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    gap: 10px;
}

.center-state {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
}

.state-card {
    width: min(100%, 560px);
    padding: clamp(30px, 6vw, 54px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
    text-align: center;
}

.state-card__icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 24px;
    place-items: center;
    border: 1px solid rgba(255, 123, 121, 0.3);
    border-radius: 18px;
    background: rgba(255, 123, 121, 0.08);
    color: var(--danger);
    font-size: 1.4rem;
}

.state-card h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.state-card p {
    margin: 0 0 28px;
    color: var(--muted);
}

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

    .hero {
        padding-top: 60px;
    }

    .access-visual {
        width: min(100%, 560px);
        margin: 0 auto;
    }

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

    .feature-card {
        min-height: auto;
    }

    .feature-card__icon {
        margin-bottom: 34px;
    }

    .auth-shell {
        max-width: 680px;
        gap: 20px;
    }

    .auth-aside h1 {
        margin-top: 50px;
    }

    .auth-card {
        max-width: none;
        justify-self: stretch;
    }

    .app-header {
        grid-template-columns: 1fr auto;
        backdrop-filter: none;
    }

    .app-nav {
        position: fixed;
        right: 14px;
        bottom: 14px;
        left: 14px;
        z-index: 30;
        justify-content: space-around;
        border-color: rgba(141, 189, 214, 0.24);
        background: rgba(8, 20, 33, 0.95);
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(18px);
    }

    .app-nav a {
        flex: 1;
        justify-content: center;
    }

    .dashboard-layout,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .app-footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 720px) {
    .site-header {
        min-height: 72px;
    }

    .site-nav > a:not(.button) {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero h1 {
        font-size: clamp(3.3rem, 17vw, 5rem);
    }

    .access-visual {
        min-height: 430px;
    }

    .pass-card {
        padding: 22px;
    }

    .pass-card--primary {
        top: 45px;
    }

    .pass-card--secondary {
        top: 200px;
    }

    .section {
        padding: 74px 0;
    }

    .section__heading,
    .contact-panel,
    .site-footer,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-panel {
        display: flex;
    }

    .site-footer {
        display: flex;
        gap: 8px;
    }

    .auth-aside {
        padding: 8px;
    }

    .auth-aside h1 {
        margin: 32px 0 16px;
        font-size: clamp(2.7rem, 13vw, 3.6rem);
    }

    .auth-proof {
        display: none;
    }

    .auth-card {
        padding: 27px 20px;
        border-radius: 22px;
    }

    .form-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .app-header {
        min-height: 68px;
        padding: 0 16px;
    }

    .brand--compact small,
    .account-menu__copy,
    .account-menu summary > .fa-chevron-down {
        display: none;
    }

    .brand--compact .brand__mark {
        width: 38px;
        height: 38px;
    }

    .app-main {
        width: min(calc(100% - 28px), var(--content));
        padding-top: 38px;
    }

    .page-heading {
        display: flex;
    }

    .stat-grid,
    .credential-grid,
    .wallet-actions {
        grid-template-columns: 1fr;
    }

    .credential-grid {
        padding: 12px;
    }

    .wallet-action {
        min-height: 290px;
    }

    .app-nav a {
        min-width: 0;
        flex-direction: column;
        gap: 2px;
        font-size: 0.68rem;
    }
}

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