@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --color-primary: #9e4343;
    --color-muted-primary: #9e42421a;
    --color-background: #fafafa;
    --color-surface: #e5e7eb;
    --color-muted-surface: #e5e7eb1a;
    --color-foreground: #252525;
    --color-promo-one-primary: #01373f;
    --color-promo-one-secondary: #4cd181;
    --color-success: #6ec573;
    --color-error: #fc4f50;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-muted-shadow: rgba(0, 0, 0, 0.15);
    --gradient-emv-chip: linear-gradient(135deg, #d4af37 0%, #f8f8f8 50%, #d4af37 100%);
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    align-items: center;
    background-color: var(--color-background);
    color: var(--color-foreground);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100vh;
    min-width: 100%;
    padding: 2rem;
}

body:has(.nav) {
    padding-bottom: 8rem;
}

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

.not-found {
    align-items: center;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    min-width: 100%;
    position: fixed;
    z-index: 9999;
}

.not-found__icon {
    color: var(--color-foreground);
    font-size: 8rem;
}

.not-found__text {
    color: var(--color-foreground);
    font-size: 2rem;
    text-align: center;
    text-wrap: wrap;
}

.warning {
    display: none;
}

@media only screen and (min-width: 640px) {
    body *:not(.warning):not(.warning *):not(.not-found):not(.not-found *) {
        display: none;
    }

    .warning {
        align-items: center;
        background-color: var(--color-background);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        inset: 0;
        justify-content: center;
        min-height: 100vh;
        min-width: 100%;
        position: fixed;
        z-index: 9999;
    }
}

.warning__icon {
    color: var(--color-foreground);
    font-size: 8rem;
}

.warning__text {
    color: var(--color-foreground);
    font-size: 2rem;
    text-align: center;
    text-wrap: wrap;
}

.header {
    align-items: center;
    background-color: var(--color-background);
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    width: 100%;
}

.header__icon {
    color: var(--color-primary);
    font-size: 4rem;
}

.header__text {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.header__text--brand {
    font-size: 2.5rem;
}

.header__back-link {
    align-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 100px;
    display: flex;
    height: 3rem;
    justify-content: center;
    left: 0;
    position: absolute;
    transition: background-color 0.25s;
    width: 3rem;
    z-index: 1;
}

.header__back-link-icon {
    color: var(--color-foreground);
    font-size: 1.5rem;
}

.header__back-link:active {
    background-color: var(--color-surface);
}

.main {
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
    width: 100%;
}

.main--justify-end {
    justify-content: flex-end;
}

.main--justify-center {
    justify-content: center;
}

.button {
    background-color: var(--color-primary);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-shadow);
    color: var(--color-background);
    display: flex;
    font-size: 1rem;
    font-weight: bold;
    justify-content: center;
    padding-block: 1rem;
    padding-inline: 2rem;
    transition: opacity 0.25s;
    width: 100%;
}

.button:active {
    opacity: 0.9;
}

.button--ghost {
    background-color: transparent;
    box-shadow: none;
    color: var(--color-primary);
    font-weight: normal;
    padding: 0;
    transition: none;
}

.button--small {
    box-shadow: 0 3px 8px var(--color-shadow);
    font-size: 0.75rem;
    padding-block: 0.75rem;
    padding-inline: 1.5rem;
}

.footer {
    align-items: center;
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer__text {
    color: var(--color-foreground);
    opacity: 0.5;
    text-align: center;
}

.form {
    align-items: center;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4rem;
    justify-content: space-between;
    width: 100%;
}

.form__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.form__input-field {
    display: flex;
    flex-direction: column;
}

.form__input-field--checkbox {
    flex-direction: row;
    position: relative;
}

.form__input-field-label {
    color: var(--color-foreground);
}

.form__input-field-label-text {
    color: inherit;
}

.form__input-field-label-link {
    color: var(--color-primary);
    text-decoration-line: underline;
}

.form__input-field-input {
    background-color: var(--color-surface);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-muted-shadow);
    color: var(--color-foreground);
    padding: 1rem;
}

