/*
 * Mesa & Estoque — A Cozinha Organizada
 * Implementação visual derivada de DESIGN.md.
 */

:root {
  --primary: #176b4d;
  --primary-dark: #0f5138;
  --primary-soft: #eaf5f0;
  --ink: #17221e;
  --muted: #68756f;
  --line: #e4e9e6;
  --surface: #ffffff;
  --canvas: #f5f7f6;
  --success: #16804f;
  --warning: #a66500;
  --danger: #b54a3d;
  --info: #2870ad;
  --violet: #7554ad;
  --sidebar: 260px;
  --radius-control: 11px;
  --radius-compact: 9px;
  --radius-card: 15px;
  --radius-feature: 20px;
  --shadow-low: 0 8px 28px rgba(32, 49, 41, 0.055);
  --shadow-medium: 0 16px 45px rgba(32, 49, 41, 0.085);
  --shadow-menu: 0 12px 30px rgba(23, 34, 30, 0.13);
  --shadow-modal: 0 24px 80px rgba(20, 45, 35, 0.2);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #cfe5da;
  color: var(--primary-dark);
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(23, 107, 77, .22);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 3000;
  transform: translateY(-160%);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #fff;
  padding: .7rem 1rem;
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* App shell */
.sidebar {
  width: var(--sidebar);
  padding: 1.35rem 1rem 1rem;
  background: rgba(255, 255, 255, .98);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(32, 49, 41, .025);
}

.brand {
  min-height: 48px;
  gap: .75rem;
  padding: .1rem .35rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 825;
  letter-spacing: -.025em;
}

.brand:hover {
  color: var(--primary);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 9px 22px rgba(23, 107, 77, .2), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.restaurant-chip {
  position: relative;
  gap: .15rem;
  margin: 1.55rem .25rem 1.25rem;
  padding: .85rem .9rem .9rem;
  overflow: hidden;
  background: #f7faf8;
  border: 1px solid #dfe8e3;
  border-radius: 13px;
}

.restaurant-chip small::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .4rem;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: .05em;
}

.restaurant-chip small {
  color: #718079;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .08em;
}

.restaurant-chip strong {
  display: block;
  margin: .08rem 0;
  overflow: visible;
  color: var(--ink);
  font-size: .87rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.restaurant-chip a {
  width: fit-content;
  margin-top: .15rem;
  color: var(--primary);
  font-size: .7rem;
}

.app-nav {
  gap: .2rem;
}

.app-nav .nav-link {
  min-height: 43px;
  gap: .75rem;
  padding: .68rem .75rem;
  color: #53625c;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 650;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms var(--ease-out);
}

.app-nav .nav-link i {
  width: 20px;
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
}

.app-nav .nav-link:hover {
  transform: translateX(2px);
  background: #f2f7f4;
  color: var(--primary-dark);
}

.app-nav .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(23, 107, 77, .055);
}

.user-box {
  gap: .55rem;
  padding: .95rem .15rem .05rem;
  border-top-color: var(--line);
}

.current-user-menu {
  min-height: 50px;
  gap: .65rem;
  padding: .4rem .45rem;
  border-radius: 12px;
  transition: background-color 150ms ease;
}

.current-user-menu:hover,
.current-user-menu[aria-expanded="true"] {
  background: var(--primary-soft);
}

.avatar {
  width: 37px;
  height: 37px;
  background: #e4efe9;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(23, 107, 77, .08);
}

.user-box strong {
  font-size: .8rem;
  line-height: 1.3;
}

.user-box small {
  margin-top: .05rem;
  font-size: .68rem;
}

.user-dropdown-menu {
  padding: .45rem;
  border: 0;
  border-radius: 13px;
  box-shadow: var(--shadow-menu);
}

.user-dropdown-menu .dropdown-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: .8rem;
}

.app-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  padding: 2.4rem clamp(1.5rem, 3vw, 3.25rem) 3.5rem;
}

.app-main > * {
  width: 100%;
  max-width: 1460px;
  margin-right: auto;
  margin-left: auto;
}

.mobile-header {
  height: 68px;
  padding: .65rem 1rem;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(32, 49, 41, .04);
}

.mobile-header .btn {
  width: 44px;
  height: 44px;
  padding: 0;
}

.offcanvas {
  --bs-offcanvas-width: min(360px, 88vw);
  border: 0 !important;
}

