﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap");
@import "tailwindcss";

:root {
    font-family: "Inter", sans-serif;
    color: #193236;
    background: #f4f7f6;
    font-synthesis: none;
    --ink: #193236;
    --muted: #668083;
    --teal-950: #0d4f53;
    --teal-900: #125b60;
    --teal-700: #2a858d;
    --teal-600: #4d9da5;
    --teal-100: #deeff0;
    --orange: #f47b36;
    --line: #dfe9e8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 12% 18%, rgba(77, 157, 165, .07) 0 2px, transparent 3px) 0 0 / 34px 34px, linear-gradient(125deg, transparent 0 65%, rgba(77, 157, 165, .035) 65% 78%, transparent 78%), #f7f9f8;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-family: "Montserrat", sans-serif;
    color: var(--ink);
}

.eyebrow {
    margin: -55px 0 9px;
    color: var(--teal-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: #97d4d7;
}

.brand-crop {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px; /* Largura perfeita para a logo */
    margin: 35px auto 15px auto !important; /* Adiciona respiro no topo e na base */
    height: auto !important;
    overflow: visible !important; /* Impede cortes indesejados */
}

    .brand-crop img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Força a renderização inteira da logo */
        display: block;
    }

.brand-crop--compact {
    width: 225px;
    height: 70px;
    margin-right: -61px;
    transform: scale(.65);
    transform-origin: left center;
}

.login-page {
    min-height: 100dvh;
    padding: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eff7f6, #f9faf9 50%, #edf5f4);
}

.login-main {
    width: min(1060px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: 0 28px 70px rgba(13, 79, 83, .14);
}

.login-card {
    width: min(430px, calc(100% - 48px));
    margin: auto;
    padding: 44px 0;
}

.login-card--register {
    padding: 34px 0;
}

.login-card h1 {
    font-size: 34px;
    letter-spacing: -.035em;
    margin-bottom: 12px;
}

.login-intro {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 30px;
}

.form-stack {
    display: grid;
    gap: 19px;
}

.field {
    display: grid;
    gap: 8px;
    color: #304d51;
    font-size: 13px;
    font-weight: 700;
}

.field--hidden {
    display: none;
}

.field > span:first-child {
    text-transform: uppercase;
}

.field b {
    color: var(--teal-700);
}

.field > small {
    margin-top: -4px;
    color: #71878a;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.field-input {
    display: flex;
    align-items: center;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid #d7e2e1;
    border-radius: 9px;
    background: white;
    transition: .2s;
}

    .field-input:focus-within {
        border-color: var(--teal-600);
        box-shadow: 0 0 0 3px rgba(77, 157, 165, .12);
    }

    .field-input input, .field-input select {
        width: 100%;
        height: 47px;
        padding: 0 14px;
        border: 0;
        outline: 0;
        color: var(--ink);
        background: transparent;
        font-weight: 500;
    }

    .field-input select {
        cursor: pointer;
    }

    .field-input input::placeholder {
        color: #9aadaf;
    }

    .field-input input:disabled {
        background: #f3f6f5;
        color: #728588;
        cursor: not-allowed;
    }

    .field-input button {
        display: grid;
        place-items: center;
        padding: 10px 14px;
        border: 0;
        color: #789093;
        background: transparent;
    }

.file-input {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 7px;
    border: 1px solid #d7e2e1;
    border-radius: 9px;
    background: white;
}

    .file-input input {
        width: 100%;
        color: #60777a;
        font-size: 11px;
        font-weight: 500;
    }

        .file-input input::file-selector-button {
            margin-right: 12px;
            padding: 9px 12px;
            border: 0;
            border-radius: 6px;
            color: var(--teal-900);
            background: var(--teal-100);
            font-weight: 700;
            cursor: pointer;
        }

.primary-button {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 21px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: var(--teal-700);
    box-shadow: 0 8px 18px rgba(42, 133, 141, .18);
    font-weight: 700;
    transition: transform .2s, background .2s;
}

    .primary-button:hover {
        background: var(--teal-900);
        transform: translateY(-1px);
    }

.primary-button--wide {
    width: 100%;
    min-height: 50px;
}

.login-links {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 24px;
}

    .login-links button {
        display: flex;
        align-items: center;
        gap: 5px;
        border: 0;
        color: var(--teal-700);
        background: transparent;
        font-size: 13px;
    }

.success-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #176a4f;
    background: #e8f7ef;
    font-size: 13px;
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px 50px;
    color: white;
    background: var(--teal-950);
    overflow: hidden;
}

    .login-brand-panel > .brand-crop {
        align-self: center;
    }

    .login-brand-panel::after {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        right: -230px;
        bottom: -180px;
        border: 75px solid rgba(255,255,255,.035);
        border-radius: 50%;
    }

