:root {
    --meterpro-blue: #078fe7;
    --meterpro-blue-dark: #0564e8;
    --meterpro-green: #3cbd1f;
    --meterpro-navy: #062a5c;
    color: #17212b;
    background: #f1f5f9;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body, #app { min-height: 100%; }

body { margin: 0; }

.volt-web-layout,
.volt-web-main {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgb(7 143 231 / 18%) 0, transparent 34%), radial-gradient(circle at top left, rgb(60 189 31 / 12%) 0, transparent 30%), #f5f9fd;
}

.volt-web-appbar {
    height: 68px;
    color: #17212b !important;
    background: rgb(255 255 255 / 94%) !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
}

.volt-brand { font-weight: 800 !important; letter-spacing: -.03em; }
.meterpro-header-logo { display: block; width: 144px; height: 40px; object-fit: contain; object-position: left center; }
.volt-user-name { margin-right: 8px; color: #52606d; }

.volt-web-drawer {
    width: 272px !important;
    padding-top: 0;
    color: #dcecff;
    background: linear-gradient(180deg, #062a5c, #073e7d) !important;
    border-right: 0 !important;
}

.volt-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgb(226 232 240 / 12%);
}

.volt-drawer-header .mud-typography-overline {
    color: #81e64e;
    font-weight: 800;
    letter-spacing: .11em;
}

.volt-drawer-header .mud-typography-subtitle2 { color: #fff; font-size: 1.05rem; }

.volt-drawer-arrow {
    color: #c5d7d3 !important;
    border: 1px solid rgb(226 232 240 / 18%);
}

.volt-drawer-arrow:hover { color: #fff !important; background: rgb(255 255 255 / 9%); }

.volt-drawer-edge-toggle {
    position: fixed !important;
    top: 84px;
    left: 8px;
    z-index: 1201;
    width: 32px;
    height: 40px;
    border-radius: 0 10px 10px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgb(15 23 42 / 14%);
}

.volt-nav-menu { padding: 16px 12px; }

.volt-nav-menu .mud-nav-link {
    min-height: 46px;
    margin: 3px 0;
    color: #c5d7d3;
    border-radius: 9px;
}

.volt-nav-menu .mud-nav-link:hover { color: #fff; background: rgb(255 255 255 / 9%); }
.volt-nav-menu .mud-nav-link.active { color: #fff; background: var(--meterpro-blue); }
.volt-nav-menu .mud-nav-link .mud-icon-root { color: inherit; }

.volt-drawer-footer {
    position: absolute;
    right: 12px;
    bottom: 20px;
    left: 12px;
}

.volt-drawer-divider {
    margin: 0 0 12px;
    border-color: rgb(226 232 240 / 12%) !important;
}

.volt-drawer-footer .mud-button-root {
    justify-content: flex-start;
    color: #c5d7d3 !important;
}

.volt-drawer-footer .mud-button-root:hover {
    color: #fff !important;
    background: rgb(255 255 255 / 9%);
}

.volt-web-main .volt-page-container {
    max-width: 1440px !important;
    padding: 32px 32px 40px !important;
}

@media (max-width: 959px) {
    .volt-web-drawer { padding-top: 0; }
    .volt-web-main .volt-page-container { padding: 28px 20px 28px !important; }
}

@media (max-width: 600px) {
    .volt-user-name { display: none; }
    .volt-web-main .volt-page-container { padding: 24px 16px 24px !important; }
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top right, rgb(7 143 231 / 18%) 0, transparent 32%), radial-gradient(circle at top left, rgb(60 189 31 / 12%) 0, transparent 30%), #f5f9fd;
}

.activation-card {
    width: min(100%, 440px);
    padding: 40px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 45px rgb(15 23 42 / 14%);
}

.activation-brand {
    display: grid;
    justify-items: center;
    margin-bottom: 20px;
}

.activation-logo {
    display: block;
    width: min(220px, 72%);
    height: auto;
    margin-top: -16px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--meterpro-blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.activation-card h1,
.payment-result-card h1 { margin: 0; font-size: 1.85rem; letter-spacing: -.03em; }

.activation-card .intro,
.payment-result-card .intro { margin: 12px 0 28px; color: #52606d; line-height: 1.5; }

.activation-card label { display: block; margin: 18px 0 7px; font-size: .9rem; font-weight: 700; }

.activation-card input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
}

.activation-card input:focus { outline: 3px solid rgb(7 143 231 / 22%); border-color: var(--meterpro-blue); }
.activation-card input[readonly] { color: #52606d; background: #f8fafc; }

.activation-card .password-help { margin: 12px 0 24px; color: #64748b; font-size: .82rem; line-height: 1.45; }

.activation-card button,
.activation-login-button {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--meterpro-blue), var(--meterpro-blue-dark));
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.activation-card button:hover,
.activation-login-button:hover { background: var(--meterpro-blue-dark); }
.activation-card button:disabled { cursor: wait; opacity: .65; }

.activation-card .message { margin: 24px 0 0; padding: 12px 14px; border-radius: 9px; line-height: 1.45; }
.activation-card .message.error { color: #9f1239; background: #fff1f2; }
.activation-card .message.success { color: #166534; background: #f0fdf4; }

.payment-result-card {
    width: min(100%, 500px);
    padding: 42px 40px;
    text-align: center;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 45px rgb(15 23 42 / 14%);
}

.payment-result-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    place-items: center;
    border-radius: 999px;
    font-size: 2rem;
    font-weight: 800;
}

.payment-result-success .payment-result-icon { color: #166534; background: #dcfce7; }
.payment-result-cancelled .payment-result-icon { color: #9f1239; background: #fff1f2; }
.payment-result-error .payment-result-icon { color: #9a3412; background: #ffedd5; }

.payment-result-card .intro { margin-bottom: 22px; }

.payment-result-note {
    padding: 14px 16px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: .92rem;
    line-height: 1.5;
}

.payment-result-footer {
    margin: 20px 0 0;
    color: #64748b;
    font-size: .86rem;
}

@media (max-width: 480px) {
    .activation-card,
    .payment-result-card { padding: 30px 24px; }
}
