.dashboard-shell {
  --dash-sidebar: #073d31;
  --dash-sidebar-deep: #052f27;
  --dash-accent: #087a57;
  --dash-accent-strong: #056846;
  --dash-mint: #39d9a3;
  --dash-coral: #ff725e;
  --dash-cream: #fffaf0;
  --dash-canvas: #fbfcfa;
  --dash-surface: #fff;
  --dash-line: #e2e7e2;
  --dash-ink: #13201b;
  --dash-muted: #68746f;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--dash-canvas);
  color: var(--dash-ink);
}

/* Os diálogos são anexados diretamente ao body; repetimos os tokens para que
   botões, bordas e textos mantenham a identidade fora do shell do painel. */
.modal-backdrop {
  color: #13201b;
  color-scheme: light;
  --ink: #13201b;
  --ink-2: #4b5652;
  --dash-accent: #087a57;
  --dash-accent-strong: #056846;
  --dash-mint: #39d9a3;
  --dash-coral: #ff725e;
  --dash-cream: #fffaf0;
  --dash-canvas: #fbfcfa;
  --dash-surface: #fff;
  --dash-line: #e2e7e2;
  --dash-ink: #13201b;
  --dash-muted: #68746f;
}

.dashboard-shell { color-scheme: light; --ink: #13201b; --ink-2: #4b5652; }

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 26px 16px 20px;
  overflow-y: auto;
  color: #fff;
  background: var(--dash-sidebar);
}
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.sidebar-brand { color: #fff; text-decoration: none; font-size: 1.75rem; font-weight: 800; letter-spacing: -.075em; }
.sidebar-brand span { color: var(--dash-mint); }
.sidebar-label { margin: 48px 12px 12px; color: rgba(255,255,255,.48); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 6px; }
.sidebar-link {
  width: 100%; min-height: 48px; display: flex; align-items: center; gap: 13px;
  padding: 0 14px; border: 0; border-radius: 10px; background: transparent;
  color: rgba(255,255,255,.78); text-decoration: none; font: inherit; font-weight: 650;
  text-align: left; cursor: pointer; transition: color .16s, background .16s;
}
.sidebar-link i { width: 22px; font-size: 1.32rem; color: rgba(255,255,255,.86); }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.is-active { color: #fff; background: rgba(57,217,163,.14); box-shadow: inset 3px 0 0 var(--dash-mint); }
.sidebar-help { margin-top: auto; }
.sidebar-help .sidebar-label { margin-top: 30px; }
.dashboard-shell .sidebar-close, .dashboard-shell .sidebar-open { display: none; }
.sidebar-scrim { display: none; }

.dashboard-workspace { min-width: 0; }
.dashboard-header {
  position: sticky; top: 0; z-index: 20; min-height: 82px; display: grid;
  grid-template-columns: minmax(240px, auto) minmax(280px, 520px) minmax(270px, auto);
  align-items: center; gap: 28px; padding: 14px 30px; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--dash-line); backdrop-filter: blur(12px);
}
.header-title-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-title-group h1 { margin: 0; color: var(--dash-ink); font-size: 1.35rem; line-height: 1.2; letter-spacing: -.035em; }
.header-title-group p { margin: 3px 0 0; color: var(--dash-muted); font-size: .76rem; white-space: nowrap; }
.global-search { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border-radius: 11px; background: #f5f7f5; color: #87918c; }
.global-search input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--dash-ink); }
.global-search input:focus { outline: 0; }
.header-actions { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.icon-button:hover { background: rgba(8,122,87,.08); }
.notification-button { position: relative; font-size: 1.35rem; }
.notification-button span { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--dash-accent); }
.account-trigger { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--dash-ink); font: inherit; cursor: pointer; }
.account-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--dash-sidebar); color: #fff; font-weight: 800; }
.account-copy { display: grid; text-align: left; line-height: 1.25; }
.account-copy strong { font-size: .84rem; }
.account-copy small { color: var(--dash-muted); font-size: .7rem; }
.account-menu { position: absolute; top: 52px; right: 0; width: 190px; padding: 8px; border: 1px solid var(--dash-line); border-radius: 12px; background: #fff; box-shadow: 0 18px 45px rgba(10,47,36,.12); }
.account-menu button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dash-ink); font: inherit; cursor: pointer; }
.account-menu button:hover { background: #f1f6f3; }

.dashboard-content { max-width: 1500px; margin: 0 auto; padding: 30px; outline: 0; }
.dash-stack { display: grid; gap: 20px; }
.dash-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-between { justify-content: space-between; }
.dash-card { background: var(--dash-surface); border: 1px solid var(--dash-line); border-radius: 14px; box-shadow: 0 2px 8px rgba(18,46,36,.025); }
.dash-card-pad { padding: 24px; }
.dash-banner { position: relative; overflow: hidden; min-height: 146px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 34px; color: #fff; background: var(--dash-accent-strong); border-radius: 16px; }
.dash-banner::after { content: ''; position: absolute; width: 260px; height: 260px; right: -95px; top: -105px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.dash-banner-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.dash-banner-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; background: rgba(57,217,163,.18); color: var(--dash-mint); font-size: 1.8rem; }
.dash-banner h2 { margin: 4px 0 5px; color: #fff; font-size: 1.35rem; letter-spacing: -.035em; }
.dash-banner p { margin: 0; max-width: 680px; color: rgba(255,255,255,.76); font-size: .88rem; }
.eyebrow { color: var(--dash-accent); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.dash-banner .eyebrow { color: #aaf3d9; }
.dash-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--dash-line); border-radius: 10px; background: #fff; color: var(--dash-ink); font: inherit; font-size: .82rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .16s, border-color .16s, background .16s; }
.dash-button:hover { border-color: var(--dash-accent); transform: translateY(-1px); }
.dash-button.primary { border-color: var(--dash-accent); background: var(--dash-accent); color: #fff; }
.dash-button.primary:hover { background: var(--dash-accent-strong); }
.dash-button.danger { color: #ce4037; border-color: #f4d5d1; }
.dash-button.ghost { background: transparent; }
.dash-button.small { min-height: 34px; padding: 0 11px; font-size: .74rem; }
.dash-button:disabled { opacity: .55; cursor: default; transform: none; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric-card { min-height: 104px; display: flex; align-items: center; gap: 15px; padding: 20px; }
.metric-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: #dff6ee; color: var(--dash-accent); font-size: 1.35rem; }
.metric-icon.coral { background: #ffebe7; color: #e34f41; }
.metric-label { color: var(--dash-muted); font-size: .78rem; font-weight: 650; }
.metric-value { display: block; margin: 2px 0; color: var(--dash-ink); font-size: 1.45rem; font-weight: 850; letter-spacing: -.04em; }
.metric-help { color: var(--dash-muted); font-size: .68rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(310px, .9fr); gap: 16px; }
.filter-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 20px; }
.dash-field { display: grid; gap: 7px; color: #2a3933; font-size: .75rem; font-weight: 750; }
.dash-field input, .dash-field select, .dash-input { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--dash-line); border-radius: 9px; background: #fff; color: var(--dash-ink); font: inherit; }
.dash-field input:focus, .dash-field select:focus, .dash-input:focus { outline: 3px solid rgba(8,122,87,.12); border-color: var(--dash-accent); }
.connection-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.pairing-form { width: 100%; max-width: 440px; display: grid; gap: 16px; text-align: left; }
.pairing-form p { margin: 0; }
.pairing-code { display: block; margin: 16px 0; padding: 20px 10px; border: 1px solid var(--dash-line); border-radius: 12px; background: #edf8f2; color: #073e2d; font: 800 clamp(1.5rem, 4vw, 2.2rem) monospace; letter-spacing: .1em; text-align: center; }
.pairing-error { color: #ad2929; font-size: .85rem; }
.pairing-error:empty { display: none; }
.period-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.period-chip { min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; background: #f1f3f1; color: #5c6863; font: inherit; font-size: .74rem; cursor: pointer; }
.period-chip.is-active { background: var(--dash-accent); color: #fff; }
.totals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.total-card { min-height: 126px; padding: 21px; color: #fff; border-radius: 14px; background: var(--dash-accent-strong); }
.total-card.mint { background: #25b98a; }
.total-card span { color: rgba(255,255,255,.75); font-size: .76rem; }
.total-card strong { display: block; margin-top: 10px; font-size: 1.7rem; }
.chart-card, .message-card { min-height: 260px; padding: 22px; }
.chart-card h3, .message-card h3 { margin: 0 0 18px; font-size: .9rem; }
.chart-bars { height: 160px; display: flex; align-items: flex-end; gap: 9px; padding: 10px 0 0; border-bottom: 1px solid var(--dash-line); }
.chart-bar { flex: 1; min-width: 8px; border-radius: 5px 5px 0 0; background: #59d5ad; }
.chart-bar:nth-child(2n) { background: var(--dash-accent-strong); }
.chart-legend { display: flex; gap: 16px; margin-top: 12px; color: var(--dash-muted); font-size: .69rem; }
.message-list { display: grid; gap: 12px; }
.message-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: .75rem; }
.message-track { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 99px; background: #edf1ee; }
.message-track span { display: block; height: 100%; border-radius: inherit; background: var(--dash-accent); }

.page-toolbar { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 9px 13px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 9px; background: #f1f3f1; }
.segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: #59655f; font: inherit; font-size: .74rem; cursor: pointer; }
.segmented button.is-active { background: var(--dash-accent); color: #fff; }
.toolbar-search { min-width: 220px; flex: 1; }
.instance-table-wrap { overflow-x: auto; }
.instance-table { width: 100%; min-width: 960px; border-collapse: separate; border-spacing: 0; }
.instance-table th { padding: 14px 16px; background: #fafbfa; border-bottom: 1px solid var(--dash-line); color: #77817d; font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; }
.instance-table td { padding: 15px 16px; border-bottom: 1px solid #edf0ed; color: #27342f; font-size: .76rem; }
.instance-table tr:last-child td { border-bottom: 0; }
.instance-name-button { padding: 0; border: 0; background: transparent; color: var(--dash-ink); font: inherit; font-weight: 750; cursor: pointer; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; color: #087a57; background: #e4f7ef; font-size: .66rem; font-weight: 750; }
.status-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.coral { color: #dc4a3c; background: #ffebe8; }
.status-chip.amber { color: #a66a00; background: #fff4dc; }
.masked { color: #66716c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.table-action { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #66716c; cursor: pointer; }
.table-action:hover { background: #edf4f0; color: var(--dash-accent); }
.empty-state { min-height: 360px; display: grid; place-items: center; padding: 50px; text-align: center; }
.empty-state-icon { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #e7f8f1; color: var(--dash-accent); font-size: 2rem; }
.empty-state h2 { margin: 0 0 8px; font-size: 1.15rem; }
.empty-state p { max-width: 520px; margin: 0 auto 20px; color: var(--dash-muted); font-size: .82rem; }

.form-section { padding: 24px; }
.form-section h2 { margin: 0 0 5px; font-size: 1.05rem; }
.form-section > p { margin: 0 0 22px; color: var(--dash-muted); font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 24px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-span-2 { grid-column: 1 / -1; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #8a948f; }
.input-with-icon .dash-input { padding-left: 38px; }
.toggle-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #5f6b65; font-size: .7rem; }
.toggle { width: 38px; height: 22px; position: relative; padding: 0; border: 0; border-radius: 99px; background: #7b8782; cursor: pointer; transition: background .18s; }
.toggle::after { content: ''; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: transform .18s; }
.toggle[aria-checked='true'] { background: var(--dash-accent); }
.toggle[aria-checked='true']::after { transform: translateX(16px); }
.form-footer { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; margin: 0 -30px -30px; padding: 14px 30px; border-top: 1px solid var(--dash-line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }

.detail-tabs { display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--dash-line); }
.detail-tab { min-height: 54px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5f6a65; font: inherit; font-size: .8rem; white-space: nowrap; cursor: pointer; }
.detail-tab.is-active { color: var(--dash-accent); border-color: var(--dash-accent); font-weight: 800; }
.instance-hero { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; }
.instance-hero-main { display: flex; align-items: center; gap: 16px; }
.instance-badge { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #e4f7ef; color: var(--dash-accent); font-size: 1.65rem; }
.instance-hero h2 { margin: 0 0 5px; font-size: 1.25rem; }
.instance-hero p { margin: 0; color: var(--dash-muted); font-size: .75rem; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border-radius: 11px; background: #e8f8f2; color: #176b50; font-size: .76rem; }
.notice.warning { background: #fff0ed; color: #b8483b; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; }
.detail-card { padding: 22px; }
.detail-card h3 { margin: 0 0 17px; font-size: .9rem; }
.credential-list { display: grid; gap: 9px; }
.credential { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--dash-line); border-radius: 9px; background: #fbfcfb; }
.credential div { min-width: 0; }
.credential small { display: block; color: var(--dash-muted); font-size: .65rem; }
.credential code { display: block; overflow: hidden; background: transparent; padding: 0; color: #26342e; text-overflow: ellipsis; white-space: nowrap; }
.connection-state { min-height: 112px; display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: #f0fbf6; }
.connection-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--dash-accent); color: #fff; font-size: 1.7rem; }
.connection-state h3 { margin: 0 0 3px; }
.connection-state p { margin: 0; color: var(--dash-muted); font-size: .78rem; }

.qr-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 32px; }
.qr-column { min-height: 450px; display: grid; align-content: center; justify-items: center; padding: 18px 36px; text-align: center; }
.qr-column + .qr-column { border-left: 1px solid var(--dash-line); justify-items: stretch; text-align: left; }
.qr-image { width: 244px; height: 244px; object-fit: contain; padding: 12px; border: 1px solid var(--dash-line); border-radius: 12px; background: #fff; }
.qr-steps { display: grid; gap: 18px; margin: 22px 0; }
.qr-step { display: flex; align-items: center; gap: 13px; color: #4f5c56; font-size: .8rem; }
.qr-step strong { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--dash-accent); color: #fff; }
.progress-track { width: min(340px,100%); height: 5px; margin: 14px auto; overflow: hidden; border-radius: 99px; background: #dcefe7; }
.progress-track span { display: block; width: 48%; height: 100%; background: var(--dash-mint); animation: qr-progress 45s linear infinite; }
@keyframes qr-progress { from { width: 100%; } to { width: 0; } }

.webhook-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid #edf0ed; }
.settings-row:first-child { border-top: 0; }
.settings-row strong { font-size: .78rem; }
.settings-row small { display: block; color: var(--dash-muted); font-size: .68rem; }

.payment-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.payment-table th, .payment-table td { padding: 16px; border-bottom: 1px solid var(--dash-line); text-align: left; font-size: .76rem; }
.payment-table th { color: var(--dash-muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.billing-note { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 18px; color: var(--dash-muted); font-size: .7rem; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(5,26,21,.58); }
.plan-modal { width: min(900px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 28px; border-radius: 16px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; text-align: center; }
.modal-head > div { flex: 1; }
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.modal-head p { margin: 4px 0 0; color: var(--dash-muted); font-size: .75rem; }
.stepper { max-width: 430px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px auto; }
.stepper span { position: relative; display: grid; justify-items: center; gap: 5px; color: #8a948f; font-size: .68rem; }
.stepper span::before { content: attr(data-step); width: 24px; height: 24px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 50%; background: #e5e8e5; color: #66716c; font-weight: 800; }
.stepper span::after { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 1px; background: #dfe4e0; }
.stepper span:first-child::after { display: none; }
.stepper .is-active { color: var(--dash-accent); font-weight: 800; }
.stepper .is-active::before { background: var(--dash-accent); color: #fff; }
.plans-select-grid { max-width: 620px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 0 auto; }
.checkout-summary { display: flex; justify-content: space-between; gap: 24px; padding: 16px 18px; border: 1px solid var(--dash-line); border-radius: 12px; background: var(--dash-soft); }
.checkout-summary div { display: grid; gap: 3px; }
.checkout-summary div:last-child { text-align: right; }
.checkout-summary small { color: var(--dash-muted); font-size: .65rem; }
.checkout-summary strong { font-size: .88rem; }
.payment-method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.payment-method-option { min-height: 72px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--dash-line); border-radius: 12px; cursor: pointer; }
.payment-method-option.is-selected { border: 2px solid var(--dash-accent); background: #f2fbf7; }
.payment-method-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-method-option > i { color: var(--dash-accent); font-size: 24px; }
.payment-method-option span { display: grid; gap: 2px; }
.payment-method-option small { color: var(--dash-muted); font-size: .64rem; }
.form-section.compact { padding: 18px; border: 1px solid var(--dash-line); border-radius: 12px; }
.form-section.compact h3 { margin: 0 0 14px; font-size: .9rem; }
.checkout-confirmation { display: grid; justify-items: center; gap: 14px; text-align: center; }
.checkout-confirmation h2, .checkout-confirmation p { margin: 0; }
.checkout-confirmation p { max-width: 580px; color: var(--dash-muted); }
.confirmation-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: var(--dash-accent); background: #e8f8f1; font-size: 28px; }
.checkout-pix-image { width: min(240px,70vw); padding: 10px; border: 1px solid var(--dash-line); border-radius: 12px; background: #fff; }
.checkout-confirmation .credential { width: min(620px,100%); }
.checkout-acceptance { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: var(--dash-muted); font-size: .7rem; line-height: 1.45; }
.checkout-acceptance input { width: 18px; height: 18px; margin: 0; accent-color: var(--dash-accent); }
.plan-select { position: relative; min-height: 360px; padding: 26px; border: 1px solid var(--dash-line); border-radius: 14px; background: #fff; text-align: center; cursor: pointer; }
.plan-select.is-selected { border: 2px solid var(--dash-accent); }
.plan-select h3 { margin: 20px 0 14px; font-size: 1.15rem; }
.plan-price { color: var(--dash-accent); font-size: 1.75rem; font-weight: 850; }
.plan-price small { color: var(--dash-muted); font-size: .65rem; font-weight: 600; }
.plan-select ul { display: grid; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; text-align: left; color: #4d5954; font-size: .73rem; }
.plan-select li { display: flex; align-items: center; gap: 8px; }
.plan-select li i { color: #43bd54; }
.discount-badge, .selected-badge { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 999px; background: #76c916; color: #fff; font-size: .62rem; font-weight: 850; }
.selected-badge { background: #e9f8f1; color: var(--dash-accent); }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }

.profile-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 24px; }
.radio-choice { display: flex; align-items: center; gap: 8px; color: #4f5a55; font-size: .72rem; }
.radio-choice input { accent-color: var(--dash-accent); }
.integration-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.integration-chip { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid var(--dash-line); border-radius: 8px; color: #59655f; font-size: .7rem; }
.integration-chip input { accent-color: var(--dash-accent); }
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.security-card { padding: 24px; }
.security-card.full { grid-column: 1 / -1; }
.security-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.security-title { display: flex; align-items: center; gap: 12px; }
.security-title i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: #ffebe8; color: var(--dash-coral); font-size: 1.2rem; }
.security-card.full .security-title i { background: #e4f7ef; color: var(--dash-accent); }
.security-title h2 { margin: 0; font-size: .95rem; }
.security-alert { padding: 13px 15px; border-radius: 8px; background: #fff0ed; color: #bd4d41; font-size: .75rem; }
.security-card.full .security-alert { background: #dcf7eb; color: #087a57; }
.security-action { display: flex; justify-content: center; margin-top: 22px; }

.loading-state { min-height: 320px; display: grid; place-items: center; color: var(--dash-muted); }
.spinner { width: 34px; height: 34px; border: 3px solid #dbe7e1; border-top-color: var(--dash-accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dashboard-shell .toast { position: fixed; right: 24px; bottom: 24px; left: auto; transform: translateY(12px); z-index: 100; min-width: 260px; max-width: min(420px, calc(100vw - 48px)); padding: 13px 16px; border-radius: 10px; background: #11251e; color: #fff; opacity: 0; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.dashboard-shell .toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .dashboard-header { grid-template-columns: minmax(220px, auto) 1fr auto; gap: 16px; }
  .account-copy { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: fixed; left: 0; transform: translateX(-100%); width: 264px; transition: transform .2s ease; }
  .dashboard-shell.is-menu-open .dashboard-sidebar { transform: translateX(0); }
  .dashboard-shell .sidebar-close, .dashboard-shell .sidebar-open { display: grid; }
  .dashboard-shell.is-menu-open .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(0,0,0,.36); }
  .dashboard-header { grid-template-columns: 1fr auto; }
  .global-search { grid-column: 1 / -1; grid-row: 2; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .dashboard-content { padding: 22px; }
  .metric-grid, .security-grid { grid-template-columns: 1fr; }
  .security-card.full { grid-column: auto; }
}
@media (max-width: 700px) {
  .dashboard-header { min-height: 72px; padding: 12px 16px; }
  .dashboard-content { padding: 16px; }
  .dash-banner { align-items: flex-start; flex-direction: column; padding: 24px; }
  .dash-banner-copy { align-items: flex-start; }
  .dash-banner-icon { display: none; }
  .metric-grid, .filter-card, .totals-grid, .form-grid, .form-grid.three, .detail-grid, .qr-layout, .webhook-grid, .plans-select-grid, .profile-choice-grid, .payment-method-grid { grid-template-columns: 1fr; }
  .qr-column + .qr-column { border-top: 1px solid var(--dash-line); border-left: 0; }
  .qr-column { min-height: 0; padding: 24px 8px; }
  .page-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-search { min-width: 0; }
  .form-footer { margin: 0 -16px -16px; padding: 12px 16px; }
  .modal-backdrop { padding: 10px; }
  .plan-modal { padding: 20px 16px; }
  .plan-select { min-height: auto; }
  .modal-footer { align-items: stretch; flex-direction: column-reverse; }
  .modal-footer .dash-row { width: 100%; }
  .modal-footer .dash-button { width: 100%; }
  .account-trigger > i { display: none; }
}