.login-banner {
    min-height: 180px;
    position: relative;
    z-index: 1;
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: #164f53;
    box-shadow: 0 18px 35px rgba(2,31,34,.24);
}

    .login-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5,47,51,.02) 25%, rgba(5,47,51,.92) 100%);
    }

    .login-banner img {
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        object-fit: cover;
        object-position: center 44%;
    }

    .login-banner figcaption {
        position: absolute;
        right: 20px;
        bottom: 17px;
        left: 20px;
        z-index: 1;
        display: grid;
        gap: 4px;
        color: #d9ebec;
        font-size: 11px;
        line-height: 1.4;
    }

        .login-banner figcaption span {
            color: white;
            font: 700 15px "Montserrat", sans-serif;
        }

.login-brand-panel h2 {
    max-width: 420px;
    margin-bottom: 16px;
    color: white;
    font-size: 38px;
    line-height: 1.15;
}

.login-brand-panel p:not(.eyebrow) {
    max-width: 430px;
    color: #c7dcde;
    line-height: 1.7;
}

.brand-copyright {
    position: relative;
    z-index: 1;
    font-size: 12px;
}

.mobile-login-logo {
    display: none;
}

.portal-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.portal-header {
    height: 84px;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: var(--teal-950);
    box-shadow: 0 2px 10px rgba(6, 48, 52, .15);
}

.header-logo-button {
    border: 0;
    background: transparent;
}

.menu-button {
    display: none;
    border: 0;
    color: white;
    background: transparent;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    color: white;
    background: transparent;
    text-align: left;
}

.avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: white;
    background: var(--teal-700);
    font-size: 12px;
    font-weight: 800;
}

.avatar--large {
    width: 48px;
    height: 48px;
    font-size: 14px;
}

.profile-copy {
    display: grid;
    font-size: 13px;
    font-weight: 700;
}

    .profile-copy small {
        opacity: .7;
        font-size: 10px;
        font-weight: 500;
    }

.profile-dropdown {
    width: 205px;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    box-shadow: 0 15px 40px rgba(22, 61, 64, .17);
}

    .profile-dropdown::before {
        content: "";
        position: absolute;
        top: -5px;
        right: 17px;
        width: 10px;
        height: 10px;
        background: white;
        transform: rotate(45deg);
    }

    .profile-dropdown button {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px;
        border: 0;
        border-radius: 6px;
        color: #38565a;
        background: transparent;
        text-align: left;
        font-size: 13px;
    }

        .profile-dropdown button:hover {
            color: var(--teal-900);
            background: #eef6f5;
        }

    .profile-dropdown > span {
        display: block;
        height: 1px;
        margin: 4px 7px;
        background: var(--line);
    }

.portal-body {
    width: min(1440px, 100%);
    flex: 1;
    display: grid;
    grid-template-columns: 270px 1fr;
    margin: 0 auto;
}

.sidebar {
    min-height: calc(100dvh - 84px);
    display: flex;
    flex-direction: column;
    padding: 34px 22px 26px;
    border-right: 1px solid var(--line);
    background: rgba(255,255,255,.8);
}