.form__input-field-input:focus {
    outline: 2px solid var(--color-foreground);
}

.form__input-field-input--checkbox {
    position: absolute;
    top: 0.4rem;
}

.form__input-field-input--checkbox ~ *::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
}

.nav {
    background-color: var(--color-surface);
    bottom: 0;
    box-shadow: 0 -4px 12px var(--color-muted-shadow);
    display: flex;
    justify-content: space-between;
    min-width: 100%;
    padding: 1rem;
    position: fixed;
    z-index: 5;
}

.nav__list {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nav__list-item {
    align-items: center;
    display: flex;
    justify-content: center;
}

.nav__link {
    align-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    height: 4rem;
    justify-content: center;
    opacity: 0.5;
    transition: background-color 0.25s;
    width: 4rem;
    z-index: 1;
}

.nav__link[aria-current="page"] {
    opacity: 1;
}

.nav__link:active {
    background-color: var(--color-muted-primary);
}

.nav__icon {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.nav__text {
    color: var(--color-primary);
    font-size: 0.75rem;
    text-align: center;
}

.balance-card {
    background-color: var(--color-primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-shadow);
    display: flex;
    height: 12rem;
    position: relative;
    transition: opacity 0.25s;
    width: 100%;
    z-index: 1;
}

.balance-card__header {
    display: flex;
    flex-direction: column;
    left: 1rem;
    position: absolute;
    top: 1rem;
}

.balance-card__title {
    color: var(--color-background);
}

.balance-card__description {
    color: var(--color-background);
    font-size: 2rem;
    font-weight: bold;
    line-height: 0.75;
}

.balance-card__footer {
    background-color: var(--color-foreground);
    border-radius: 0.5rem;
    bottom: 0.5rem;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, 4rem);
    padding-block: 0.25rem;
    padding-inline: 0.5rem;
    position: absolute;
    right: 1rem;
}

.balance-card__action {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    height: 4rem;
    justify-content: center;
    transition: background-color 0.25s;
    width: 4rem;
}

.balance-card__action:active {
    background-color: var(--color-muted-surface);
}

.balance-card__action-icon {
    color: var(--color-background);
    font-size: 1.5rem;
}

.balance-card__action-text {
    color: var(--color-background);
    font-size: 0.75rem;
    text-align: center;
}

.home-action {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 1rem;
    width: 100%;
}

.home-action__list {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 4rem);
    justify-content: center;
    width: 100%;
}

.home-action__list-item {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-action__button {
    align-items: center;
    aspect-ratio: 1 / 1;
    background-color: var(--color-background);
    border: none;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    height: 4rem;
    justify-content: center;
    transition: background-color 0.25s;
    width: 4rem;
}

.home-action__button:active {
    background-color: var(--color-surface);
}

.home-action__button-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.home-action__button-text {
    color: var(--color-primary);
    font-size: 0.75rem;
    text-align: center;
}

.promo {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-shadow);
    display: flex;
    height: 12rem;
    overflow: hidden;
    position: relative;
    transition: opacity 0.25s;
    width: 100%;
}

.promo:active {
    opacity: 0.9;
}

.promo-one {
    background-color: var(--color-promo-one-primary);
    height: 100%;
    padding: 1rem;
    position: relative;
    width: 100%;
}

.promo-one__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.promo-one__title {
    color: var(--color-background);
    font-size: 1.25rem;
    white-space: nowrap;
    width: 100%;
}

.promo-one__description {
    color: var(--color-surface);
    font-size: 0.75rem;
    width: 70%;
}

.promo-one__voucher {
    background-color: var(--color-promo-one-secondary);
    border-radius: 0.5rem;
    height: 6rem;
    position: absolute;
    right: 0;
    transform: rotate(80deg);
    width: 8rem;
}

.promo-one__voucher-text {
    bottom: 1.5rem;
    color: var(--color-background);
    font-size: 1.75rem;
    font-weight: bold;
    left: 1rem;
    position: absolute;
    transform: rotate(-80deg);
}

