/* Neytom — Apple Glass app shell (dashboard + subpages) */
:root {
  --accent: #5b6b7c;
  --accent-hover: #3d4a5c;
  --accent-deep: #2c3644;
  --accent-ink: #2c3644;
  --accent2: #7a8fa3;
  --accent-light: #eef2f6;
  --green: #34c759;
  --success-ink: #1f7a3a;
  --red: #ff3b30;
  --orange: #ff9500;
  --purple: #5856d6;
  --bg: #f5f5f7;
  --card: rgba(255, 255, 255, 0.82);
  --text: #1d1d1f;
  --muted: #5c5c62;
  --border: #e5e5ea;
  --sidebar-w: 260px;
  --nav-h: 44px;
  --mbn-h: 56px;
  /* Single bottom chrome token: nav height + safe-area (used by main, drawers, modals, cookie). */
  --app-bottom-chrome: calc(var(--mbn-h) + env(safe-area-inset-bottom, 0px));
  --app-bottom-clearance: calc(var(--app-bottom-chrome) + 12px);
  --color-success: #1f7a3a;
  --color-success-bg: #e8f5ec;
  --color-info: #1d4ed8;
  --color-info-bg: #eef4ff;
  --color-warning: #92400e;
  --color-warning-bg: #fff7ed;
  --color-danger: #b91c1c;
  --color-danger-bg: #fef2f2;
  --focus-ring: 2px solid #1d4ed8;
  --state-selected-bg: var(--color-info-bg, #eef4ff);
  --state-selected-border: var(--color-info, #1d4ed8);
  --state-selected-ink: #1d1d1f;
  --shell-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(28, 25, 23, 0.03);
  --shell-nav-shadow:
    0 0 0 0.5px rgba(28, 25, 23, 0.05),
    0 1px 2px rgba(28, 25, 23, 0.04),
    0 4px 14px rgba(28, 25, 23, 0.05);
  --shell-nav-shadow-hover:
    0 0 0 0.5px rgba(17, 24, 39, 0.12),
    0 2px 6px rgba(17, 24, 39, 0.06),
    0 8px 22px rgba(17, 24, 39, 0.08);
  --shell-nav-shadow-active:
    0 0 0 0.5px rgba(17, 24, 39, 0.55),
    0 2px 6px rgba(17, 24, 39, 0.22),
    0 10px 28px rgba(17, 24, 39, 0.28),
    0 20px 48px rgba(17, 24, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --shell-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --btn-primary-bg: #111827;
  --btn-primary-hover: #000000;
  --btn-primary-text: #fff;
  --btn-secondary-bg: #f5f5f7;
  --btn-secondary-text: #1d1d1f;
}

*, *::before, *::after { box-sizing: border-box; }

body.neytom-app-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
}

body.neytom-app-body main.main,
body.neytom-app-body .main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 32px;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ——— Sidebar ——— */
.neytom-app-sidebar.sidebar,
aside.sidebar.neytom-app-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  max-width: var(--sidebar-w);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border-right: 0.5px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    1px 0 0 rgba(229, 229, 234, 0.9),
    4px 0 24px rgba(28, 25, 23, 0.04);
  padding: 24px 14px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

.neytom-app-sidebar .sidebar-logo {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  margin-bottom: 22px;
  text-decoration: none;
  line-height: 1;
  max-width: 100%;
}

.neytom-app-sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.neytom-app-sidebar .sidebar-brand__mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  box-shadow: var(--shell-nav-shadow), var(--shell-glass-inset);
}

.neytom-app-sidebar .sidebar-brand__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

/* Legacy wide lockup (other pages) */
.neytom-app-sidebar .sidebar-logo picture {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}

.neytom-app-sidebar .sidebar-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.neytom-app-sidebar .user-card {
  background: linear-gradient(145deg, rgba(240, 246, 255, 0.95), rgba(232, 240, 254, 0.88));
  border: 0.5px solid rgba(61, 74, 92, 0.14);
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 18px;
  box-shadow: var(--shell-nav-shadow), var(--shell-glass-inset);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.neytom-app-sidebar .user-card .uc-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.neytom-app-sidebar .user-card .uc-name {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neytom-app-sidebar .nav-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 14px 0 8px 12px;
}
.neytom-app-sidebar .nav-label--capsule {
  color: #9a7a3a;
  letter-spacing: 0.08em;
  margin-top: 6px;
  opacity: 0.85;
}
.neytom-app-sidebar .nav-link--capsule {
  opacity: 0.92;
  background: linear-gradient(180deg, rgba(255,248,230,0.55), rgba(255,255,255,0.4));
  border: 1px solid rgba(201,161,90,0.22);
}
.neytom-app-sidebar .nav-link--capsule.active {
  opacity: 1;
  background: linear-gradient(180deg, #fff8e6, #f0e1b8);
  box-shadow: inset 0 0 0 1px rgba(201,161,90,0.28);
}
.neytom-app-sidebar .user-card + .nav-label {
  margin-top: 8px;
}
.neytom-app-sidebar .nav-link--jump.is-jump-active {
  box-shadow: inset 0 0 0 1px rgba(61, 74, 92, 0.22), var(--shell-nav-shadow), var(--shell-glass-inset);
  background: rgba(61, 74, 92, 0.08);
}
.neytom-app-sidebar .nav-link[data-dash-panel].is-current {
  background: rgba(61, 74, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(61, 74, 92, 0.18), var(--shell-nav-shadow), var(--shell-glass-inset);
}

.neytom-app-sidebar .nav-link.is-pressed,
.neytom-app-sidebar .nav-link.is-current,
.neytom-app-sidebar .nav-link[data-dash-panel].is-current {
  transition: none !important;
}

.neytom-app-sidebar .nav-link.is-pressed {
  background: rgba(61, 74, 92, 0.12);
  opacity: 0.92;
}

.neytom-app-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--nav-h);
  min-height: var(--nav-h);
  max-height: var(--nav-h);
  padding: 0 12px;
  margin-bottom: 4px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  transition:
    background 0.28s var(--shell-ease),
    color 0.22s ease,
    box-shadow 0.32s var(--shell-ease),
    transform 0.32s var(--shell-ease);
  position: relative;
  overflow: hidden;
  border: 0.5px solid transparent;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shell-nav-shadow), var(--shell-glass-inset);
  width: 100%;
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
}

.neytom-app-sidebar .nav-link:hover {
  background: rgba(61, 74, 92, 0.06);
  transform: translateY(-1px);
  box-shadow: var(--shell-nav-shadow-hover), var(--shell-glass-inset);
}

.neytom-app-sidebar .nav-link .nl-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(245, 245, 247, 0.92);
  border: 0.5px solid rgba(28, 25, 23, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 3px rgba(28, 25, 23, 0.04);
  transition: background 0.28s var(--shell-ease), box-shadow 0.28s var(--shell-ease);
}

.neytom-app-sidebar .nav-link .nl-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neytom-app-sidebar .nav-link .nl-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.neytom-app-sidebar .nav-link .nl-badge.is-on {
  opacity: 1;
  transform: scale(1);
}

.neytom-app-sidebar .nav-link.active {
  background: var(--btn-primary-bg, #111827);
  color: #fff;
  border-color: rgba(17, 24, 39, 0.55);
  box-shadow: var(--shell-nav-shadow-active);
  transform: translateY(-1px);
  animation: navLinkActivate 0.35s var(--shell-ease) forwards;
}

.neytom-app-sidebar .nav-link.active .nl-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.neytom-app-sidebar .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  animation: navIndicatorIn 0.3s ease forwards;
}

@keyframes navLinkActivate {
  from { transform: scale(0.98); opacity: 0.88; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes navIndicatorIn {
  from { height: 0; opacity: 0; }
  to { height: 22px; opacity: 1; }
}

.neytom-app-sidebar .nav-bottom { margin-top: auto; padding-top: 12px; }

.neytom-app-sidebar .btn-signout {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  text-align: center;
  border: 0.5px solid rgba(255, 59, 48, 0.22);
  box-shadow: var(--shell-nav-shadow), var(--shell-glass-inset);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.28s var(--shell-ease), color 0.22s ease, box-shadow 0.32s var(--shell-ease), transform 0.28s var(--shell-ease);
}

.neytom-app-sidebar .btn-signout:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 0.5px rgba(255, 59, 48, 0.45),
    0 4px 14px rgba(255, 59, 48, 0.28),
    0 12px 32px rgba(255, 59, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ——— Glass cards (shared) ——— */
body.neytom-app-body .section-card,
body.neytom-app-body .card,
body.neytom-app-body .glass,
body.neytom-app-body .profile-card,
body.neytom-app-body .tcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

body.neytom-app-body .page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-bottom: 4px;
  animation: pageTitleIn 0.6s ease forwards;
}

body.neytom-app-body .page-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

@keyframes pageTitleIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.neytom-app-body input[type="text"],
body.neytom-app-body input[type="email"],
body.neytom-app-body input[type="password"],
body.neytom-app-body input[type="tel"],
body.neytom-app-body input[type="number"],
body.neytom-app-body input[type="url"],
body.neytom-app-body select,
body.neytom-app-body textarea {
  background: #fbfbfd;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

body.neytom-app-body input:focus,
body.neytom-app-body select:focus,
body.neytom-app-body textarea:focus {
  border-color: var(--accent-ink);
  background: #fff;
}

body.neytom-app-body button,
body.neytom-app-body .btn,
body.neytom-app-body .btn-primary,
body.neytom-app-body .submit-btn {
  border-radius: 12px;
  font-weight: 700;
  background: var(--btn-primary-bg, #111827);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

body.neytom-app-body .btn-secondary,
body.neytom-app-body .btn-gray {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Deploy catalog / upgrade checkout — override global blue button styling */
body.neytom-app-body button.dc-config__tab,
body.neytom-app-body button.dc-tpl-card,
body.neytom-app-body button.dc-btn,
body.neytom-app-body button.dc-stack-chip,
body.neytom-app-body button.dc-site-mode__card,
body.neytom-app-body button.dash-product-card,
body.neytom-app-body button.dash-launch-intent,
body.neytom-app-body button.plan-card,
body.neytom-app-body button.dash-ov-btn-ghost,
body.neytom-app-body button.dash-ob-chip,
body.neytom-app-body button.dash-dom-btn-ghost,
body.neytom-app-body button.dash-addon-chip,
body.neytom-app-body button.dash-vps-os-card,
body.neytom-app-body button.preset-btn,
body.neytom-app-body button.upg-stripe-btn,
body.neytom-app-body button.upg-paypal-checkout-btn,
body.neytom-app-body button.dash-paypal-fallback-btn,
body.neytom-app-body button.upg-back-plans,
body.neytom-app-body button.neytom-upgrade-close,
body.neytom-app-body button.neytom-upgrade-hint-close,
body.neytom-app-body button.upg-pm-tile,
body.neytom-app-body button.dash-pm-tile {
  background: unset;
  color: unset;
  border: unset;
  border-radius: unset;
  font-weight: unset;
}

body.neytom-app-body button.dash-launch-intent,
body.neytom-app-body button.plan-card,
body.neytom-app-body button.dash-product-card {
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

body.neytom-app-body button.preset-btn {
  font-family: inherit;
  cursor: pointer;
}

/* Payment method tiles — override global blue button styling */
body.neytom-app-body button.dash-pm-tile,
body.neytom-app-body button.upg-pm-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  padding: 14px 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #1d1d1f;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, transform 0.22s ease;
  -webkit-appearance: none;
  appearance: none;
}

body.neytom-app-body button.upg-pm-tile {
  align-items: flex-start;
  min-height: 72px;
  padding: 10px 12px;
  gap: 2px;
  border-radius: 12px;
  border-width: 1px;
  background: rgba(255, 255, 255, 0.62) !important;
  color: #1d1d1f !important;
}

body.neytom-app-body button.dash-pm-tile:hover,
body.neytom-app-body button.upg-pm-tile:hover {
  border-color: rgba(61, 74, 92, 0.38);
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
  opacity: 1;
}

body.neytom-app-body button.dash-pm-tile.active,
body.neytom-app-body button.upg-pm-tile.active {
  border-color: var(--state-selected-border, #1d4ed8) !important;
  background: var(--state-selected-bg, #eef4ff) !important;
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.22), 0 6px 20px rgba(29, 78, 216, 0.14);
  transform: translateY(0);
  color: var(--state-selected-ink, #1d1d1f) !important;
}

body.neytom-app-body button.dash-pm-tile:not(.active) .dash-pm-ico svg,
body.neytom-app-body button.upg-pm-tile:not(.active) .upg-pm-title {
  opacity: 0.78;
  transition: opacity 0.28s ease, filter 0.28s ease;
}

body.neytom-app-body button.dash-pm-tile:not(.active) .dash-pm-ico svg {
  filter: saturate(0.75);
}

body.neytom-app-body button.dash-pm-tile.active .dash-pm-ico svg {
  opacity: 1;
  filter: none;
}

.dash-pm-selector {
  margin-bottom: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.dash-pm-label {
  font-size: 11px;
  font-weight: 800;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.dash-pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.dash-pm-tile .dash-pm-ico {
  width: 40px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-pm-tile .dash-pm-ico svg {
  max-width: 100%;
  height: auto;
}

.dash-pm-tile .dash-pm-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.2;
}

.dash-pm-tile .dash-pm-sub {
  font-size: 10px;
  font-weight: 600;
  color: #86868b;
  line-height: 1.3;
  max-width: 100%;
}

body.neytom-app-body button.btn-stripe-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  margin-top: 6px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #635bff 0%, #4937e6 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 91, 255, 0.32);
  transition: filter 0.15s ease, transform 0.15s ease;
}

body.neytom-app-body button.btn-stripe-dash:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  opacity: 1;
}

body.neytom-app-body button.btn-stripe-dash:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

#dash-paypal-container,
#dr-resume-paypal-container,
#paypal-button-container,
#upg-paypal-container {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  margin-top: 6px;
  overflow: visible;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  touch-action: manipulation;
}

body.neytom-app-body button.upg-stripe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, #635bff, #4937e6) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(99, 91, 255, 0.28);
}

body.neytom-app-body button.upg-stripe-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#dash-paypal-container .paypal-buttons,
#dr-resume-paypal-container .paypal-buttons,
#paypal-button-container .paypal-buttons,
#upg-paypal-container .paypal-buttons {
  min-height: 48px;
  border-radius: 12px !important;
  overflow: visible !important;
}

body.neytom-app-body button.dash-paypal-fallback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.neytom-app-body button.dash-paypal-fallback-btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

body.neytom-app-body button.dash-paypal-fallback-btn.card {
  background: linear-gradient(180deg, #1a1f71 0%, #003087 55%, #001c64 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 48, 135, 0.28);
}

body.neytom-app-body button.dash-paypal-fallback-btn.wallet {
  background: #ffc439;
  color: #003087;
  box-shadow: 0 4px 14px rgba(255, 196, 57, 0.35);
}

.inst-summary-card .inst-pick,
.inst-pickers .inst-pick {
  transition: none;
}

body.neytom-app-body button.inst-pick,
body.neytom-app-body a.inst-pick {
  background: rgba(255, 255, 255, 0.82) !important;
  color: #1d1d1f !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  min-height: 72px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 12px rgba(0, 0, 0, 0.08);
  font-weight: 700;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  gap: 8px;
  text-decoration: none !important;
  box-sizing: border-box;
}

body.neytom-app-body button.inst-pick:hover,
body.neytom-app-body a.inst-pick:hover {
  border-color: rgba(61, 74, 92, 0.38) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  transform: translateY(-1px);
}

body.neytom-app-body button.inst-pick.active,
body.neytom-app-body a.inst-pick.active {
  border-color: rgba(61, 74, 92, 0.78) !important;
  background: linear-gradient(165deg, rgba(61, 74, 92, 0.16) 0%, rgba(255, 255, 255, 0.88) 100%) !important;
  box-shadow: 0 0 0 1px rgba(61, 74, 92, 0.22), 0 6px 20px rgba(61, 74, 92, 0.14);
}

.inst-tab,
.inst-tab.danger,
.inst-tab.disk-split-save,
.inst-tab.nc-tab {
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 2px 10px rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: border-color 0.24s ease, transform 0.18s ease, background 0.18s ease;
}

.inst-tab:hover,
.inst-tab.danger:hover,
.inst-tab.disk-split-save:hover,
.inst-tab.nc-tab:hover {
  border-color: rgba(61, 74, 92, 0.38);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
  color: #1d1d1f;
}

.inst-tab.active,
.inst-tab.danger.active,
.inst-tab.disk-split-save.active,
.inst-tab.nc-tab.nc-tab-primary {
  border-color: rgba(61, 74, 92, 0.78);
  background: linear-gradient(165deg, rgba(61, 74, 92, 0.18) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 0 0 1px rgba(61, 74, 92, 0.22), 0 6px 20px rgba(61, 74, 92, 0.14);
  color: #1d1d1f;
}

button.neytom-upgrade-hint-btn {
  border-radius: 14px;
  padding: 12px 18px;
  border: none;
  background: linear-gradient(135deg, #0071e3, #00a2ff);
  color: #fff;
  box-shadow: 0 4px 18px rgba(61, 74, 92, 0.4);
}

button.neytom-upgrade-hint-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 74, 92, 0.45);
}

.inst-tab.disk-split-save {
  min-width: 180px;
  background: linear-gradient(135deg, #0071e3, #00a2ff);
  color: #fff;
  box-shadow: 0 4px 18px rgba(61, 74, 92, 0.35);
}

.inst-tab.disk-split-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 74, 92, 0.45);
}

.dash-paypal-fallback-btn .dpf-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.2;
  text-align: left;
}

.dash-paypal-fallback-btn .dpf-text small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.88;
}

/* ——— Mobile bottom nav ——— */
html.kb-open .mobile-bottom-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  isolation: isolate;
  height: var(--app-bottom-chrome);
  min-height: var(--app-bottom-chrome);
  max-height: var(--app-bottom-chrome);
  padding: 0 2px env(safe-area-inset-bottom, 0);
  align-items: stretch;
  justify-content: space-around;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.mobile-bottom-nav a,
.mobile-bottom-nav button.mbn-link {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 2px;
  border-radius: 10px;
  position: relative;
  transition: color 0.2s;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav a .mbn-icon,
.mobile-bottom-nav button.mbn-link .mbn-icon {
  font-size: 20px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-bottom-nav a .mbn-label,
.mobile-bottom-nav button.mbn-link .mbn-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  text-align: center;
  padding: 0 1px;
}

.mobile-bottom-nav a:focus-visible,
.mobile-bottom-nav button.mbn-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
  color: var(--accent-ink);
}

.mobile-bottom-nav a.mbn-link--logout {
  color: var(--color-danger, #b91c1c);
}

.mobile-bottom-nav a.mbn-link--logout .mbn-icon {
  font-size: 19px;
}

.mobile-bottom-nav a.mbn-link--logout:active {
  opacity: 0.85;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav button.mbn-link.active {
  color: var(--color-info, #1d4ed8);
  animation: mbnActivate 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-bottom-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-info, #1d4ed8);
  animation: mbnDotIn 0.25s ease forwards;
}

.mobile-bottom-nav a .mbn-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 20px;
  background: var(--color-danger, #b91c1c);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-bottom-nav a .mbn-badge.is-on {
  opacity: 1;
  transform: scale(1);
}

/* More sheet (Profile / Sign out) */
.mbn-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mbn-more-sheet[hidden] { display: none !important; }
.mbn-more-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.mbn-more-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.16);
  transform: translateY(0);
}
.mbn-more-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mbn-more-sheet__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.mbn-more-sheet__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f5f5f7;
  font-size: 16px;
  cursor: pointer;
  color: #1d1d1f;
}
.mbn-more-sheet__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mbn-more-sheet__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  background: #f5f5f7;
}
.mbn-more-sheet__link.is-active {
  outline: 2px solid var(--accent-ink);
  background: var(--accent-light, #eef2f6);
}
.mbn-more-sheet__link--danger { color: var(--color-danger, #b91c1c); }
html.mbn-more-open { overflow: hidden; }

@keyframes mbnActivate {
  from { transform: scale(0.94); }
  to { transform: scale(1); }
}

@keyframes mbnDotIn {
  from { width: 0; opacity: 0; }
  to { width: 18px; opacity: 1; }
}

/* ——— Responsive ——— */
html[data-display-fit="mobile"] .neytom-app-sidebar.sidebar,
html[data-display-fit="mobile"] aside.sidebar.neytom-app-sidebar,
html[data-display-fit="tablet"] .neytom-app-sidebar.sidebar,
html[data-display-fit="tablet"] aside.sidebar.neytom-app-sidebar {
  display: none !important;
}

html[data-display-fit="mobile"] .mobile-bottom-nav,
html[data-display-fit="tablet"] .mobile-bottom-nav {
  display: flex !important;
}

html[data-display-fit="mobile"] body.neytom-app-body:not(.demo-app-body) main.main,
html[data-display-fit="mobile"] body.neytom-app-body:not(.demo-app-body) .main,
html[data-display-fit="tablet"] body.neytom-app-body:not(.demo-app-body) main.main,
html[data-display-fit="tablet"] body.neytom-app-body:not(.demo-app-body) .main {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-bottom: var(--app-bottom-clearance) !important;
}

@media (max-width: 1024px) {
  .mobile-bottom-nav {
    display: flex !important;
    justify-content: space-around;
    overflow-x: hidden;
    overflow-y: hidden;
    gap: 0;
    padding-left: 4px;
    padding-right: 4px;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button.mbn-link {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 6px 4px;
  }

  .mobile-bottom-nav a .mbn-label,
  .mobile-bottom-nav button.mbn-link .mbn-label {
    max-width: 100%;
    font-size: 10px;
  }

  body.neytom-app-body:not(.demo-app-body) main.main,
  body.neytom-app-body:not(.demo-app-body) .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: var(--app-bottom-clearance) !important;
  }
  .neytom-app-sidebar.sidebar,
  aside.sidebar.neytom-app-sidebar { display: none !important; }
}

.neytom-app-sidebar .nav-link.inbox-has-alert:not(.active) {
  animation: inboxAlertPulse 1.2s ease-in-out infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.25);
}

/* Block legacy per-page sidebar overrides */
body.neytom-app-body aside.neytom-app-sidebar .nav-link {
  height: var(--nav-h) !important;
  min-height: var(--nav-h) !important;
  max-height: var(--nav-h) !important;
  font-weight: 500 !important;
  padding: 0 12px !important;
}

body.neytom-app-body aside.neytom-app-sidebar .nav-link.active {
  background: var(--btn-primary-bg, #111827) !important;
  color: #fff !important;
  border-color: rgba(17, 24, 39, 0.55) !important;
  box-shadow: var(--shell-nav-shadow-active) !important;
}

@keyframes inboxAlertPulse {
  0%, 100% { background: rgba(255, 59, 48, 0.06); }
  50% { background: rgba(255, 59, 48, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile readability + tap performance */
@media (max-width: 900px), (pointer: coarse) {
  .neytom-app-sidebar.sidebar,
  .mobile-bottom-nav,
  .neytom-app-header,
  .section-card,
  .dash-card-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .mobile-bottom-nav a .mbn-label {
    font-size: 12px;
  }

  button,
  a.nav-link,
  .mobile-bottom-nav a,
  .neytom-app-sidebar .nav-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(61, 74, 92, 0.12);
    min-height: 44px;
  }

  button:active,
  a.nav-link:active,
  .mobile-bottom-nav a:active {
    opacity: 0.88;
    transition: opacity 0.05s ease;
  }

  .neytom-app-sidebar .nav-link:hover {
    transform: none;
  }

  .neytom-app-sidebar .nav-link {
    transition: background 0.08s ease, color 0.08s ease, box-shadow 0.08s ease;
  }

  .mobile-bottom-nav a.is-pressed {
    opacity: 0.88;
    transition: none;
  }

  .mobile-bottom-nav a {
    transition: color 0.08s ease, opacity 0.05s ease;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .neytom-app-sidebar.sidebar,
  .mobile-bottom-nav,
  .neytom-app-header,
  .section-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }
}
