:root {
    --maia-blue: #1E2A8A;
    --maia-blue-dark: #101667;
    --maia-orange: #FF7A00;
    --maia-yellow: #FFD200;
    --maia-red: #FF3B2E;
    --text: #111827;
    --muted: #6B7280;
    --line: #E5E7EB;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 210, 0, .35), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(255, 122, 0, .24), transparent 28%),
        linear-gradient(135deg, #fff8ec 0%, #f8fbff 45%, #fff1f6 100%);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.52)),
        radial-gradient(circle at 78% 18%, rgba(255,210,0,.70), transparent 12%),
        linear-gradient(135deg, #75c7ec 0%, #bfe8f7 28%, #ffe1b5 58%, #ff9b5c 100%);
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, transparent 0 42%, rgba(30,42,138,.18) 42.2%, rgba(30,42,138,.04) 54%, transparent 54.2%),
        radial-gradient(ellipse at 50% 102%, rgba(255,255,255,.95) 0 14%, transparent 15%),
        radial-gradient(ellipse at 46% 105%, rgba(255,255,255,.78) 0 20%, transparent 21%);
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 28px;
    padding: 28px 34px 28px;
    box-shadow: 0 32px 90px rgba(30,42,138,.22);
    backdrop-filter: blur(16px);
}

.login-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 6px;
    background: #ffffff;
    border-radius: 18px;
    padding: 8px 14px;
}

.login-logo {
    width: 210px;
    max-width: 100%;
    display: block;
}

.login-card h1 {
    margin: 0;
    color: var(--maia-blue);
    font-size: 22px;
    text-align: center;
    letter-spacing: -0.03em;
}

.login-subtitle {
    margin: 2px 0 14px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #374151;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--maia-blue);
    font-size: 15px;
    opacity: .78;
}

input {
    width: 100%;
    height: 44px;
    border: 1px solid #D9DDE8;
    border-radius: 11px;
    padding: 0 14px 0 40px;
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: all .18s ease;
}

input:focus {
    border-color: var(--maia-blue);
    box-shadow: 0 0 0 4px rgba(30,42,138,.10);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--maia-blue);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
}

.toggle-password:hover {
    background: rgba(30,42,138,.08);
}

.input-wrap input[type="password"] {
    padding-right: 82px;
}

.btn {
    width: 100%;
    height: 48px;
    margin-top: 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--maia-blue), #2734D8);
    color: white;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(30,42,138,.28);
    transition: transform .18s ease, box-shadow .18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(30,42,138,.34);
}

.forgot {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: var(--maia-blue);
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
}

.alert {
    margin: 0 0 16px;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.info {
    margin-top: 16px;
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
    border-radius: 14px;
    padding: 13px 14px;
    font-weight: 800;
}

/* DASHBOARD */

.dash-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    background:
        radial-gradient(circle at 10% 10%, rgba(255,210,0,.10), transparent 24%),
        radial-gradient(circle at 90% 10%, rgba(255,122,0,.09), transparent 22%),
        #fbfcff;
    color: #111827;
}

.dash-sidebar {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #101667;
    border-radius: 0 34px 34px 0;
    padding: 26px 20px;
    box-shadow: 18px 0 60px rgba(30,42,138,.10);
    border-right: 1px solid #edf0f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.dash-sidebar::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,210,0,.30), rgba(255,122,0,.18), transparent 68%);
    pointer-events: none;
}

.dash-logo {
    position: relative;
    z-index: 2;
    width: 180px;
    margin: 0 auto 28px;
    display: block;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.dash-menu {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 8px;
}

.dash-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: #25305f;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
}

.dash-menu a.active {
    background: linear-gradient(135deg, #E8ECFF, #DDE5FF);
    color: #1E2A8A;
    box-shadow: 0 10px 24px rgba(30,42,138,.12);
    border: 1px solid #C9D4FF;
}

.dash-menu a:not(.active):hover {
    background: #f3f4ff;
    color: #1E2A8A;
}

.dash-side-bottom {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    background: #fff8df;
    border: 1px solid #ffefb2;
    border-radius: 22px;
    padding: 16px;
}

.dash-side-bottom strong {
    display: block;
    color: #101667;
    margin-bottom: 4px;
}

.dash-side-bottom span {
    color: #6b7280;
    font-size: 13px;
}

.dash-main {
    padding: 32px 38px;
}

.dash-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.dash-title h1 {
    margin: 0;
    color: #101667;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.dash-title p {
    margin: 6px 0 0;
    color: #6b7280;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #edf0f7;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 14px 38px rgba(17,24,39,.06);
}

.dash-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD200, #FF7A00, #FF3B2E);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
}