.offcanvas-header {
  padding: 1.25rem 1.25rem .5rem;
}

.offcanvas-title {
  color: var(--ink);
  font-weight: 800;
}

/* Page hierarchy */
.content-header {
  align-items: center;
  margin-bottom: 1.75rem;
  animation: heading-arrival 420ms var(--ease-out) both;
}

.content-header > div:first-child {
  max-width: 720px;
}

.content-header .eyebrow {
  display: none;
}

.content-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.5vw, 2.15rem);
  font-weight: 825;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.content-header p:not(.eyebrow) {
  margin-top: .45rem;
  max-width: 65ch;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.content-header .btn,
.header-actions .btn {
  white-space: nowrap;
}

.back-link {
  margin-bottom: .65rem;
  color: var(--primary);
  font-size: .8rem;
}

.back-link:hover {
  color: var(--primary-dark);
}

@keyframes heading-arrival {
  from { opacity: .4; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Controls */
.btn {
  min-height: 42px;
  border-radius: var(--radius-control);
  padding: .6rem 1rem;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.25;
  transition: transform 150ms var(--ease-out), box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: #0c4932;
  --bs-btn-active-border-color: #0c4932;
  --bs-btn-disabled-bg: #8fb5a7;
  --bs-btn-disabled-border-color: #8fb5a7;
  box-shadow: 0 7px 18px rgba(23, 107, 77, .16);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 24px rgba(23, 107, 77, .22);
}

.btn-light {
  background: var(--surface);
  border-color: #dce5e0;
  color: #3c4b45;
  box-shadow: 0 3px 12px rgba(32, 49, 41, .035);
}

.btn-light:hover {
  background: #f8fbf9;
  border-color: #c9d9d1;
  color: var(--primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: #88b5a4;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}

.btn-link {
  min-height: auto;
  color: var(--primary);
  box-shadow: none;
}

.form-label {
  margin-bottom: .42rem;
  color: #2a3732;
  font-size: .8rem;
  font-weight: 750;
}

.form-control,
.form-select {
  min-height: 46px;
  padding: .7rem .85rem;
  background-color: var(--surface);
  border-color: #d7e0db;
  border-radius: var(--radius-control);
  color: var(--ink);
  font-size: .9rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.form-control:hover,
.form-select:hover {
  border-color: #b8c9c0;
}

.form-control:focus,
.form-select:focus {
  border-color: #6baa92;
  box-shadow: 0 0 0 .2rem rgba(23, 107, 77, .12);
}

.form-control::placeholder {
  color: #8a9892;
}

.form-control:disabled,
.form-select:disabled {
  background: #eef2ef;
  color: #77827d;
}

.form-text {
  color: var(--muted);
  font-size: .72rem;
}

.invalid-feedback,
.text-danger.small {
  color: #9d332b !important;
  font-size: .73rem;
  font-weight: 600;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Cards and data */
.metric-grid {
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.metric-card {
  position: relative;
  min-height: 124px;
  align-items: center;
  padding: 1.15rem;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-low);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  right: -40px;
  bottom: -44px;
  border-radius: 50%;
  background: var(--primary-soft);
  opacity: .55;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.metric-icon i {
  font-size: 1.35rem;
  line-height: 1;
}

.metric-card small {
  color: #56665f;
  font-size: .72rem;
  font-weight: 700;
}

.metric-card strong {
  margin: .14rem 0 .12rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 825;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.metric-card span:not(.metric-icon) {
  font-size: .7rem;
}

.section-card,
.form-card,
.selection-card {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-low);
}

.section-card {
  padding: 1.25rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-title h2,
.form-card h2 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.015em;
}

.section-title p {
  margin-top: .22rem;
  font-size: .76rem;
  line-height: 1.45;
}

.section-title a {
  color: var(--primary);
  font-size: .76rem;
}

.section-title a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.attention-card {
  background: #fffdfa;
  border: 1px solid #f0dfb8;
  box-shadow: 0 8px 26px rgba(122, 83, 20, .055);
}

.attention-card .section-title h2 {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.low-stock-grid {
  gap: .75rem;
}

.low-stock-item {
  min-height: 64px;
  padding: .65rem .7rem;
  background: #fff9ed;
  border: 1px solid #f7ead0;
  border-radius: 11px;
}

.low-stock-item .btn {
  min-height: 38px;
}

.item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #edf2ef;
  color: #74847c;
}

.dashboard-columns {
  align-items: start;
  gap: 1.25rem;
}

.activity-row {
  min-height: 60px;
  padding: .72rem 0;
  border-top-color: #edf1ef;
}

.activity-row > div:nth-child(2) {
  min-width: 0;
}

.activity-row strong {
  overflow-wrap: anywhere;
}

.movement-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.movement-icon i {
  font-size: 1rem;
}

.data-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: none;
}

.table {
  color: var(--ink);
}

.table > :not(caption) > * > * {
  padding: .92rem 1rem;
  border-color: #edf1ef;
}

.table thead th {
  height: 44px;
  padding-top: .75rem;
  padding-bottom: .75rem;
  background: #f8faf9;
  color: #697770;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .065em;
}

.table tbody tr {
  transition: background-color 120ms ease;
}

.table tbody tr:hover {
  background: #fbfdfc;
}

.table tbody td {
  font-size: .8rem;
  vertical-align: middle;
}

.item-name {
  min-width: 180px;
}

.item-name strong,
.item-name small,
.user-name-link {
  overflow-wrap: anywhere;
}

.user-name-link {
  color: inherit;
  text-decoration: none;
}

.user-name-link:hover strong {
  color: var(--primary);
}

.status {
  gap: .25rem;
  border-radius: 999px;
  padding: .3rem .58rem;
  font-size: .66rem;
  font-weight: 800;
}

.status.success {
  background: #e5f5ed;
  color: #14734a;
}

.status.warning {
  background: #fff0d5;
  color: #895807;
}

.status.neutral {
  background: #edf0ee;
  color: #53605b;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-color: #dce4df;
  border-radius: var(--radius-compact);
  background: #fff;
  color: #53615b;
  transition: transform 150ms var(--ease-out), border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: #aac5b9;
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-button.danger:hover {
  border-color: #efc8c4;
  background: #fff0ee;
  color: #9d332b;
}

.list-toolbar {
  align-items: center;
  margin-bottom: 1rem;
}

.search-box {
  min-height: 44px;
  max-width: 360px;
  border-color: #dce4df;
  border-radius: var(--radius-control);
  color: #77847e;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-box:focus-within {
  border-color: #6baa92;
  box-shadow: 0 0 0 .2rem rgba(23, 107, 77, .1);
}

.search-box input {
  color: var(--ink);
  font-size: .84rem;
}

.empty-state {
  padding: 3.5rem 1rem;
  color: var(--muted);
}

.empty-state i {
  color: #829289;
}

/* Dish catalogue */
.dish-grid {
  align-items: start;
  gap: 1.1rem;
}

.dish-card {
  align-self: start;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-low);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.dish-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.dish-photo {
  height: 164px;
  background: #e7eee9;
  color: #769084;
}

.dish-body {
  padding: 1.05rem;
}

.dish-body h2 {
  font-size: 1.02rem;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}

.dish-body p {
  color: var(--muted);
  line-height: 1.45;
}

.dish-price {
  margin: .9rem 0 .75rem;
  padding: .75rem 0;
  border-color: var(--line);
}

.dish-price span {
  color: var(--muted);
}

.dish-price strong {
  margin-top: .08rem;
  font-size: .9rem;
}

details summary {
  width: fit-content;
  color: var(--primary);
  font-size: .74rem;
  font-weight: 750;
}

details summary:hover {
  color: var(--primary-dark);
}

details li {
  gap: 1rem;
  border-bottom: 1px solid #f0f3f1;
}

details li:last-child {
  border-bottom: 0;
}

/* Forms, modal and contextual information */
.form-card {
  max-width: 760px;
  padding: 1.5rem;
}

.form-actions,
.sticky-actions {
  gap: .65rem;
  border-top-color: var(--line);
}

.sticky-actions {
  background: rgba(245, 247, 246, .96);
  box-shadow: 0 -12px 28px rgba(32, 49, 41, .035);
}

.info-callout {
  align-items: flex-start;
  padding: .95rem 1rem;
  background: #eef6fb;
  border: 1px solid #d8e8f5;
  border-radius: 12px;
  color: #34576e;
}

.info-callout > i {
  margin-top: .05rem;
  font-size: 1rem;
}

.info-callout strong {
  font-size: .82rem;
}

.info-callout p {
  line-height: 1.45;
}

.modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-modal);
}

.modal-header {
  padding: 1.15rem 1.35rem;
  background: #fbfcfb;
  border-bottom-color: var(--line);
}

.modal-heading .modal-icon {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(23, 107, 77, .06);
}

.modal-title {
  color: var(--ink);
  letter-spacing: -.015em;
}

.modal-body {
  padding: 1.4rem;
}

.modal-footer {
  gap: .55rem;
  padding: .9rem 1.35rem;
  background: #f8faf9;
}

.recipe-row {
  padding: .75rem;
  background: #f7faf8;
  border: 1px solid #e4ebe7;
  border-radius: 11px;
}

.modal-unit-hint {
  background: var(--primary-soft);
  color: #315e4e;
  border-radius: 9px;
}

.category-manager-row {
  background: #f7faf8;
  border-color: #e3eae6;
}

/* Login and selection */
.login-shell {
  background: var(--surface);
}

.login-panel {
  min-height: 100vh;
  padding: clamp(3rem, 6vw, 6.5rem);
  background: linear-gradient(145deg, #0d4933 0%, var(--primary-dark) 45%, var(--primary) 100%);
}

.login-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: -100px;
  border: 60px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
}

.login-panel::after {
  width: 560px;
  height: 560px;
  border-width: 110px;
}

.login-panel h1 {
  max-width: 620px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.login-panel p {
  max-width: 470px;
  color: #d4e7df;
  font-size: 1rem;
  line-height: 1.65;
}

.login-form-wrap {
  padding: clamp(1.5rem, 5vw, 4rem);
  background: #fbfcfb;
}

.login-card {
  max-width: 420px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-medium);
}

.login-card h2 {
  margin-bottom: .35rem;
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 825;
  letter-spacing: -.035em;
}

.remembered-company {
  border-color: #cfe5da;
  border-radius: 12px;
}

.selection-shell {
  background: var(--canvas);
}

.selection-card {
  padding: 2rem;
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-medium);
}

.selection-card h1 {
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 825;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.restaurant-option {
  min-height: 68px;
  border-color: #dce5e0;
  border-radius: 13px;
  box-shadow: none;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.restaurant-option:hover {
  transform: translateY(-1px);
  border-color: #77a895;
  box-shadow: var(--shadow-low);
}

/* Subscription */
.subscription-card {
  max-width: 720px;
}

.subscription-card > .text-center:first-child .eyebrow,
.subscription-return-card .eyebrow,
.processing-panel .eyebrow {
  display: none;
}

.subscription-details {
  gap: .75rem;
}

.subscription-details > div {
  min-height: 88px;
  padding: .9rem;
  background: #f7faf8;
  border-color: #e1e8e4;
  border-radius: 12px;
}

.plan-choice-card {
  height: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dce5e0;
  border-radius: 14px;
  box-shadow: none;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease;
}

.plan-choice-card:hover {
  transform: translateY(-2px);
  border-color: #9bc1b1;
  box-shadow: var(--shadow-low);
}

.plan-choice-card > strong {
  color: var(--primary-dark);
  font-size: .82rem;
}

.processing-panel {
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(21, 57, 43, .15);
}

.processing-panel h2 {
  letter-spacing: -.035em;
  text-wrap: balance;
}

/* Menu sharing */
.menu-share-layout {
  gap: 1.5rem;
}

.qr-card,
.menu-link-card {
  border: 0;
  box-shadow: var(--shadow-low);
}

.qr-frame {
  padding: 1.1rem;
  border: 1px solid #dfe7e2;
  border-radius: 16px;
  box-shadow: inset 0 0 0 8px #f7faf8;
}

.menu-url-box {
  min-height: 54px;
  border-color: #dce4df;
  background: #f7faf8;
}

/* Public menu */
.public-menu-body {
  background: #f7f4ee;
  color: #252b27;
}

.public-menu-hero {
  padding: clamp(3.8rem, 8vw, 6.5rem) 1.25rem 6rem;
  background: linear-gradient(135deg, rgba(10, 61, 43, .99), rgba(23, 107, 77, .92)), radial-gradient(circle at 80% 20%, #d2a85d 0, transparent 35%);
}

.public-menu-hero::after {
  width: 430px;
  height: 430px;
  border-width: 82px;
}

.public-menu-mark {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(5, 40, 27, .18);
}

.public-menu-kicker {
  display: none;
}

.public-menu-hero h1 {
  max-width: 850px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.public-menu-address {
  margin-top: 1.1rem;
  color: #d7e6df;
}

.public-menu-container {
  margin-top: -2.5rem;
}

.public-menu-heading {
  padding: 1.35rem 1.5rem;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(32, 49, 41, .08);
}

.public-menu-heading span:first-child {
  display: none;
}

.public-menu-heading h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.03em;
}

.public-dish-grid {
  gap: 1.15rem;
}

.public-dish-card {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-low);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.public-dish-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.public-dish-content h3 {
  overflow-wrap: anywhere;
}

.public-dish-price {
  color: var(--primary);
  font-weight: 825;
}

.public-menu-empty {
  border: 0;
  box-shadow: var(--shadow-low);
}

/* Alerts and feedback */
.alert {
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.5;
}

.toast-area .alert {
  border: 0;
  box-shadow: var(--shadow-menu) !important;
}

.app-main > .toast-area,
.toast-area {
  width: min(420px, calc(100vw - 2rem));
  max-width: 420px;
  margin: 0;
  right: 1rem;
  left: auto;
}

/* Responsive */
@media (max-width: 1199px) {
  .metric-card {
    min-height: 112px;
  }
}

@media (max-width: 991px) {
  .app-main {
    margin-left: 0;
    padding: 1.75rem 1rem 6.5rem;
  }

  .content-header {
    margin-bottom: 1.4rem;
  }

  .login-form-wrap {
    min-height: 100vh;
    background: linear-gradient(180deg, #edf5f1 0, var(--canvas) 45%);
  }

  .login-card {
    box-shadow: var(--shadow-low);
  }

  .public-main {
    background: var(--canvas);
  }

  .mobile-bottom-nav {
    height: 72px;
    border-top-color: var(--line);
    box-shadow: 0 -10px 28px rgba(32, 49, 41, .07);
  }

  .mobile-bottom-nav a {
    color: #65736d;
    font-size: .6rem;
  }

  .app-main > .toast-area,
  .toast-area {
    top: 78px;
  }
}

@media (max-width: 767px) {
  .content-header {
    align-items: flex-start;
  }

  .content-header > .d-flex,
  .content-header > .header-actions {
    flex: 0 0 auto;
  }

  .data-card {
    border: 0;
    box-shadow: var(--shadow-low);
  }

  .mobile-data-card {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-low);
  }

  .mobile-data-card h3 {
    overflow-wrap: anywhere;
  }

  .subscription-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .app-main {
    padding: 1.35rem .8rem 6.5rem;
  }

  .content-header {
    gap: .75rem;
  }

  .content-header h1 {
    font-size: 1.6rem;
  }

  .content-header .btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .metric-grid {
    gap: .7rem;
  }

  .metric-card {
    min-height: 126px;
    padding: .85rem;
  }

  .metric-card::after {
    display: none;
  }

  .metric-icon {
    width: 36px;
    height: 36px;
    margin-bottom: .65rem;
  }

  .metric-icon i {
    font-size: 1.05rem;
  }

  .section-card {
    padding: 1rem;
  }

  .form-card,
  .selection-card,
  .login-card {
    padding: 1.15rem;
  }

  .selection-shell {
    padding: .8rem;
  }

  .dish-card:hover,
  .metric-card:hover,
  .public-dish-card:hover {
    transform: none;
  }

  .modal-content {
    border-radius: 0;
  }

  .public-menu-hero {
    padding: 3.5rem 1rem 5rem;
  }

  .public-menu-mark {
    width: 50px;
    height: 50px;
  }

  .public-menu-hero h1 {
    font-size: 2.35rem;
  }

  .public-menu-container {
    padding: 0 .8rem 3rem;
  }

  .public-menu-heading {
    align-items: center;
    padding: 1rem;
  }

  .public-menu-heading h2 {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Subscription choice — standard pricing cards with a clear Asaas handoff */
.subscription-shell {
  width: 100%;
  padding: .25rem 0 2rem;
}

.subscription-page {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.subscription-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 176px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  position: relative;
  background: var(--primary-dark);
  border-radius: 16px;
  color: #fff;
  box-shadow: var(--shadow-medium);
}

.subscription-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -95px;
  top: -105px;
  border: 55px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
}

.subscription-hero-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 16px;
  color: var(--primary);
  font-size: 1.65rem;
  box-shadow: 0 12px 28px rgba(4, 39, 25, .22);
}

.subscription-hero > div {
  position: relative;
  z-index: 1;
}

.subscription-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.subscription-hero p {
  max-width: 65ch;
  margin: .65rem 0 0;
  color: #d3e6de;
  font-size: .92rem;
  line-height: 1.55;
}

.subscription-current-panel,
.billing-panel {
  margin-top: 1.25rem;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-low);
}

.current-plan-main {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.current-plan-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: var(--primary-soft);
  border-radius: 12px;
  color: var(--primary);
  font-size: 1.15rem;
}

.current-plan-main > div {
  min-width: 0;
}

.current-plan-label {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.current-plan-main h2 {
  margin: .05rem 0;
  font-size: 1.25rem;
  font-weight: 825;
  letter-spacing: -.025em;
}

.current-plan-main p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}

.current-plan-main > .status {
  margin-left: auto;
}

.subscription-current-panel .subscription-details {
  margin-bottom: 0;
}

.subscription-current-panel .subscription-details > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: .5rem;
  min-height: 90px;
  border: 1px solid #e1e8e4;
  box-shadow: none;
}

.subscription-current-panel .subscription-details i {
  grid-row: 1 / 3;
  color: var(--primary);
}

.subscription-current-panel .subscription-details span,
.subscription-current-panel .subscription-details strong {
  grid-column: 2;
}

.payment-resume {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.payment-resume > div {
  min-width: 0;
}

.payment-resume strong,
.payment-resume span {
  display: block;
}

.payment-resume strong {
  font-size: .86rem;
}

.payment-resume span {
  margin-top: .15rem;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.4;
}

.payment-resume .btn {
  margin-left: auto;
  white-space: nowrap;
}

.subscription-checkout {
  margin-top: 2rem;
}

.subscription-form-alert {
  margin-bottom: 1.25rem;
}

.pricing-section {
  padding: 0;
}

.subscription-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.subscription-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 825;
  letter-spacing: -.025em;
}

.subscription-section-heading p {
  max-width: 68ch;
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.secure-note,
.billing-step {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 750;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.pricing-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #dce5e0;
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: #88ad9d;
}

.pricing-card.is-selected,
.pricing-card:has(.pricing-card-input:checked) {
  transform: translateY(-3px);
  background: #f7fbf9;
  border: 2px solid var(--primary);
  padding: calc(1.25rem - 1px);
}

.pricing-card:has(.pricing-card-input:focus-visible) {
  outline: 3px solid rgba(23, 107, 77, .18);
  outline-offset: 3px;
}

.pricing-card-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pricing-card-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cbd6d0;
  border-radius: 50%;
  color: transparent;
  font-size: .8rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pricing-card.is-selected .pricing-card-selector,
.pricing-card:has(.pricing-card-input:checked) .pricing-card-selector {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pricing-card-name {
  padding-right: 2rem;
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 800;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  margin-top: .7rem;
}

.pricing-card-price strong {
  font-size: clamp(1.65rem, 2.5vw, 2.05rem);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1;
}

.pricing-card-price small {
  color: var(--muted);
  font-size: .72rem;
}

.pricing-card-divider {
  display: block;
  height: 1px;
  margin: 1rem 0;
  background: var(--line);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-bottom: .75rem;
  color: #45534d;
  font-size: .75rem;
  line-height: 1.4;
}

.pricing-feature > i {
  width: 18px;
  flex: 0 0 auto;
  color: var(--primary);
  line-height: 1.35;
  text-align: center;
}

.pricing-feature.is-unavailable {
  color: #59655f;
}

.pricing-feature.is-unavailable > i {
  color: #59655f;
}

.pricing-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-top: auto;
  padding: .65rem .75rem;
  background: #f3f7f5;
  border-radius: 10px;
  color: var(--primary);
  font-size: .74rem;
  font-weight: 750;
  transition: background-color 160ms ease, color 160ms ease;
}

.pricing-card.is-selected .pricing-card-action,
.pricing-card:has(.pricing-card-input:checked) .pricing-card-action {
  background: var(--primary);
  color: #fff;
}

.pricing-error {
  margin-top: .6rem;
}

.billing-panel {
  margin-top: 1.5rem;
}

.billing-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.billing-field {
  min-width: 0;
}

.billing-field--billing_name,
.billing-field--billing_email,
.billing-field--billing_address {
  grid-column: span 2;
}

.checkout-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.checkout-selected-plan {
  min-width: 0;
  margin-right: auto;
}

.checkout-selected-plan span,
.checkout-selected-plan strong,
.checkout-selected-plan small {
  display: block;
}

.checkout-selected-plan span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
}

.checkout-selected-plan strong {
  margin: .08rem 0;
  color: var(--ink);
  font-size: .9rem;
}

.checkout-selected-plan small {
  color: var(--muted);
  font-size: .7rem;
}

.checkout-footer .btn {
  min-height: 48px;
  white-space: nowrap;
}

.checkout-security-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .68rem;
}

.subscription-owner-note {
  margin: 1.25rem 0 0;
  padding: 1rem;
  background: #fff9ed;
  border-radius: 12px;
  color: #79561d;
  font-size: .78rem;
  text-align: center;
}

.subscription-page-actions {
  display: flex;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.25rem;
}

.subscription-page-actions form {
  margin: 0;
}

/* Protected processing modal: a live activation ticket, not a decorative loader */
.activation-modal .modal-dialog {
  max-width: 760px;
}

.activation-panel {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-modal);
}

.activation-panel .modal-body {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.activation-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.activation-ticket {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  background: var(--primary);
  border-radius: 14px;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(23, 107, 77, .22);
}

.activation-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -.03em;
}

.activation-heading p {
  max-width: 62ch;
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.activation-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  margin: 1.5rem 0;
}

.activation-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  color: #59655f;
}

.activation-step > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: #edf1ef;
  border-radius: 10px;
  color: #59655f;
}

.activation-step strong,
.activation-step small {
  display: block;
}

.activation-step strong {
  font-size: .73rem;
  line-height: 1.25;
}

.activation-step small {
  margin-top: .12rem;
  font-size: .62rem;
  line-height: 1.3;
}

.activation-step.is-active {
  color: var(--primary-dark);
}

.activation-step.is-active > span {
  background: var(--primary-soft);
  color: var(--primary);
  animation: activation-breathe 1.7s var(--ease-out) infinite;
}

.activation-step.is-done {
  color: #4e5e57;
}

.activation-step.is-done > span {
  background: var(--primary);
  color: #fff;
}

.activation-route-arrow {
  color: #bcc7c1;
  font-size: .7rem;
}

@keyframes activation-breathe {
  0%, 100% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(23, 107, 77, 0); }
  50% { transform: scale(1); box-shadow: 0 8px 20px rgba(23, 107, 77, .13); }
}

.activation-live {
  padding: 1rem;
  background: #f7faf8;
  border-radius: 12px;
}

.activation-live-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.activation-live-copy span {
  color: #34453e;
  font-size: .78rem;
  font-weight: 700;
}

.activation-live-copy strong {
  min-width: 44px;
  color: var(--primary);
  font-size: .82rem;
  text-align: right;
}

.activation-live .processing-progress {
  height: 6px;
  margin: .7rem 0;
}

.activation-live p {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.4;
}

.activation-timing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.activation-timing > div {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.activation-timing > div > i {
  color: var(--primary);
  font-size: 1rem;
}

.activation-timing span,
.activation-timing small,
.activation-timing strong,
.activation-timing em {
  display: block;
}

.activation-timing small {
  color: var(--muted);
  font-size: .58rem;
}

.activation-timing strong {
  font-size: .72rem;
}

.activation-timing em {
  margin-top: .08rem;
  color: var(--primary);
  font-size: .65rem;
  font-style: normal;
  font-weight: 700;
}

.timing-arrow {
  color: #a7b4ae;
}

/* Asaas return: the same route continues until access is released */
.subscription-return-shell {
  min-height: calc(100vh - 4.8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.subscription-return-page {
  width: min(820px, 100%);
  padding: clamp(1.35rem, 4vw, 2rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
}

.return-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.return-heading-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  background: var(--primary-soft);
  border-radius: 15px;
  color: var(--primary);
  font-size: 1.4rem;
}

.return-heading h1,
.return-result-state h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.return-heading p,
.return-result-state p {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.return-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  margin: 1.75rem 0;
}

.return-step {
  color: #59655f;
  text-align: center;
}

.return-step > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto .55rem;
  background: #edf1ef;
  border-radius: 50%;
  color: #59655f;
}

.return-step strong,
.return-step small {
  display: block;
}

.return-step strong {
  font-size: .74rem;
}

.return-step small {
  margin-top: .15rem;
  font-size: .62rem;
}

.return-step.is-active,
.return-step.is-done {
  color: var(--primary-dark);
}

.return-step.is-active > span {
  background: var(--primary-soft);
  color: var(--primary);
  animation: activation-breathe 1.7s var(--ease-out) infinite;
}

.return-step.is-done > span {
  background: var(--primary);
  color: #fff;
}

.return-route-line {
  height: 2px;
  background: #e1e7e4;
}

.return-route-line.is-active {
  background: linear-gradient(90deg, var(--primary), #dfe8e3);
}

.return-route-line.is-done {
  background: var(--primary);
}

.confirmation-live {
  padding: 1rem;
  background: #f7faf8;
  border-radius: 12px;
}

.confirmation-live > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.confirmation-live > div:first-child span {
  color: #45544e;
  font-size: .76rem;
  font-weight: 700;
}

.confirmation-live > div:first-child strong {
  color: var(--primary);
  font-size: .82rem;
}

.confirmation-live .processing-progress {
  height: 6px;
  margin: .7rem 0;
}

.confirmation-live p {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.4;
}

.confirmation-complete {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  background: #e5f5ed;
  border-radius: 12px;
  color: #14734a;
}

.confirmation-complete[hidden] {
  display: none;
}

.confirmation-complete > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 50%;
}

.confirmation-complete strong,
.confirmation-complete p {
  display: block;
  margin: 0;
}

.confirmation-complete p {
  margin-top: .12rem;
  font-size: .7rem;
}

.return-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: 1rem;
}

.return-result-state {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.return-result-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  font-size: 1.45rem;
}

.return-result-state .btn {
  margin-top: 1.25rem;
}

@media (max-width: 1199px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card {
    min-height: 315px;
  }
}

@media (max-width: 767px) {
  .subscription-shell {
    padding-top: 0;
  }

  .subscription-hero {
    align-items: flex-start;
    min-height: 0;
  }

  .pricing-grid,
  .billing-fields-grid {
    grid-template-columns: 1fr;
  }

  .billing-field--billing_name,
  .billing-field--billing_email,
  .billing-field--billing_address {
    grid-column: auto;
  }

  .pricing-card {
    min-height: 285px;
  }

  .activation-route {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .activation-route-arrow {
    transform: rotate(90deg);
    margin-left: 14px;
  }

  .activation-timing {
    grid-template-columns: 1fr;
  }

  .timing-arrow {
    transform: rotate(90deg);
    margin-left: .1rem;
  }

  .return-route {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .return-route-line {
    width: 2px;
    height: 26px;
    margin: 0 auto;
  }

  .return-step {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-align: left;
  }

  .return-step > span {
    margin: 0;
    flex: 0 0 auto;
  }
}

@media (max-width: 575px) {
  .subscription-hero {
    gap: .85rem;
    padding: 1.2rem;
    border-radius: 14px;
  }

  .subscription-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 1.25rem;
  }

  .subscription-hero h1 {
    font-size: 1.55rem;
  }

  .subscription-section-heading,
  .checkout-footer,
  .payment-resume,
  .return-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscription-section-heading {
    margin-bottom: .8rem;
  }

  .pricing-card {
    min-height: 280px;
  }

  .checkout-footer .btn,
  .payment-resume .btn,
  .return-actions .btn {
    width: 100%;
  }

  .checkout-security-copy {
    justify-content: flex-start;
  }

  .subscription-page-actions,
  .return-actions {
    flex-direction: column;
  }

  .activation-modal .modal-dialog {
    margin: .5rem;
  }

  .activation-panel {
    border-radius: 16px;
  }

  .activation-heading {
    align-items: flex-start;
  }

  .activation-ticket {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .subscription-return-shell {
    padding: .5rem 0 5.5rem;
  }

  .subscription-return-page {
    padding: 1.15rem;
    border-radius: 14px;
  }

  .app-main > .toast-area,
  .toast-area {
    top: 78px;
    right: .75rem;
    width: calc(100vw - 1.5rem);
  }
}
