:root {
    --navy: #0b2e59; --navy-dark: #082244; --blue: #1553b7; --green: #0f9d63; --green-dark: #0b7f50;
    --bg: #f3f7fc; --card: #fff; --text: #10233f; --muted: #5d6e87; --line: #dce5f0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "Segoe UI", system-ui, sans-serif; }
a { color: var(--blue); }
h1 { font-size: 22px; margin: 0 0 12px; color: var(--navy); }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--navy); }
.accent { color: var(--green); }
.muted { color: var(--muted); }
.center { text-align: center; }
.icon { width: 20px; height: 20px; flex: none; }

/* Header */
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: 35px; }
.brand span { font-size: 19px; font-weight: 800; line-height: 1.05; text-transform: uppercase; text-align: center; }
.brand small { display: block; font-size: 14px; letter-spacing: 2.5px; }
.topbar nav { display: flex; gap: 26px; margin: 0 auto; flex-wrap: wrap; }
.topbar nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.topbar nav a.active, .topbar nav a:hover { color: var(--green); border-bottom-color: var(--green); }
.actions { display: flex; gap: 10px; align-items: center; }
.portal .actions { margin-left: auto; }
.account { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.env { background: #fff3dc; color: #7a4b00; border-radius: 4px; padding: 1px 8px; font-size: 12px; font-weight: 700; }

/* Buttons */
button, .button { background: var(--navy); color: #fff; border: 1px solid transparent; border-radius: 6px; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
button:hover, .button:hover { filter: brightness(1.1); }
button.green, button.primary, .button.green { background: var(--green); }
button.outline, .button.outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.button.large, button.primary { font-size: 15px; padding: 12px 26px; }
button.small, .button.small { padding: 4px 10px; font-size: 12px; margin: 2px; }
button.alt { background: #556b85; }
button.danger { background: #b3261e; }
.inline { display: inline; }

/* Forms */
label { display: block; margin-bottom: 12px; font-weight: 600; }
input, select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; margin-top: 4px; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.row input, .row select { width: auto; flex: 1 1 170px; margin: 0; }
.password { display: flex; gap: 6px; align-items: stretch; margin-top: 4px; }
.password input { margin: 0; }
.password button { background: #fff; color: var(--muted); border-color: var(--line); padding: 0 12px; font-size: 12px; }

/* Cards, tables, alerts */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(11, 46, 89, .05); min-width: 0; }
.card.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.auth { padding: 28px; }
.auth .brand { justify-content: center; margin-bottom: 14px; }
.auth h1 { text-align: center; font-size: 19px; }
.auth form button:not([type="button"]) { width: 100%; padding: 12px; }
.auth p { text-align: center; margin-bottom: 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
pre { margin: 0; white-space: pre-wrap; word-break: break-all; max-width: 380px; font-size: 12px; }
code { word-break: break-all; background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.alert.ok { background: #e4f5e9; color: #14683a; }
.alert.error { background: #fde8e7; color: #9b1c14; }
.alert.warn { background: #fff3dc; color: #7a4b00; }
.site main > .alert { max-width: 900px; margin: 12px auto; }
.badge { display: inline-block; border-radius: 5px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: #e8edf4; }
.badge.success, .badge.active { background: #dcf5e6; color: #14683a; }
.badge.failure, .badge.blocked { background: #fde3e3; color: #b3261e; }
.badge.pending, .badge.approval { background: #fff1d6; color: #8a5300; }
.badge.reversal { background: #ece6fb; color: #4b2e99; }
.credit { color: var(--green-dark); font-weight: 700; }
.debit { color: #c62828; font-weight: 700; }

/* Website */
.site { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.site main { flex: 1; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 36px 20px; }
footer { background: var(--navy-dark); color: #c8d6ea; text-align: center; padding: 16px; }
.hero { background: linear-gradient(120deg, #fff 35%, #dcebfa); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: 42px; line-height: 1.2; margin-bottom: 14px; }
.hero p { font-size: 17px; max-width: 440px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.laptop-screen { background: #fff; border: 10px solid #1b2433; border-radius: 14px 14px 0 0; padding: 24px; display: flex; gap: 22px; align-items: center; justify-content: space-around; min-height: 250px; box-shadow: 0 18px 40px rgba(11, 46, 89, .18); }
.laptop-screen .brand { flex-direction: column; pointer-events: none; }
.laptop-screen .brand img { width: 82px; height: 62px; }
.laptop-screen ul { list-style: none; margin: 0; padding: 0; }
.laptop-screen li { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 8px 12px; margin: 6px 0; border-radius: 7px; box-shadow: 0 2px 8px rgba(11, 46, 89, .12); }
.laptop-screen li .icon { color: var(--green); }
.laptop-base { height: 14px; margin: 0 -22px; background: linear-gradient(#cfd7e3, #8f9bae); border-radius: 0 0 14px 14px; }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title h1 { font-size: 30px; margin-bottom: 4px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 10px; text-align: center; text-decoration: none; color: var(--navy); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 3px 10px rgba(11, 46, 89, .07); }
.service:hover { border-color: var(--green); transform: translateY(-2px); }
.service .icon { width: 40px; height: 40px; color: var(--blue); }
.service:nth-child(odd) .icon { color: var(--green); }
.service small { font-weight: 600; color: var(--muted); }
.service small.live { color: var(--green-dark); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plans .card { text-align: center; }
.plans .card > .icon { width: 44px; height: 44px; color: var(--blue); }
.checks { list-style: none; padding: 0; margin: 0; text-align: left; }
.checks li { display: flex; gap: 8px; margin: 8px 0; }
.checks .icon { color: var(--green); width: 18px; height: 18px; margin-top: 1px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .card { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.steps .icon { width: 36px; height: 36px; color: var(--green); }
.soft { background: var(--bg); }
.plans.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .plans.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans.four { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; }
.tabs a.active { background: var(--green); border-color: var(--green); color: #fff; }
.form-card { max-width: 560px; }
.form-card.wide { max-width: 760px; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: 13px/1.5 Consolas, monospace; margin-top: 4px; resize: vertical; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; padding: 12px 14px 2px; }
.menu-title { display: block; color: #8fa8cc; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 14px 12px 6px; }
h3 { font-size: 13px; color: var(--navy); margin: 14px 0 6px; }
pre.code { max-width: none; white-space: pre; word-break: normal; overflow-x: auto; background: #0f1f38; color: #dbe7fb; border-radius: 8px; padding: 12px 14px; font: 12.5px/1.55 Consolas, monospace; }
.method { background: var(--green); color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; margin-right: 6px; }
.contents { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 900px) { .menu-title { display: none; } }
@media print {
    .topbar, aside, .tabs, .noprint, .contents { display: none !important; }
    .shell { display: block; }
    .card { box-shadow: none; }
    pre.code { white-space: pre-wrap; word-break: break-all; background: #fff; color: #000; border: 1px solid #ccc; }
}
input.otp { font-size: 24px; letter-spacing: 12px; text-align: center; }

/* Dashboard */
.shell { display: flex; min-height: calc(100vh - 64px); }
aside { width: 220px; flex: none; background: linear-gradient(var(--navy), var(--navy-dark)); padding: 14px 10px; }
aside a { display: flex; align-items: center; gap: 12px; color: #e4edfa; text-decoration: none; padding: 11px 12px; border-radius: 7px; margin-bottom: 4px; font-weight: 600; }
aside a:hover { background: rgba(255, 255, 255, .08); }
aside a.active { background: var(--green); color: #fff; }
.shell main { flex: 1; min-width: 0; padding: 20px 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 2px 8px rgba(11, 46, 89, .06); }
.stat span:not(.stat-icon) { display: block; font-weight: 600; }
.stat strong { display: block; font-size: 21px; color: var(--navy); line-height: 1.25; white-space: nowrap; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.stat-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat-icon .icon { width: 28px; height: 28px; }
.stat-icon.blue { background: #e3eefd; color: var(--blue); }
.stat-icon.green { background: #dcf5e6; color: var(--green); }
.stat-icon.orange { background: #fff1d6; color: #d98200; }
.stat-icon.red { background: #fde3e3; color: #d32f2f; }
.columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 9px; padding: 14px 6px; text-align: center; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; width: 100%; }
.tile .icon { width: 32px; height: 32px; color: var(--green); }
.tiles form button.tile { background: #fff; color: var(--navy); border-color: var(--green); height: 100%; font-size: 12px; }
.big { font-size: 30px; font-weight: 800; color: var(--navy); }

@media (max-width: 900px) {
    .topbar { padding: 12px 16px; gap: 12px; }
    .topbar nav { order: 3; width: 100%; gap: 18px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
    .site .actions { margin-left: auto; }
    .hero .wrap, .columns, .plans, .steps { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .laptop-base { margin: 0; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .shell { flex-direction: column; }
    aside { width: 100%; display: flex; overflow-x: auto; padding: 8px; gap: 4px; white-space: nowrap; }
    aside a { margin: 0; }
    .shell main { padding: 16px; }
    .topbar nav, aside { scrollbar-width: none; }
}
@media (max-width: 480px) {
    .laptop-screen { flex-direction: column; padding: 14px; }
}