.consumer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 5px 28px;
    border-bottom: 1px solid var(--line);
}

    .consumer-card div {
        min-width: 0;
        display: grid;
        gap: 5px;
    }

    .consumer-card strong {
        overflow: hidden;
        color: #28464a;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .consumer-card span:last-child {
        color: #7b9294;
        font-size: 10px;
    }

.sidebar nav {
    padding-top: 25px;
}

    .sidebar nav p {
        margin: 0 12px 10px;
        color: #91a2a4;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .14em;
    }

    .sidebar nav button {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 3px 0;
        padding: 0 13px;
        border: 0;
        border-radius: 7px;
        color: #587174;
        background: transparent;
        text-align: left;
        font-size: 13px;
        font-weight: 600;
        transition: .2s;
    }

        .sidebar nav button:hover {
            color: var(--teal-900);
            background: #edf5f4;
        }

        .sidebar nav button.active {
            color: white;
            background: var(--teal-700);
            box-shadow: 0 7px 18px rgba(42, 133, 141, .17);
        }

.sidebar-help {
    margin-top: auto;
    display: grid;
    gap: 5px;
    padding: 18px;
    border-radius: 9px;
    background: #e9f3f2;
}

    .sidebar-help span {
        color: #678083;
        font-size: 11px;
    }

    .sidebar-help a {
        color: var(--teal-900);
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }

.portal-content {
    min-width: 0;
    padding: 35px clamp(30px, 5vw, 74px) 70px;
}

.welcome-row, .page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: -125px;
}

    .welcome-row h1, .page-heading h1 {
        margin-bottom: 0px;
        font-size: clamp(25px, 3vw, 36px);
        letter-spacing: -.04em;
    }

    .welcome-row p:last-child {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
    }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: -140px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 116px;
    padding: 22px;
    border: 1px solid #e4eceb;
    border-radius: 11px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 25px rgba(23, 72, 76, .045);
}

.metric-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    color: var(--teal-700);
    background: var(--teal-100);
}

.metric-icon--orange {
    color: var(--orange);
    background: #fff0e8;
}

.metric-card div:last-child {
    display: grid;
    gap: 7px;
}

.metric-card span:not(.metric-icon) {
    color: #71878a;
    font-size: 11px;
}

.metric-card strong {
    color: var(--ink);
    font-family: "Montserrat";
    font-size: 27px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
}

.feature-card {
    min-height: 210px;
    padding: 26px;
    border: 1px solid #e2ebea;
    border-radius: 11px;
    background: white;
    box-shadow: 0 8px 25px rgba(23, 72, 76, .045);
}

.next-draw {
    grid-row: span 2;
}

.feature-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

    .feature-heading span:not(.metric-icon), .balance-card > span {
        color: #819396;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .1em;
    }

    .feature-heading h2 {
        margin: 4px 0 0;
        font-size: 18px;
    }

.draw-date {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 27px 0 15px;
    color: var(--teal-900);
    font-family: "Montserrat";
    font-size: 64px;
    line-height: .8;
}

    .draw-date span {
        color: var(--orange);
        font-size: 16px;
        line-height: 1.05;
    }

.next-draw > p {
    color: #6d8386;
    font-size: 13px;
}

    .next-draw > p strong {
        color: var(--ink);
    }

.balance-card {
    min-height: 155px;
}

    .balance-card h2 {
        margin: 10px 0 20px;
        font-size: 29px;
    }

    .balance-card div {
        display: flex;
        gap: 12px;
    }

    .balance-card p {
        display: grid;
        gap: 3px;
        margin: 0;
        padding-right: 22px;
        border-right: 1px solid var(--line);
    }

        .balance-card p:last-child {
            border: 0;
        }

        .balance-card p span {
            color: #849699;
            font-size: 10px;
        }

        .balance-card p strong {
            font-size: 12px;
        }

