:root {
    --renko-green: #339033;
    --renko-green-50: #f1fbf1;
    --renko-green-100: #dcf7dc;
    --renko-green-200: #bcecbc;
    --renko-green-300: #8fdc90;
    --renko-green-400: #5fc660;
    --renko-green-500: #339033;
    --renko-green-600: #2d812d;
    --renko-green-700: #256b25;
    --renko-green-800: #1f561f;
    --renko-green-900: #193f19;
    --renko-black: #1d1d1b;
    --renko-ink: #111311;
    --bg: #f5faf5;
    --panel: #ffffff;
    --panel-soft: #f8fcf8;
    --panel-strong: #1d1d1b;
    --muted: #627062;
    --text: #1d1d1b;
    --border: #dce8dc;
    --brand: #339033;
    --brand-dark: #256b25;
    --accent: #43b047;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #339033;
    --shadow: 0 24px 80px rgba(29, 29, 27, .12);
    --focus-ring: rgba(51, 144, 51, .18);
    --sidebar-bg: #1d1d1b;
    --sidebar-text: #eff8ef;
    --sidebar-muted: #bfcebf;
    color-scheme: light;
}
html[data-theme="dark"] {
    --bg: #090b09;
    --panel: #121612;
    --panel-soft: #171d17;
    --panel-strong: #f4fff4;
    --muted: #a6b7a6;
    --text: #eef8ee;
    --border: #263226;
    --brand: #45b54a;
    --brand-dark: #72d776;
    --accent: #58c85d;
    --shadow: 0 24px 80px rgba(0, 0, 0, .35);
    --focus-ring: rgba(69, 181, 74, .28);
    --sidebar-bg: #070907;
    --sidebar-text: #f4fff4;
    --sidebar-muted: #a8baa8;
    color-scheme: dark;
}* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: white; box-shadow: var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 14px; transition: .2s ease; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: #c4b5fd; }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-full { width: 100%; }
.hero { position: relative; padding: 76px 0 64px; overflow: hidden; }
.hero:before { content: ""; position: absolute; inset: -200px -160px auto auto; width: 520px; height: 520px; border-radius: 999px; background: rgba(124, 58, 237, .18); filter: blur(8px); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #ede9fe; color: var(--brand-dark); border: 1px solid #ddd6fe; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 13px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: .96; letter-spacing: -.055em; margin: 22px 0; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card, .card { background: var(--panel); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); }
.hero-card { padding: 24px; }
.mock-terminal { background: #0f172a; color: #dbeafe; border-radius: 20px; padding: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; overflow: hidden; }
.mock-line { display: block; padding: 5px 0; white-space: nowrap; }
.mock-ok { color: #5eead4; }
.mock-key { color: #c4b5fd; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat { background: #f8fafc; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.section { padding: 58px 0; }
.section h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.04em; margin: 0 0 16px; }
.section-subtitle { color: var(--muted); max-width: 720px; line-height: 1.7; margin: 0 0 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: 24px; border: 1px solid var(--border); background: white; }
.feature-icon { width: 44px; height: 44px; border-radius: 16px; background: #ede9fe; color: var(--brand); display: grid; place-items: center; font-weight: 900; margin-bottom: 18px; }
.feature h3 { margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0; line-height: 1.6; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(circle at top right, rgba(20, 184, 166, .18), transparent 30%), var(--bg); }
.auth-card { width: min(760px, 100%); background: white; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); padding: 30px; }
.auth-card.compact { width: min(460px, 100%); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.form-row.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 13px; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font: inherit; background: white; color: var(--text); }
input:focus, textarea:focus { outline: 3px solid rgba(124, 58, 237, .16); border-color: var(--brand); }
.error-text { color: var(--danger); font-size: 13px; }
.alert { border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--border); }
.alert-success { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.alert-error { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.alert-warning { background: #fef3c7; color: #78350f; border-color: #fde68a; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { background: #0f172a; color: white; padding: 24px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand-mark { box-shadow: none; }
.sidebar-nav { display: grid; gap: 8px; margin-top: 28px; }
.sidebar-nav a, .sidebar-nav button { width: 100%; text-align: left; border: 0; background: transparent; color: #cbd5e1; padding: 12px 14px; border-radius: 14px; font-weight: 700; cursor: pointer; }
.sidebar-nav a.active, .sidebar-nav a:hover, .sidebar-nav button:hover { background: rgba(255,255,255,.10); color: white; }
.main { padding: 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.topbar h1 { margin: 0; letter-spacing: -.035em; }
.muted { color: var(--muted); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { padding: 22px; box-shadow: none; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi-value { display: block; font-size: 28px; font-weight: 900; margin-top: 8px; letter-spacing: -.03em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 14px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.status { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #e2e8f0; color: #334155; }
.status.PAID, .status.PROCESSED { background: #dcfce7; color: #166534; }
.status.PENDING, .status.CREATED { background: #fef3c7; color: #92400e; }
.status.FAILED, .status.CANCELLED, .status.EXPIRED { background: #fee2e2; color: #991b1b; }
.secret-box { background: #0f172a; color: #e0f2fe; border-radius: 18px; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow-x: auto; }
.mobile-header { display: none; background: #0f172a; color: white; padding: 14px 18px; align-items: center; justify-content: space-between; }
.pagination { margin-top: 18px; }
@media (max-width: 960px) {
    .hero-grid, .feature-grid, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .main { padding: 18px; }
}
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .nav { align-items: flex-start; }
    .nav-links { justify-content: flex-start; }
    .hero { padding-top: 42px; }
    .stats { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
}

.nav-link { color: var(--muted); font-weight: 800; padding: 10px 8px; }
.nav-link:hover { color: var(--brand-dark); }
.dev-highlight { padding-top: 24px; }
.card-dark { background: #0f172a; color: white; border-color: rgba(255,255,255,.10); }
.card-dark h2 { color: white; }
.light { color: #cbd5e1; }
.badge-dark { background: rgba(124, 58, 237, .22); color: #ddd6fe; border-color: rgba(221,214,254,.22); }
.btn-dark-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,.22); }
.btn-dark-outline:hover { border-color: white; }
.docs-preview-card { display: grid; place-items: center; min-height: 280px; }
.swagger-mini { display: grid; gap: 10px; width: 100%; }
.swagger-mini-row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.swagger-mini-row strong { display: inline-flex; justify-content: center; border-radius: 10px; padding: 7px 9px; color: white; font-size: 12px; }
.swagger-mini-row.post strong, .method.post { background: #16a34a; }
.swagger-mini-row.get strong, .method.get { background: #2563eb; }
.dev-hero { padding-bottom: 38px; }
.section-header-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.auth-flow { margin-bottom: 18px; }
.auth-flow ol { color: var(--muted); line-height: 1.7; padding-left: 22px; }
code { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; border-radius: 8px; padding: 2px 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .92em; }
pre { margin: 12px 0 0; overflow-x: auto; background: #0f172a; color: #dbeafe; border-radius: 18px; padding: 18px; line-height: 1.55; }
pre code { background: transparent; color: inherit; border: 0; padding: 0; }
.swagger-list { display: grid; gap: 12px; }
.swagger-card { background: white; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.swagger-card summary { cursor: pointer; display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; font-weight: 900; }
.swagger-card summary small { color: var(--muted); font-weight: 700; }
.method { color: white; border-radius: 10px; padding: 8px 10px; text-align: center; font-size: 12px; }
.swagger-body { border-top: 1px solid var(--border); padding: 18px; color: var(--muted); }
.plugin-card { display: flex; flex-direction: column; }
.plugin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.snippet-selector { padding: 18px; }
.snippet-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.snippet-tab { border: 1px solid var(--border); background: white; color: var(--text); border-radius: 999px; padding: 10px 14px; font-weight: 900; cursor: pointer; }
.snippet-tab.active { background: var(--brand); color: white; border-color: var(--brand); }
.snippet-select { display: none; margin-bottom: 14px; }
.snippet-current-language { margin: 0 0 12px; color: var(--muted); font-weight: 800; }
.snippet-current-language strong { color: var(--text); }
.snippet-panel { display: none; }
.snippet-panel.active { display: block; }
@media (max-width: 760px) {
    .section-header-line { align-items: flex-start; flex-direction: column; }
    .header-actions { justify-content: flex-start; }
    .swagger-card summary { grid-template-columns: 74px 1fr; }
    .swagger-card summary small { grid-column: 1 / -1; }
    .snippet-tabs { display: none; }
    .snippet-select { display: block; }
}

.check-card { display:flex; align-items:center; gap:8px; background:#f8fafc; border:1px solid var(--border); border-radius:16px; padding:12px 14px; font-weight:800; }
.check-card input { width:auto; }
textarea { min-height: 110px; }

/* Auditoria */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin: 16px 0; }
.filter-bar input, .filter-bar select { min-height: 42px; border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; background: #fff; }
.table-card, .panel-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); overflow-x: auto; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.details-list { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; word-break: break-all; }
.code-block { background: #0f172a; color: #e0f2fe; border-radius: 14px; padding: 16px; overflow: auto; max-height: 520px; font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.small { font-size: 12px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 700; }
.link { color: #2563eb; font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
@media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } .admin-page-header { align-items: flex-start; flex-direction: column; } }

/* Monitoramento de adquirentes */
.acquirer-monitor { width: 100%; margin-bottom: 16px; }
.monitor-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.monitor-header h2 { margin: 10px 0 6px; font-size: 26px; letter-spacing: -.03em; }
.monitor-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; }
.monitor-controls label { display: flex; flex-direction: column; gap: 6px; min-width: 140px; color: var(--muted); }
.health-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.health-card { border: 1px solid var(--border); border-radius: 18px; padding: 14px; background: #f8fafc; }
.health-card-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.health-card-title strong { display: block; }
.health-card-title span { color: var(--muted); font-size: 12px; font-weight: 800; }
.health-card-status { font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.health-card-meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.health-ONLINE { background: #f0fdf4; border-color: #bbf7d0; }
.health-DEGRADED { background: #fffbeb; border-color: #fde68a; }
.health-OFFLINE { background: #fef2f2; border-color: #fecaca; }
.health-UNKNOWN { background: #f8fafc; border-color: var(--border); }
.status.ONLINE { background: #dcfce7; color: #166534; }
.status.DEGRADED { background: #fef3c7; color: #92400e; }
.status.OFFLINE { background: #fee2e2; color: #991b1b; }
.status.UNKNOWN { background: #e2e8f0; color: #334155; }
.monitor-chart-wrap { width: 100%; border: 1px solid var(--border); border-radius: 22px; background: white; padding: 12px; overflow: hidden; }
.monitor-chart-wrap canvas { display: block; width: 100%; }
.monitor-footer { margin-top: 14px; }
.monitor-events-wrap { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 18px; background: white; }
@media (max-width: 1180px) { .health-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .monitor-header { flex-direction: column; } .monitor-controls { justify-content: flex-start; } .health-summary-grid { grid-template-columns: 1fr; } }

/* Correções de responsividade do monitoramento */
.app-shell { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); }
.main, .card, .acquirer-monitor, .monitor-chart-wrap, .monitor-footer { min-width: 0; max-width: 100%; }
.main { overflow-x: hidden; }
.monitor-chart-wrap { width: 100%; max-width: 100%; contain: layout paint; }
.monitor-chart-wrap canvas { display: block; width: 100% !important; max-width: 100%; height: 260px; }
.health-summary-grid { max-width: 100%; }
.health-card { min-width: 0; overflow-wrap: anywhere; }
.monitor-events-wrap { max-width: 100%; }
.monitor-events-wrap table { width: 100%; }
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .main { padding: 18px; }
}

/* Dashboard command center, inspirado no painel visual de produto financeiro */
.dashboard-console-shell {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(16px, 2.4vw, 28px);
    color: #e5f3ff;
    background:
        radial-gradient(circle at 15% 5%, rgba(56, 189, 248, .25), transparent 26%),
        radial-gradient(circle at 88% 2%, rgba(20, 184, 166, .19), transparent 24%),
        linear-gradient(135deg, #0a1220 0%, #0f172a 45%, #06111f 100%);
    box-shadow: 0 28px 90px rgba(2, 6, 23, .25);
}
.dashboard-console-shell * { min-width: 0; }
.console-glow { position: absolute; width: 340px; height: 340px; border-radius: 999px; filter: blur(24px); opacity: .34; pointer-events: none; }
.console-glow-left { left: -160px; top: 180px; background: #22d3ee; }
.console-glow-right { right: -180px; bottom: 120px; background: #2563eb; }
.console-topbar { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.console-topbar h1 { margin: 6px 0 8px; color: #f8fafc; font-size: clamp(28px, 3.2vw, 44px); line-height: 1; letter-spacing: -.055em; }
.console-topbar p, .console-card p { margin: 0; color: #94a3b8; line-height: 1.55; }
.console-eyebrow { color: #67e8f9; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
.console-actions, .console-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.console-btn { border: 1px solid rgba(148, 163, 184, .24); background: rgba(15, 23, 42, .70); color: #e0f2fe; border-radius: 14px; padding: 11px 15px; font-weight: 900; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.console-btn.primary { background: linear-gradient(135deg, #06b6d4, #2563eb); color: white; border-color: rgba(103, 232, 249, .35); }
.console-btn.compact { padding: 10px 13px; }
.console-link { color: #67e8f9; font-weight: 900; font-size: 13px; }
.console-chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border-radius: 999px; padding: 7px 11px; border: 1px solid rgba(103, 232, 249, .30); background: rgba(8, 47, 73, .62); color: #a5f3fc; font-weight: 900; font-size: 12px; }
.console-chip.pulse:before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 16px #22c55e; }
.console-card { position: relative; z-index: 1; border: 1px solid rgba(148, 163, 184, .18); border-radius: 24px; background: linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(8, 13, 25, .92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 20px 60px rgba(0, 0, 0, .22); padding: clamp(16px, 2vw, 22px); overflow: hidden; }
.console-card:before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(34, 211, 238, .09), transparent 42%, rgba(59, 130, 246, .08)); pointer-events: none; }
.console-card > * { position: relative; z-index: 1; }
.console-card h2 { margin: 0 0 6px; color: #f8fafc; font-size: 20px; letter-spacing: -.035em; }
.console-card-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.console-card-header.inline { align-items: center; }
.console-controls label { display: flex; flex-direction: column; gap: 6px; min-width: 132px; color: #94a3b8; font-weight: 900; font-size: 12px; }
.console-controls select { border-color: rgba(148, 163, 184, .24); background: rgba(2, 6, 23, .68); color: #e0f2fe; }
.console-monitor { margin-bottom: 16px; }
.console-health-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.console-health-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 10px; padding: 13px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, .18); background: rgba(15, 23, 42, .70); overflow: hidden; }
.console-health-card .health-orb { width: 12px; height: 12px; border-radius: 999px; background: #94a3b8; box-shadow: 0 0 18px rgba(148, 163, 184, .75); }
.console-health-card strong { color: #f8fafc; }
.console-health-card span { color: #64748b; font-size: 12px; font-weight: 900; text-align: right; }
.console-health-card b { grid-column: 2 / 4; color: #e2e8f0; font-size: 20px; letter-spacing: -.04em; }
.console-health-card small { grid-column: 2 / 4; color: #94a3b8; }
.console-health-card.health-ONLINE { border-color: rgba(34, 197, 94, .35); background: rgba(20, 83, 45, .26); }
.console-health-card.health-ONLINE .health-orb { background: #22c55e; box-shadow: 0 0 18px #22c55e; }
.console-health-card.health-DEGRADED { border-color: rgba(245, 158, 11, .45); background: rgba(120, 53, 15, .24); }
.console-health-card.health-DEGRADED .health-orb { background: #f59e0b; box-shadow: 0 0 18px #f59e0b; }
.console-health-card.health-OFFLINE { border-color: rgba(239, 68, 68, .42); background: rgba(127, 29, 29, .22); }
.console-health-card.health-OFFLINE .health-orb { background: #ef4444; box-shadow: 0 0 18px #ef4444; }
.console-chart-wrap { width: 100%; max-width: 100%; border: 1px solid rgba(148, 163, 184, .18); border-radius: 22px; padding: 0; overflow: hidden; background: #0a1220; contain: inline-size layout paint; }
.console-chart-wrap canvas { display: block; width: 100% !important; max-width: 100% !important; height: 270px !important; }
.console-monitor-footer { margin-top: 14px; }
.console-muted { color: #94a3b8 !important; }
.console-table-wrap { width: 100%; max-width: 100%; overflow: auto; border: 1px solid rgba(148, 163, 184, .18); border-radius: 18px; background: rgba(2, 6, 23, .36); }
.console-table-wrap table { min-width: 720px; color: #cbd5e1; }
.console-table-wrap th, .console-table-wrap td { border-bottom-color: rgba(148, 163, 184, .16); }
.console-table-wrap th { color: #94a3b8; }
.console-kpi-grid { display: grid; grid-template-columns: 1.2fr .9fr .75fr .85fr; gap: 16px; margin-bottom: 16px; }
.console-kpi-label { display: block; color: #94a3b8; font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.console-kpi-value { display: block; color: #f8fafc; font-size: clamp(26px, 2.7vw, 40px); line-height: 1; letter-spacing: -.055em; }
.console-positive { display: block; margin-top: 10px; color: #4ade80; font-weight: 900; }
.mini-sparkline { display: flex; align-items: end; gap: 5px; width: 160px; height: 74px; padding: 10px; border-radius: 18px; background: linear-gradient(180deg, rgba(14, 165, 233, .22), rgba(14, 165, 233, .04)); }
.mini-sparkline span { flex: 1; border-radius: 999px 999px 4px 4px; background: linear-gradient(180deg, #67e8f9, #2563eb); min-height: 18px; box-shadow: 0 0 18px rgba(103, 232, 249, .35); }
.mini-sparkline span:nth-child(1) { height: 30%; }
.mini-sparkline span:nth-child(2) { height: 42%; }
.mini-sparkline span:nth-child(3) { height: 52%; }
.mini-sparkline span:nth-child(4) { height: 45%; }
.mini-sparkline span:nth-child(5) { height: 70%; }
.mini-sparkline span:nth-child(6) { height: 62%; }
.mini-sparkline span:nth-child(7) { height: 88%; }
.operation-status { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; }
.operation-status span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; font-size: 24px; font-weight: 900; }
.operation-status.approved span { background: #22c55e; color: white; box-shadow: 0 0 24px rgba(34, 197, 94, .55); }
.operation-status.attention span { background: #f59e0b; color: white; box-shadow: 0 0 24px rgba(245, 158, 11, .50); }
.operation-status strong { color: #f8fafc; font-size: 24px; letter-spacing: -.04em; }
.console-dashboard-grid { display: grid; grid-template-columns: 1.25fr .95fr .8fr; gap: 16px; }
.transactions-card { grid-row: span 2; }
.console-list, .receiver-list, .acquirer-list { display: grid; gap: 11px; }
.transaction-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 17px; background: rgba(15, 23, 42, .66); border: 1px solid rgba(148, 163, 184, .12); }
.tx-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(56, 189, 248, .18); color: #67e8f9; font-size: 22px; }
.tx-icon.pix { background: rgba(45, 212, 191, .18); color: #5eead4; }
.tx-icon.boleto { background: rgba(191, 219, 254, .14); color: #bfdbfe; }
.transaction-row strong { color: #f8fafc; }
.transaction-row small { display: block; margin-top: 3px; color: #94a3b8; }
.tx-amount { text-align: right; }
.tx-amount strong { display: block; margin-bottom: 5px; }
.console-status { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 900; background: rgba(148, 163, 184, .18); color: #cbd5e1; }
.console-status.PAID, .console-status.PROCESSED, .console-status.ACTIVE, .console-status.ONLINE { background: rgba(34, 197, 94, .18); color: #86efac; }
.console-status.PENDING, .console-status.CREATED, .console-status.DEGRADED { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.console-status.FAILED, .console-status.CANCELLED, .console-status.EXPIRED, .console-status.OFFLINE, .console-status.INACTIVE { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.split-visual { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.donut { width: 148px; height: 148px; border-radius: 999px; background: conic-gradient(#38bdf8 0 calc(var(--renko) * 1%), #2563eb calc(var(--renko) * 1%) calc((var(--renko) + var(--partner)) * 1%), #e0f2fe calc((var(--renko) + var(--partner)) * 1%) 100%); position: relative; box-shadow: 0 0 26px rgba(56, 189, 248, .20); }
.donut:after { content: ""; position: absolute; inset: 38px; background: #0b1323; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .18); }
.split-legend { display: grid; gap: 11px; }
.split-legend div { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; color: #cbd5e1; }
.split-legend span { width: 10px; height: 10px; border-radius: 999px; background: #38bdf8; }
.split-legend div:nth-child(2) span { background: #2563eb; }
.split-legend div:nth-child(3) span { background: #e0f2fe; }
.split-legend em { color: #e0f2fe; font-style: normal; font-weight: 900; }
.receiver-list div, .acquirer-list div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(15, 23, 42, .62); border: 1px solid rgba(148, 163, 184, .12); }
.receiver-list span, .acquirer-list span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 13px; background: rgba(56, 189, 248, .16); color: #67e8f9; font-weight: 900; }
.receiver-list strong, .acquirer-list strong { color: #f8fafc; }
.receiver-list em { grid-column: 2 / 3; color: #94a3b8; font-style: normal; font-size: 12px; }
.receiver-list b { grid-column: 3 / 4; grid-row: 1 / 3; color: #e0f2fe; }
.api-connection-graphic { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
.api-cube { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 24px; color: #a5f3fc; font-weight: 1000; border: 1px solid rgba(103, 232, 249, .35); background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, .28), rgba(15, 23, 42, .60)); box-shadow: 0 0 30px rgba(56, 189, 248, .22); }
.api-connection-graphic ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.api-connection-graphic li { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; color: #cbd5e1; }
.api-connection-graphic li span { width: 8px; height: 8px; border-radius: 999px; background: #38bdf8; box-shadow: 0 0 14px #38bdf8; }
.api-connection-graphic li b { color: #4ade80; }
.acquirer-list em { font-style: normal; }
@media (max-width: 1280px) {
    .console-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .console-dashboard-grid { grid-template-columns: 1fr 1fr; }
    .transactions-card { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .console-topbar, .console-card-header, .monitor-header { flex-direction: column; }
    .console-actions, .console-controls { justify-content: flex-start; }
    .console-health-strip, .console-kpi-grid, .console-dashboard-grid { grid-template-columns: 1fr; }
    .split-visual, .api-connection-graphic { grid-template-columns: 1fr; }
    .transaction-row { grid-template-columns: auto 1fr; }
    .tx-amount { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 640px) {
    .dashboard-console-shell { border-radius: 22px; margin: -4px; }
    .console-controls label, .console-btn { width: 100%; }
    .mini-sparkline { width: 100%; }
    .console-table-wrap table { min-width: 640px; }
}

/* RenkoPay Gateway theme, cores extraídas da logomarca Renko, verde #339033 e preto #1d1d1b */
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); overflow-x: hidden; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.container { width: min(1180px, calc(100% - clamp(24px, 6vw, 64px))); }
.brand { color: var(--text); min-width: 0; }
.sidebar .brand { color: var(--sidebar-text); }
.brand-name { display: grid; line-height: 1.02; min-width: 0; }
.brand-name strong { font-size: 16px; letter-spacing: -.035em; }
.brand-name small { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.sidebar .brand-name small { color: var(--sidebar-muted); }
.brand-mark { background: transparent; color: var(--brand); box-shadow: none; }
.brand-mark-renko { width: 46px; height: 42px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 3px; border-radius: 12px; border: 1px solid rgba(51, 144, 51, .20); background: linear-gradient(180deg, rgba(51, 144, 51, .12), rgba(51, 144, 51, .04)); }
.brand-mark-renko i { display: block; width: 6px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 1px rgba(51, 144, 51, .08); }
.brand-mark-renko i:nth-child(1) { height: 42%; opacity: .78; }
.brand-mark-renko i:nth-child(2) { height: 58%; opacity: .84; }
.brand-mark-renko i:nth-child(3) { height: 72%; opacity: .90; }
.brand-mark-renko i:nth-child(4) { height: 86%; opacity: .96; }
.brand-mark-renko i:nth-child(5) { height: 100%; }
.nav { align-items: center; }
.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--brand-dark); }
.theme-toggle, .sidebar-theme-toggle, .mobile-menu-button { border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 999px; padding: 10px 14px; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.theme-toggle:hover, .sidebar-theme-toggle:hover, .mobile-menu-button:hover { border-color: var(--brand); transform: translateY(-1px); }
.sidebar-theme-toggle { width: 100%; border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--sidebar-text); border-color: rgba(255,255,255,.12); text-align: left; justify-content: flex-start; padding: 12px 14px; }
.auth-theme-toggle { position: fixed; top: 18px; right: 18px; z-index: 10; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border: 1px solid rgba(51, 144, 51, .12); box-shadow: 0 14px 34px rgba(51, 144, 51, .22); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); transform: translateY(-1px); }
.btn-secondary { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-dark-outline { background: transparent; color: #f2fff2; border-color: rgba(255,255,255,.26); }
.hero { background: radial-gradient(circle at top right, rgba(51, 144, 51, .14), transparent 34%); }
.hero:before { background: rgba(51, 144, 51, .18); }
.badge, .badge-dark { background: rgba(51, 144, 51, .12); color: var(--brand-dark); border-color: rgba(51, 144, 51, .25); }
html[data-theme="dark"] .badge, html[data-theme="dark"] .badge-dark { color: #b8f5ba; background: rgba(51, 144, 51, .20); border-color: rgba(91, 205, 95, .30); }
.hero-card, .card, .feature, .auth-card, .stat, .swagger-card, .table-card, .panel-card, .filter-bar, .monitor-chart-wrap, .monitor-events-wrap { background: var(--panel); border-color: var(--border); color: var(--text); }
.card-dark { background: linear-gradient(135deg, #1d1d1b, #102510); color: #f4fff4; border-color: rgba(91, 205, 95, .24); }
.card-dark h2 { color: #f4fff4; }
.light { color: #d5e6d5; }
.feature-icon { background: rgba(51, 144, 51, .12); color: var(--brand); }
.stat { background: var(--panel-soft); }
.mock-terminal, pre, .secret-box, .code-block { background: #1d1d1b; color: #e8fae8; }
.mock-ok { color: #7ee083; }
.mock-key { color: #a9f0ab; }
code { background: var(--panel-soft); color: var(--brand-dark); border-color: var(--border); }
input, select, textarea { background: var(--panel); border-color: var(--border); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus-ring); border-color: var(--brand); }
.check-card { background: var(--panel-soft); border-color: var(--border); }
.swagger-mini-row { background: var(--panel-soft); border-color: var(--border); }
.swagger-mini-row.post strong, .method.post { background: var(--brand); }
.swagger-mini-row.get strong, .method.get { background: var(--renko-black); }
.snippet-tab { background: var(--panel); color: var(--text); border-color: var(--border); }
.snippet-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.link { color: var(--brand-dark); }
.table-wrap, .table-card, .panel-card { max-width: 100%; }
th, .muted, .section-subtitle, .feature p, .stat span, .swagger-body, .auth-flow ol { color: var(--muted); }
td, th { border-bottom-color: var(--border); }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-text); }
.sidebar-nav a, .sidebar-nav button { color: var(--sidebar-muted); }
.sidebar-nav a.active, .sidebar-nav a:hover, .sidebar-nav button:hover { background: rgba(51, 144, 51, .18); color: #f4fff4; }
.mobile-header { background: var(--sidebar-bg); color: var(--sidebar-text); border-bottom: 1px solid rgba(51, 144, 51, .20); }
.mobile-header span { font-weight: 900; letter-spacing: -.03em; }
.status.PAID, .status.PROCESSED, .status.ONLINE { background: rgba(51, 144, 51, .16); color: var(--brand-dark); }
html[data-theme="dark"] .status.PAID, html[data-theme="dark"] .status.PROCESSED, html[data-theme="dark"] .status.ONLINE { color: #99ee9b; }
.health-ONLINE { background: rgba(51, 144, 51, .13); border-color: rgba(51, 144, 51, .28); }
html[data-theme="dark"] .health-UNKNOWN { background: var(--panel-soft); border-color: var(--border); }
.alert-success { background: rgba(51, 144, 51, .14); color: var(--brand-dark); border-color: rgba(51, 144, 51, .24); }
html[data-theme="dark"] .alert-success { color: #b8f5ba; }

/* Dashboard command center no padrão RenkoPay */
.dashboard-console-shell {
    color: #effbef;
    background:
        radial-gradient(circle at 15% 5%, rgba(51, 144, 51, .30), transparent 27%),
        radial-gradient(circle at 88% 2%, rgba(91, 205, 95, .18), transparent 25%),
        linear-gradient(135deg, #050705 0%, #1d1d1b 48%, #0b190b 100%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}
.console-glow-left { background: var(--brand); }
.console-glow-right { background: #72d776; }
.console-eyebrow, .console-link { color: #a8f0aa; }
.console-chip { border-color: rgba(91, 205, 95, .34); background: rgba(51, 144, 51, .20); color: #caf7ca; }
.console-card { border-color: rgba(116, 210, 119, .17); background: linear-gradient(180deg, rgba(18, 24, 18, .94), rgba(6, 10, 6, .94)); }
.console-card:before { background: linear-gradient(135deg, rgba(51, 144, 51, .14), transparent 45%, rgba(91, 205, 95, .07)); }
.console-btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-color: rgba(147, 234, 149, .36); }
.console-controls select { background: rgba(6, 10, 6, .78); }
.console-chart-wrap { background: #070907; border-color: rgba(116, 210, 119, .17); }
.console-table-wrap { background: rgba(6, 10, 6, .52); border-color: rgba(116, 210, 119, .17); }
.mini-sparkline { background: linear-gradient(180deg, rgba(51, 144, 51, .25), rgba(51, 144, 51, .05)); }
.mini-sparkline span { background: linear-gradient(180deg, #a8f0aa, var(--brand)); box-shadow: 0 0 18px rgba(91, 205, 95, .36); }
.tx-icon, .receiver-list span, .acquirer-list span { background: rgba(51, 144, 51, .18); color: #a8f0aa; }
.tx-icon.pix { background: rgba(91, 205, 95, .18); color: #b8f5ba; }
.tx-icon.boleto { background: rgba(240, 255, 240, .10); color: #effbef; }
.donut { background: conic-gradient(var(--brand) 0 calc(var(--renko) * 1%), #72d776 calc(var(--renko) * 1%) calc((var(--renko) + var(--partner)) * 1%), #f3fff3 calc((var(--renko) + var(--partner)) * 1%) 100%); box-shadow: 0 0 26px rgba(51, 144, 51, .20); }
.donut:after { background: #0b100b; }
.split-legend span { background: var(--brand); }
.split-legend div:nth-child(2) span { background: #72d776; }
.split-legend div:nth-child(3) span { background: #f3fff3; }
.api-cube { color: #c8f8ca; border-color: rgba(91, 205, 95, .36); background: radial-gradient(circle at 50% 20%, rgba(51, 144, 51, .30), rgba(13, 18, 13, .70)); box-shadow: 0 0 30px rgba(51, 144, 51, .22); }
.api-connection-graphic li span { background: var(--brand); box-shadow: 0 0 14px var(--brand); }
.api-connection-graphic li b { color: #86efac; }

/* Responsividade mobile-first para landing, painel do cliente e gerencial */
.app-shell { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); width: 100%; max-width: 100vw; }
.main, .card, .hero-card, .dashboard-console-shell, .console-card, .monitor-chart-wrap, .console-chart-wrap { min-width: 0; max-width: 100%; }
.main { overflow-x: clip; }
.table-wrap table, .console-table-wrap table { min-width: 720px; }
.feature-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1120px) {
    .feature-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .container { width: min(100% - 24px, 100%); }
    .nav { align-items: stretch; flex-direction: column; }
    .nav-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .nav-links .nav-link, .nav-links .btn, .nav-links .theme-toggle { width: 100%; }
    .hero { padding: 42px 0 36px; }
    .hero h1 { font-size: clamp(34px, 12vw, 56px); }
    .hero p { font-size: 16px; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .feature-grid, .feature-grid-4, .grid-4, .grid-2, .form-grid { grid-template-columns: 1fr; }
    .app-shell { grid-template-columns: 1fr; }
    .mobile-header { display: flex; position: sticky; top: 0; z-index: 50; }
    .sidebar { position: relative; height: auto; padding: 16px; border-bottom: 1px solid rgba(51, 144, 51, .20); }
    .sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
    .sidebar-nav a, .sidebar-nav button { min-height: 44px; }
    .main { padding: 14px; }
    .topbar { flex-direction: column; align-items: flex-start; }
    .auth-card { padding: 22px; border-radius: 22px; }
}
@media (max-width: 560px) {
    .nav-links, .sidebar-nav { grid-template-columns: 1fr; }
    .brand-mark-renko { width: 42px; }
    .brand-name strong { font-size: 15px; }
    .dashboard-console-shell { border-radius: 20px; margin-inline: -4px; }
    .console-card, .hero-card, .card, .feature { border-radius: 20px; }
    .section { padding: 38px 0; }
    .table-wrap table, .console-table-wrap table { min-width: 620px; }
    .auth-theme-toggle { position: static; margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Ações da tabela de transações */
.transaction-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdf-action-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(220, 38, 38, .22); color: #b91c1c; background: rgba(254, 226, 226, .72); border-radius: 999px; padding: 6px 9px; font-weight: 900; font-size: 12px; line-height: 1; text-decoration: none; }
.pdf-action-link:hover { border-color: #dc2626; background: #fee2e2; text-decoration: none; transform: translateY(-1px); }
.pdf-action-icon { width: 18px; height: 18px; flex: 0 0 18px; }
html[data-theme="dark"] .pdf-action-link { color: #fecaca; background: rgba(127, 29, 29, .28); border-color: rgba(248, 113, 113, .32); }
html[data-theme="dark"] .pdf-action-link:hover { background: rgba(127, 29, 29, .48); border-color: rgba(248, 113, 113, .58); }
.pdf-action-link-disabled { cursor: not-allowed; opacity: .58; filter: grayscale(.3); }
.pdf-action-link-disabled:hover { transform: none; text-decoration: none; }
html[data-theme="dark"] .pdf-action-link-disabled { opacity: .62; }

/* Consulta pública de CNPJ no cadastro de clientes */
.cnpj-lookup-box { border: 1px dashed var(--border); border-radius: 18px; padding: 14px; background: rgba(51, 144, 51, .04); }
.cnpj-lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cnpj-lookup-result { margin-top: 12px; border-radius: 16px; padding: 12px 14px; border: 1px solid var(--border); font-size: 13px; line-height: 1.55; }
.cnpj-lookup-result p { margin: 0 0 8px; }
.cnpj-lookup-result p:last-child { margin-bottom: 0; }
.cnpj-lookup-result ul { margin: 8px 0; padding-left: 20px; }
.cnpj-lookup-result-success { background: rgba(51, 144, 51, .12); border-color: rgba(51, 144, 51, .30); color: var(--text); }
.cnpj-lookup-result-error { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }
.cnpj-lookup-result-loading { background: #f8fafc; color: var(--muted); }
@media (max-width: 720px) { .cnpj-lookup-row { grid-template-columns: 1fr; } }

/* Checkout hospedado */
.checkout-section { padding-top: 38px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.checkout-summary-card h1 { margin-bottom: 12px; }
.checkout-amount { font-size: clamp(32px, 5vw, 54px); font-weight: 900; color: var(--brand); letter-spacing: -.05em; margin: 18px 0; }
.checkout-details { margin-top: 18px; }
.checkout-payment-card h2 { margin-top: 0; }
.payment-methods { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.payment-method-option { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-soft); font-weight: 900; }
.payment-method-option input { width: auto; }
.checkout-extra-section { margin: 18px 0; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel-soft); }
.checkout-extra-section h3 { margin-top: 0; }
.checkout-result-wrap { max-width: 760px; }
.checkout-result-card { text-align: left; }
.checkout-status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.checkout-qr { width: 260px; max-width: 100%; background: white; padding: 12px; border-radius: 18px; border: 1px solid var(--border); }
.checkout-copy { width: 100%; min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.alert { border-radius: 16px; padding: 14px 16px; margin: 16px 0; border: 1px solid var(--border); }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.status.ACTIVE { background: #dcfce7; color: #166534; }
.status.INACTIVE, .status.COMPLETED { background: #e2e8f0; color: #334155; }

/* Hosted checkout tenant branding and admin action boxes */
.checkout-tenant-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.checkout-tenant-logo {
    max-width: 160px;
    max-height: 72px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    padding: 8px;
    border: 1px solid var(--border, rgba(0,0,0,.08));
}
.checkout-themed {
    --checkout-primary: #339033;
    --checkout-secondary: #1d1d1b;
    --checkout-background: #f7faf7;
    --checkout-text: #1d1d1b;
    --checkout-button: #339033;
    background: var(--checkout-background);
    color: var(--checkout-text);
}
.checkout-themed .checkout-summary-card,
.checkout-themed .checkout-payment-card,
.checkout-themed .checkout-result-card {
    border-top: 4px solid var(--checkout-primary);
}
.checkout-themed .btn-primary {
    background: var(--checkout-button);
    border-color: var(--checkout-button);
}
.checkout-themed .badge {
    background: color-mix(in srgb, var(--checkout-primary) 18%, transparent);
    color: var(--checkout-secondary);
}
.checkout-footer-message {
    margin-top: 18px;
    color: var(--muted, #667085);
    font-size: .92rem;
}
.inline-action-box {
    margin-top: 8px;
    min-width: 220px;
}
.inline-action-box summary {
    cursor: pointer;
}
.inline-action-box form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--border, rgba(0,0,0,.1));
    border-radius: 12px;
    background: var(--card, rgba(255,255,255,.04));
}
.inline-action-box label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted, #667085);
}
.inline-action-box input,
.inline-action-box select,
.inline-action-box textarea {
    width: 100%;
}
.danger-link {
    color: #b42318;
}
.checkout-preview-card {
    border: 1px solid var(--border, rgba(0,0,0,.1));
    border-radius: 18px;
    padding: 18px;
    background: var(--checkout-background, #f7faf7);
    color: var(--checkout-text, #1d1d1b);
}
.checkout-preview-card .btn {
    background: var(--checkout-button, #339033);
    border-color: var(--checkout-button, #339033);
}


/* RenkoPay admin sidebar: single scroll owner */
@media (min-width: 861px) {
    .panel-body .app-shell > aside.sidebar {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .panel-body .app-shell > aside.sidebar > nav.sidebar-nav {
        max-height: none;
        overflow: visible;
    }
}
@media (max-width: 860px) {
    .panel-body .app-shell > aside.sidebar,
    .panel-body .app-shell > aside.sidebar > nav.sidebar-nav {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}