.visa-card {
    background-color: var(--color-primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-shadow);
    display: flex;
    height: 12rem;
    position: relative;
    transition: opacity 0.25s;
    width: 100%;
}

.visa-card:active {
    opacity: 0.9;
}

.visa-card__emv-chip {
    background: var(--gradient-emv-chip);
    border-radius: 0.5rem;
    height: 2rem;
    left: 1rem;
    position: absolute;
    top: 2rem;
    width: 3rem;
}

.visa-card__number {
    color: var(--color-background);
    font-size: 1rem;
    font-weight: bold;
    left: 1rem;
    position: absolute;
    top: 4rem;
}

.visa-card__icon {
    bottom: 1rem;
    color: var(--color-background);
    font-size: 3rem;
    left: 1rem;
    position: absolute;
}

.visa-card__agapay {
    color: var(--color-surface);
    font-size: 6rem;
    opacity: 0.5;
    position: absolute;
    right: 2rem;
    top: 3rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.id-card {
    background-color: var(--color-surface);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-muted-shadow);
    display: flex;
    height: 12rem;
    position: relative;
    transition: background-color 0.25s;
    width: 100%;
}

.id-card:active {
    background-color: var(--color-muted-primary);
}

.id-card__status {
    border-radius: 0.5rem;
    color: var(--color-background);
    left: 1rem;
    padding-block: 0.5rem;
    padding-inline: 1rem;
    position: absolute;
    top: 1rem;
}

.id-card__status[data-status="verified"] {
    background-color: var(--color-success);
}

.id-card__status[data-status="expired"] {
    background-color: var(--color-error);
}

.id-card__header {
    left: 1rem;
    position: absolute;
    top: 4rem;
    width: 50%;
}

.id-card__title {
    color: var(--color-foreground);
    font-size: 1.25rem;
    line-height: 1.2;
}

.id-card__description {
    color: var(--color-foreground);
    line-height: 1.2;
}

.id-card__profile {
    align-items: center;
    background-color: var(--color-background);
    border-radius: 0.6rem;
    display: flex;
    height: 6rem;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 3rem;
    width: 6rem;
}

.id-card__profile-icon {
    color: var(--color-foreground);
    font-size: 3rem;
}

.scan {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    min-width: 100%;
}

.scan__image {
    aspect-ratio: 1 / 1;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.inbox {
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
    width: 100%;
}

.inbox__entry {
    background-color: var(--color-surface);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-muted-shadow);
    display: inline-flex;
    padding: 1rem;
    position: relative;
    transition: background-color 0.25s;
}

.inbox__entry:active {
    background-color: var(--color-muted-primary);
}

.inbox__icon {
    position: absolute;
    top: 1.25rem;
}

.inbox__text {
    display: inline-block;
}

.inbox__text::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
}

.profile {
    background-color: var(--color-primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-shadow);
    display: flex;
    gap: 1rem;
    padding: 1rem;
    transition: opacity 0.25s;
}

.profile:active {
    opacity: 0.9;
}

.profile__picture {
    align-items: center;
    aspect-ratio: 1 / 1;
    background-color: var(--color-background);
    border-radius: 100px;
    display: flex;
    height: 4rem;
    justify-content: center;
    width: 4rem;
}

.profile__picture-icon {
    color: var(--color-primary);
    font-size: 2rem;
}

.profile__header {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: ellipsis;
    width: 100%;
}

.profile__name {
    color: var(--color-background);
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.profile__phone-number {
    color: var(--color-background);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.profile-action {
    background-color: var(--color-primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--color-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.profile-action__list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.profile-action__list-item {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.profile-action__button {
    align-items: center;
    background-color: var(--color-primary);
    border: none;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    text-overflow: ellipsis;
    transition: background-color 0.25s;
    width: 100%;
}

.profile-action__button:active {
    background-color: var(--color-muted-surface);
}

.profile-action__icon {
    color: var(--color-background);
    font-size: 1rem;
}

.profile-action__text {
    color: var(--color-background);
    font-size: 1rem;
}

.sr-only {
    border-width: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