.action-card {
    min-height: 145px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    color: white;
    background: var(--teal-900);
}

    .action-card .metric-icon {
        color: white;
        background: rgba(255,255,255,.1);
    }

    .action-card h2 {
        margin-bottom: 6px;
        color: white;
        font-size: 17px;
    }

    .action-card p {
        margin: 0;
        color: #c3dadc;
        font-size: 11px;
        line-height: 1.5;
    }

    .action-card button {
        display: flex;
        gap: 10px;
        padding: 10px;
        border: 0;
        color: white;
        background: transparent;
        font-size: 11px;
        font-weight: 700;
    }

.content-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.coupon-card {
    display: grid;
    justify-items: start;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    box-shadow: 0 8px 25px rgba(23,72,76,.05);
}

.coupon-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.status {
    padding: 6px 9px;
    border-radius: 99px;
    color: #24765e;
    background: #e5f5ed;
    font-size: 9px;
    font-weight: 800;
}

.status--bad {
    color: #a94a40;
    background: #fff0ed;
}

.coupon-card > p {
    margin: 0 0 7px;
    color: #849699;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.coupon-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: capitalize;
}

.coupon-card > strong {
    margin-bottom: 20px;
    font-family: "Montserrat";
    font-size: 24px;
}

.coupon-card > button {
    padding: 0;
    border: 0;
    color: var(--teal-700);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

.coupon-card small {
    margin-top: 13px;
    color: #849699;
    font-size: 9px;
}

.coupon-alert {
    margin-top: 15px;
    color: #b25146;
    font-size: 10px;
}

.empty-state {
    min-height: 340px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 40px;
    border: 1px dashed #d5e3e2;
    border-radius: 14px;
    background: rgba(255,255,255,.7);
    text-align: center;
}

    .empty-state > span {
        width: 70px;
        height: 70px;
        display: grid;
        place-items: center;
        margin-bottom: 19px;
        border-radius: 50%;
        color: var(--teal-700);
        background: var(--teal-100);
    }

    .empty-state h2 {
        margin-bottom: 9px;
        font-size: 20px;
    }

    .empty-state p {
        max-width: 370px;
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
    }

.draw-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 23px;
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
}

.draw-number {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: white;
    background: var(--teal-700);
    font: 800 20px "Montserrat";
}

.draw-card div:nth-child(2) > span {
    color: #849699;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.draw-card h2 {
    margin: 7px 0;
    font-size: 24px;
}

.draw-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.draw-calendar {
    display: grid;
    justify-items: center;
    min-width: 90px;
    padding: 12px;
    border-left: 1px solid var(--line);
}

    .draw-calendar strong {
        color: var(--teal-900);
        font: 800 32px "Montserrat";
    }

    .draw-calendar span {
        color: var(--orange);
        font-size: 10px;
        font-weight: 800;
    }

.settings-card {
    padding: 29px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 25px rgba(23,72,76,.045);
}

.settings-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 23px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

    .settings-heading h2 {
        margin-bottom: 5px;
        font-size: 18px;
    }

    .settings-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 19px;
}

.password-fields {
    max-width: 480px;
    display: grid;
    grid-column: 1 / -1;
    gap: 19px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 26px;
    margin-top: 27px;
    border-top: 1px solid var(--line);
}

.inline-success {
    color: #257257;
    font-size: 12px;
}

.standalone-main {
    width: min(1100px, calc(100% - 40px));
    flex: 1;
    margin: 0 auto;
    padding: 40px 0 70px;
}

.coupon-flow {
    position: relative;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 0;
    border: 0;
    color: var(--teal-700);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
}

.coupon-flow-heading {
    margin: 29px 0 32px;
    text-align: center;
}

    .coupon-flow-heading h1 {
        margin-bottom: 10px;
        font-size: clamp(27px, 4vw, 39px);
        letter-spacing: -.04em;
    }

    .coupon-flow-heading > p:last-child {
        color: var(--muted);
        font-size: 13px;
    }