.dash-user strong {
    display: block;
    color: #101667;
    font-size: 14px;
}

.dash-user small {
    color: #6b7280;
    font-size: 12px;
}

.dash-logout {
    color: #1E2A8A;
    font-weight: 900;
    text-decoration: none;
    margin-left: 6px;
}

.dash-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.dash-card {
    background: rgba(255,255,255,.92);
    border: 1px solid #edf0f7;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(30,42,138,.08);
}

.dash-card.tint-blue {
    background: linear-gradient(135deg, #ffffff, #f3f4ff);
    border-color: #dfe2ff;
}

.dash-card.tint-yellow {
    background: linear-gradient(135deg, #ffffff, #fff8df);
    border-color: #ffefb2;
}

.dash-card.tint-orange {
    background: linear-gradient(135deg, #ffffff, #fff2e8);
    border-color: #ffd8bd;
}

.dash-card.tint-pink {
    background: linear-gradient(135deg, #ffffff, #fff0f6);
    border-color: #ffd2e4;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.summary-label {
    color: #25305f;
    font-weight: 800;
    margin-bottom: 14px;
}

.summary-value {
    color: #101667;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.summary-sub {
    color: #6b7280;
    margin-top: 4px;
    font-size: 14px;
}

.summary-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: rgba(30,42,138,.08);
}

.dash-link {
    display: inline-block;
    margin-top: 20px;
    color: #1E2A8A;
    font-weight: 900;
    text-decoration: none;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.25fr .95fr;
    gap: 24px;
    margin-bottom: 24px;
}

.panel {
    background: white;
    border: 1px solid #edf0f7;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(17,24,39,.06);
}

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

.panel h2 {
    margin: 0;
    color: #101667;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.select-fake {
    border: 1px solid #e5e7eb;
    padding: 9px 12px;
    border-radius: 12px;
    color: #101667;
    font-weight: 800;
    background: #fff;
    font-size: 13px;
}

.chart {
    height: 265px;
    border-bottom: 1px solid #edf0f7;
    position: relative;
    padding: 12px 4px 0;
}

.chart svg {
    width: 100%;
    height: 100%;
}

.chart-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 18px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff5df;
    color: #ff7a00;
    font-size: 20px;
}

.metric span {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.metric strong {
    color: #101667;
    font-size: 15px;
}

.metric small {
    color: #16a34a;
    font-weight: 900;
    margin-left: 4px;
}

.orders {
    display: grid;
    gap: 0;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f7;
    color: #25305f;
    font-weight: 800;
}

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

.status {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.status.pago {
    background: #dcfce7;
    color: #15803d;
}

.status.enviado {
    background: #fff7ed;
    color: #ea580c;
}

.status.processando {
    background: #eff6ff;
    color: #2563eb;
}

.dash-footer {
    text-align: center;
    color: #6b7280;
    margin-top: 18px;
    font-size: 14px;
}

.dash-footer strong {
    color: #1E2A8A;
}

@media (max-width: 1100px) {
    .dash-page {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #101667;
    border-radius: 0 34px 34px 0;
    padding: 26px 20px;
    box-shadow: 18px 0 60px rgba(30,42,138,.10);
    border-right: 1px solid #edf0f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

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

    .dash-side-bottom {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    background: #fff8df;
    border: 1px solid #ffefb2;
    border-radius: 22px;
    padding: 16px;
}

    .dash-summary {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 700px) {
    .dash-main {
        padding: 22px 16px;
    }

    .dash-top {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .dash-summary {
        grid-template-columns: 1fr;
    }

    .order-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .chart-footer {
        grid-template-columns: 1fr;
    }
}