.coupon-options {
    width: min(780px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0 auto;
}

    .coupon-options button {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 16px;
        min-height: 155px;
        padding: 25px;
        border: 1px solid var(--line);
        border-radius: 12px;
        color: var(--teal-700);
        background: white;
        text-align: left;
        box-shadow: 0 8px 25px rgba(23,72,76,.05);
        transition: .2s;
    }

        .coupon-options button:hover {
            border-color: var(--teal-600);
            transform: translateY(-2px);
            box-shadow: 0 13px 28px rgba(23,72,76,.1);
        }

.option-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--teal-100);
}

.coupon-options button > span:nth-child(2) {
    display: grid;
    gap: 7px;
    color: var(--ink);
}

.coupon-options strong {
    font: 700 14px "Montserrat";
}

.coupon-options small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.manual-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 30px;
}

.manual-form {
    display: grid;
    gap: 20px;
}

.receipt-example {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
}

.receipt-crop {
    width: 100%;
    aspect-ratio: 385 / 563;
    position: relative;
    overflow: hidden;
}

    .receipt-crop img {
        position: absolute;
        width: 837px;
        max-width: none;
        height: 610px;
        top: -125px;
        left: -510px;
    }

.receipt-example p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

    .receipt-example p strong {
        color: var(--ink);
    }

.portal-footer {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 18px 32px;
    color: #bad1d2;
    background: var(--teal-950);
    font-size: 10px;
}

    .portal-footer p {
        margin: 0;
    }

    .portal-footer a {
        color: #dce9e9;
    }

.menu-overlay {
    display: none;
}

@media (max-width: 1050px) {
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .next-draw {
        grid-row: auto;
    }

    .login-main {
        grid-template-columns: 1fr 400px;
    }

    .login-brand-panel {
        padding: 42px 35px;
    }
}

@media (max-width: 820px) {
    .login-page {
        padding: 0;
        background: white;
    }

    .login-main {
        min-height: 100dvh;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand-panel {
        display: none;
    }

    .mobile-login-logo {
        display: block;
        width: 174px;
        margin: 0 auto 35px;
        padding: 0;
        background: var(--teal-950);
        border-radius: 5px;
    }

    .login-card {
        width: min(430px, calc(100% - 42px));
    }

    .portal-header {
        height: 74px;
        padding: 0 18px;
    }

        .portal-header .brand-crop {
            transform: scale(.78);
            transform-origin: center;
            margin: 0 -19px;
        }

    .menu-button {
        display: block;
    }

    .profile-copy {
        display: none;
    }

    .portal-body {
        display: block;
    }

    .sidebar {
        width: 280px;
        height: calc(100dvh - 74px);
        min-height: 0;
        position: fixed;
        top: 74px;
        left: 0;
        z-index: 30;
        transform: translateX(-100%);
        transition: transform .25s;
    }

    .sidebar--open {
        transform: translateX(0);
    }

    .menu-overlay {
        display: block;
        position: fixed;
        inset: 74px 0 0;
        z-index: 25;
        border: 0;
        background: rgba(7, 37, 40, .4);
    }

    .portal-content {
        padding: 38px 24px 60px;
    }

    .content-card-list {
        grid-template-columns: 1fr;
    }

    .manual-layout {
        grid-template-columns: 1fr;
    }

    .receipt-example {
        width: min(330px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 580px) {
    .login-card h1 {
        font-size: 29px;
    }

    .welcome-row, .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

        .welcome-row .primary-button, .page-heading .primary-button {
            width: 100%;
        }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metric-card {
        min-height: 105px;
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

        .metric-card strong {
            font-size: 23px;
        }

    .action-card {
        grid-template-columns: auto 1fr;
    }

        .action-card button {
            grid-column: 2;
            padding: 0;
        }

    .settings-card {
        padding: 20px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .draw-card {
        grid-template-columns: auto 1fr;
        padding: 20px;
    }

    .draw-calendar {
        grid-column: 1 / -1;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 5px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .coupon-options {
        grid-template-columns: 1fr;
    }

    .portal-footer {
        flex-wrap: wrap;
        gap: 7px 18px;
        text-align: center;
    }

        .portal-footer .brand-crop {
            display: none;
        }
}
