/* Budget Pro - Laravel, Bootstrap, CSS only */
:root {
  --app-bg: #151927;
  --app-fg: #f5f7fb;
  --app-muted: #9aa5ba;
  --app-card: rgba(38, 45, 68, 0.72);
  --app-card-strong: rgba(31, 38, 58, 0.92);
  --app-border: rgba(255, 255, 255, 0.09);
  --app-input: rgba(255, 255, 255, 0.1);
  --app-primary: #65e6c3;
  --app-primary-strong: #2ecfb1;
  --app-accent: #a889ff;
  --app-warning: #f3ca5b;
  --app-danger: #ff6b6b;
  --app-success: #65e6c3;
  --app-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.62);
  --app-radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(101, 230, 195, 0.14), transparent 55%),
    radial-gradient(55% 55% at 100% 15%, rgba(168, 137, 255, 0.12), transparent 58%),
    var(--app-bg);
  color: var(--app-fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.app-sidebar {
  width: 252px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  background: rgba(23, 28, 43, 0.96);
  border-right: 1px solid var(--app-border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.app-main {
  flex: 1;
  min-width: 0;
}

.app-topbar {
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(21, 25, 39, 0.88);
  border-bottom: 1px solid var(--app-border);
  backdrop-filter: blur(12px);
}

.app-content {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 1.25rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  border-bottom: 1px solid var(--app-border);
  flex: 0 0 auto;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  color: var(--app-muted);
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.sidebar-section {
  padding: 0.75rem;
}

.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-scroll::-webkit-scrollbar,
.mobile-nav::-webkit-scrollbar,
.billing-modal-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sidebar-label {
  color: var(--app-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
}

.nav-link-app {
  color: #dbe3f4;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-link-app:hover,
.nav-link-app.active {
  color: var(--app-fg);
  background: rgba(255, 255, 255, 0.08);
}

button.nav-link-app {
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-link-app.nav-link-danger {
  color: #ff9a9a;
}

.nav-link-app.nav-link-danger .nav-icon {
  color: var(--app-danger);
}

.nav-link-app.nav-link-danger:hover,
.nav-link-app.nav-link-danger:focus {
  color: #ffd6d6;
  background: rgba(255, 107, 107, 0.13);
}

.nav-icon {
  width: 1.35rem;
  text-align: center;
  color: var(--app-primary);
  font-weight: 700;
  font-size: 0.78rem;
}

.nav-icon.bi {
  flex: 0 0 1.35rem;
  font-size: 1rem;
  line-height: 1;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--app-border);
  padding: 0.75rem;
  flex: 0 0 auto;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--app-primary), #41d9dd);
  color: #10231e;
  font-weight: 800;
  flex: 0 0 auto;
}

.avatar-lg {
  width: 68px;
  height: 68px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surface-card,
.card.surface-card {
  background: linear-gradient(180deg, rgba(42, 50, 75, 0.72), rgba(30, 37, 56, 0.62));
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  color: var(--app-fg);
  box-shadow: none;
}

.shadow-elevated {
  box-shadow: var(--app-shadow);
}

.page-title {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 800;
  margin: 0;
}

.page-subtitle,
.text-muted-app {
  color: var(--app-muted);
}

.stat-card {
  min-height: 136px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  right: -28px;
  top: -28px;
  border-radius: 50%;
  background: rgba(101, 230, 195, 0.18);
  filter: blur(10px);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.stat-value {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 800;
  margin-top: 0.35rem;
  word-break: break-word;
}

.icon-tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.gradient-primary {
  background: linear-gradient(135deg, var(--app-primary), #41d9dd);
  color: #10231e;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--app-accent), #7d78ff);
  color: #17142a;
}

.bg-soft-primary {
  background: rgba(101, 230, 195, 0.15);
  color: var(--app-primary);
}

.bg-soft-danger {
  background: rgba(255, 107, 107, 0.14);
  color: var(--app-danger);
}

.bg-soft-accent {
  background: rgba(168, 137, 255, 0.15);
  color: var(--app-accent);
}

.text-primary-app {
  color: var(--app-primary) !important;
}

.text-danger-app {
  color: var(--app-danger) !important;
}

.text-warning-app {
  color: var(--app-warning) !important;
}

.btn-primary-app {
  border: 0;
  color: #10231e;
  background: linear-gradient(135deg, var(--app-primary), #41d9dd);
  font-weight: 700;
}

.btn-primary-app:hover {
  color: #10231e;
  filter: brightness(1.04);
}

.btn-outline-app {
  border: 1px solid var(--app-border);
  color: var(--app-fg);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-app:hover {
  color: var(--app-fg);
  background: rgba(255, 255, 255, 0.09);
}

.btn-danger-soft {
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--app-danger);
  background: rgba(255, 107, 107, 0.08);
}

.form-control,
.form-select {
  color: var(--app-fg);
  background-color: var(--app-input);
  border-color: var(--app-border);
}

.form-select option,
.form-select optgroup {
  color: #f5f7fb;
  background-color: #202840;
}

.form-select option:checked {
  color: #10231e;
  background-color: var(--app-primary);
}

.form-control:focus,
.form-select:focus {
  color: var(--app-fg);
  background-color: rgba(255, 255, 255, 0.13);
  border-color: rgba(101, 230, 195, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(101, 230, 195, 0.12);
}

.form-control::file-selector-button {
  color: var(--app-fg);
  background: rgba(255, 255, 255, 0.1);
  border: 0;
}

.form-control::placeholder {
  color: rgba(245, 247, 251, 0.42);
}

.input-group-text {
  color: var(--app-fg);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--app-border);
}

.phone-prefix {
  min-width: 4.5rem;
  justify-content: center;
  font-weight: 700;
}

.password-toggle {
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dbe3f4;
}

.table-dark-app {
  --bs-table-bg: transparent;
  --bs-table-color: var(--app-fg);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  color: var(--app-fg);
  margin: 0;
}

.table-dark-app th {
  color: var(--app-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.badge-app {
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--app-fg);
  font-weight: 600;
}

.badge-primary-app {
  color: #10231e;
  background: var(--app-primary);
}

.badge-danger-app {
  color: #2d0f12;
  background: var(--app-danger);
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--app-border);
}

.list-row:first-child {
  border-top: 0;
}

.progress {
  height: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  background: var(--app-primary);
}

.progress-bar.danger {
  background: var(--app-danger);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 0.8rem;
  align-items: end;
  min-height: 220px;
  padding-top: 1rem;
}

.bar-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  align-items: end;
  min-height: 170px;
}

.bar {
  min-height: 4px;
  border-radius: 8px 8px 0 0;
}

.bar-income {
  background: linear-gradient(180deg, var(--app-primary), rgba(101, 230, 195, 0.25));
}

.bar-expense {
  background: linear-gradient(180deg, var(--app-danger), rgba(255, 107, 107, 0.22));
}

.bar-label {
  grid-column: 1 / -1;
  color: var(--app-muted);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.45rem;
}

.rank-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.45rem 0;
}

.rank-meter {
  grid-column: 1 / -1;
  height: 0.45rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.rank-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--app-primary);
}

.rank-meter.danger > span {
  background: var(--app-danger);
}

.empty-state {
  color: var(--app-muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
}

.auth-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-right: 1px solid var(--app-border);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 65% at 25% 15%, rgba(101, 230, 195, 0.25), transparent 58%),
    radial-gradient(55% 55% at 88% 82%, rgba(168, 137, 255, 0.2), transparent 58%);
  opacity: 0.85;
}

.auth-panel > * {
  position: relative;
  z-index: 1;
}

.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.auth-tabs a {
  display: block;
  text-align: center;
  border-radius: 9px;
  text-decoration: none;
  color: var(--app-muted);
  padding: 0.5rem 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-tabs a.active {
  background: rgba(255, 255, 255, 0.13);
  color: var(--app-fg);
}

.mobile-nav,
.mobile-menu-check,
.mobile-menu-button,
.mobile-menu-scrim,
.mobile-drawer-head,
.bottom-app-nav {
  display: none;
}

.tx-form-mobile-action,
.tx-modal-check,
.tx-modal {
  display: none;
}

.billing-modal {
  display: none;
}

.billing-modal.is-open {
  display: block;
}

.billing-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
}

.billing-modal-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 160;
  width: min(92vw, 520px);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  padding: 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: rgba(20, 25, 39, 0.98);
  box-shadow: var(--app-shadow);
}

.billing-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.billing-modal-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--app-fg);
  cursor: pointer;
}

@media (min-width: 992px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .app-sidebar {
    height: 100vh;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .app-main {
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 991.98px) {
  body {
    font-size: 0.82rem;
    font-weight: 400;
  }

  .app-shell {
    display: block;
  }

  .app-sidebar {
    width: 100%;
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 80;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 12px 28px -24px rgba(0, 0, 0, 0.9);
  }

  .sidebar-section,
  .sidebar-footer,
  .sidebar-scroll {
    display: none;
  }

  .brand-block {
    justify-content: space-between;
  }

  .mobile-menu-button {
    width: 38px;
    height: 34px;
    display: grid;
    place-content: center;
    gap: 4px;
    border-radius: 9px;
    border: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: var(--app-fg);
  }

  .mobile-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 110;
    width: min(78vw, 270px);
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.75rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: rgba(20, 25, 39, 0.98);
    border-right: 1px solid var(--app-border);
    box-shadow: 24px 0 50px -28px rgba(0, 0, 0, 0.75);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .mobile-menu-check:checked ~ .mobile-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-menu-check:checked ~ .mobile-menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(2px);
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.2rem 0.7rem;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .mobile-drawer-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid var(--app-border);
    color: var(--app-fg);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
    font-weight: 400;
    cursor: pointer;
  }

  .mobile-drawer-footer {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--app-border);
  }

  .mobile-nav .nav-link-app {
    width: 100%;
    white-space: normal;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.76rem;
    font-weight: 400;
    padding: 0.58rem 0.64rem;
    border: 1px solid rgba(255, 255, 255, 0.045);
  }

  .app-topbar {
    position: sticky;
    top: 63px;
    z-index: 70;
  }

  .app-content {
    padding-bottom: 5.4rem;
  }

  .tx-form-desktop {
    display: none;
  }

  .tx-form-mobile-action {
    display: block;
  }

  .tx-modal-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }

  .tx-modal-check:checked ~ .tx-modal {
    display: block;
  }

  .tx-modal-scrim {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
  }

  .tx-modal-panel {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 5rem;
    z-index: 130;
    max-height: calc(100vh - 8.5rem);
    overflow-y: auto;
    padding: 0.95rem;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: rgba(20, 25, 39, 0.98);
    box-shadow: var(--app-shadow);
  }

  .tx-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--app-fg);
    font-size: 0.82rem;
  }

  .tx-modal-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--app-fg);
    cursor: pointer;
  }

  .bottom-app-nav {
    position: fixed;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: rgba(21, 25, 39, 0.94);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(14px);
  }

  .bottom-app-nav a {
    display: grid;
    justify-items: center;
    gap: 0.12rem;
    padding: 0.45rem 0.25rem;
    border-radius: 13px;
    color: var(--app-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.05;
  }

  .bottom-app-nav a span {
    color: var(--app-primary);
    font-size: 0.74rem;
  }

  .bottom-app-nav a i {
    color: var(--app-primary);
    font-size: 0.9rem;
    line-height: 1;
  }

  .bottom-app-nav a.active {
    color: var(--app-fg);
    background: rgba(255, 255, 255, 0.09);
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    display: none;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 0.68rem;
    font-weight: 400;
  }

  body * {
    font-weight: 400 !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  strong,
  b,
  .fw-bold,
  .fw-semibold,
  .fw-medium,
  .page-title,
  .brand-title,
  .stat-value,
  .stat-label,
  .form-label,
  .btn,
  .badge,
  .nav-link-app {
    font-weight: 400 !important;
  }

  .app-content {
    padding: 0.75rem 0.72rem 5.2rem;
  }

  .app-topbar {
    min-height: 46px;
    height: auto;
    top: 58px;
    padding: 0.55rem 0.75rem;
  }

  .brand-block {
    padding: 0.75rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: 0.74rem;
  }

  .brand-subtitle,
  .small,
  small {
    font-size: 0.58rem;
  }

  .page-title {
    font-size: 0.92rem;
  }

  .display-4,
  .display-5 {
    font-size: 1.05rem;
  }

  .lead {
    font-size: 0.72rem;
  }

  .page-subtitle {
    font-size: 0.6rem;
  }

  .card-body {
    padding: 0.78rem;
  }

  .card-header {
    padding: 0.78rem 0.78rem 0;
  }

  .surface-card,
  .card.surface-card {
    border-radius: 10px;
  }

  .stat-card {
    min-height: 106px;
  }

  .stat-label {
    font-size: 0.5rem;
  }

  .stat-value {
    font-size: 0.78rem;
  }

  .icon-tile {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.62rem;
  }

  .form-control,
  .form-select,
  .btn {
    font-size: 0.64rem;
  }

  .form-label {
    font-size: 0.58rem;
  }

  .table {
    font-size: 0.6rem;
  }

  .badge {
    font-size: 0.54rem;
  }

  .list-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.72rem 0.8rem;
  }

  .bar-chart {
    gap: 0.55rem;
    overflow-x: auto;
  }

  .auth-form-wrap {
    padding: 0.75rem;
  }

  .auth-tabs a {
    font-size: 0.72rem;
    padding: 0.42rem 0.25rem;
  }

  .bottom-app-nav {
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    border-radius: 15px;
  }

  .bottom-app-nav a {
    font-size: 0.56rem;
    padding: 0.38rem 0.2rem;
  }

  .bottom-app-nav a span {
    font-size: 0.6rem;
  }

  .bottom-app-nav a i {
    font-size: 0.72rem;
  }

  .tx-form-mobile-action {
    width: 100%;
  }

  .tx-modal-open {
    width: 100%;
    padding: 0.5rem 0.65rem;
  }

  .tx-modal-panel {
    left: 0.45rem;
    right: 0.45rem;
    bottom: 4.65rem;
    max-height: calc(100vh - 7.6rem);
    padding: 0.72rem;
    border-radius: 13px;
  }

  .tx-modal-head {
    margin-bottom: 0.58rem;
    font-size: 0.68rem;
  }

  .tx-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.7rem;
  }
}

.auth-shell-simple {
  grid-template-columns: minmax(0, 1fr);
}

.auth-html,
.auth-page {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

.auth-shell-simple .auth-form-wrap {
  min-height: 100vh;
  place-items: start center;
  padding-block: clamp(1rem, 4vw, 2rem);
}

.welcome-html,
.welcome-page {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

.welcome-page {
  color: var(--app-fg);
  font-size: 1rem;
  overflow-x: hidden;
}

.welcome-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 2rem;
}

.welcome-hero {
  min-height: min(760px, calc(100vh - 7rem));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.welcome-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.9rem, 4.1vw, 3.85rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
}

.welcome-lead {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: #c3ccdc;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.75;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.welcome-actions .btn {
  border-radius: 8px;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.welcome-preview {
  position: relative;
  min-height: 390px;
}

.preview-card {
  position: absolute;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: rgba(31, 38, 58, 0.9);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(12px);
}

.preview-card-main {
  inset: 2rem 1rem 3rem 0;
  padding: 1rem;
  animation: welcome-float 5.4s ease-in-out infinite;
}

.preview-head {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2.2rem;
}

.preview-head span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--app-primary);
}

.preview-head span:nth-child(2) {
  background: var(--app-warning);
}

.preview-head span:nth-child(3) {
  background: var(--app-danger);
}

.preview-metric small {
  display: block;
  color: var(--app-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.preview-metric strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.preview-bars {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 150px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  align-items: end;
}

.preview-bars span {
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--app-primary), rgba(101, 230, 195, 0.18));
  animation: welcome-bars 3.6s ease-in-out infinite;
}

.preview-bars span:nth-child(2) {
  background: linear-gradient(180deg, var(--app-warning), rgba(243, 202, 91, 0.2));
  animation-delay: 0.2s;
}

.preview-bars span:nth-child(3) {
  background: linear-gradient(180deg, #41d9dd, rgba(65, 217, 221, 0.16));
  animation-delay: 0.4s;
}

.preview-bars span:nth-child(4) {
  background: linear-gradient(180deg, var(--app-accent), rgba(168, 137, 255, 0.18));
  animation-delay: 0.6s;
}

.preview-card-sms,
.preview-card-email {
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(86%, 285px);
  padding: 0.85rem 0.9rem;
  color: #e9eef9;
  font-weight: 700;
}

.preview-card-sms {
  top: 0;
  animation: welcome-float 5.2s ease-in-out infinite 0.4s;
}

.preview-card-email {
  bottom: 0;
  animation: welcome-float 5.8s ease-in-out infinite 0.8s;
}

.preview-card-sms i,
.preview-card-email i {
  color: var(--app-primary);
  font-size: 1.2rem;
}

.welcome-section {
  padding: 1.5rem 0 2.5rem;
}

.welcome-section h2,
.welcome-proof h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.welcome-item {
  min-height: 220px;
  padding: 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.welcome-item:hover {
  transform: translateY(-4px);
  border-color: rgba(101, 230, 195, 0.36);
  background: rgba(255, 255, 255, 0.075);
}

.welcome-item i {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 8px;
  color: #10231e;
  background: var(--app-primary);
  font-size: 1.1rem;
}

.welcome-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.welcome-item p,
.welcome-proof p {
  margin: 0;
  color: #c3ccdc;
  line-height: 1.7;
}

.welcome-plan-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.welcome-plan-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid rgba(101, 230, 195, 0.24);
  border-radius: 8px;
  color: #dbe3f4;
  background: rgba(101, 230, 195, 0.07);
  font-size: 0.88rem;
  font-weight: 700;
}

.welcome-plan-strip i {
  color: var(--app-primary);
}

.welcome-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(101, 230, 195, 0.22);
  border-radius: 8px;
  background: rgba(101, 230, 195, 0.075);
}

.welcome-proof a,
.welcome-footer a {
  color: var(--app-primary);
  text-decoration: none;
}

.welcome-proof a:hover,
.welcome-footer a:hover {
  text-decoration: underline;
}

.welcome-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 0.9rem;
}

.welcome-footer > div,
.welcome-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.welcome-footer strong {
  color: var(--app-fg);
}

.welcome-footer-links a.active {
  color: #10231e;
  background: var(--app-primary);
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
}

.welcome-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: welcome-in 700ms ease forwards;
}

.welcome-delay {
  animation-delay: 120ms;
}

.welcome-delay-2 {
  animation-delay: 220ms;
}

.welcome-delay-3 {
  animation-delay: 320ms;
}

@keyframes welcome-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes welcome-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes welcome-bars {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-fade,
  .preview-card-main,
  .preview-card-sms,
  .preview-card-email,
  .preview-bars span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .welcome-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .welcome-preview {
    min-height: 350px;
  }

  .welcome-grid,
  .welcome-proof {
    grid-template-columns: 1fr;
  }

  .welcome-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .welcome-page {
    font-size: 0.7rem;
  }

  .welcome-page .brand-title,
  .welcome-page .brand-subtitle,
  .welcome-title,
  .welcome-lead,
  .welcome-section h2,
  .welcome-proof h2,
  .welcome-item h3,
  .welcome-item p,
  .welcome-proof p,
  .welcome-plan-strip span,
  .welcome-actions .btn,
  .welcome-footer,
  .welcome-footer strong {
    font-weight: 400 !important;
  }

  .welcome-wrap {
    width: min(100% - 1rem, 1120px);
    padding-top: 1.2rem;
  }

  .welcome-brand {
    margin-bottom: 1.25rem;
  }

  .welcome-title {
    font-size: 1.06rem;
    line-height: 1.25;
  }

  .welcome-lead,
  .welcome-item p,
  .welcome-proof p {
    font-size: 0.64rem;
    line-height: 1.55;
  }

  .welcome-section h2,
  .welcome-proof h2 {
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .welcome-item h3 {
    font-size: 0.74rem;
  }

  .welcome-plan-strip {
    gap: 0.45rem;
  }

  .welcome-plan-strip span {
    width: 100%;
    padding: 0.45rem 0.55rem;
    font-size: 0.62rem;
  }

  .welcome-actions,
  .welcome-actions .btn {
    width: 100%;
  }

  .welcome-actions .btn {
    min-height: 2.35rem;
    font-size: 0.66rem;
  }

  .welcome-preview {
    display: none;
  }

  .welcome-item {
    min-height: auto;
    padding: 0.8rem;
  }

  .welcome-item i {
    width: 1.85rem;
    height: 1.85rem;
    margin-bottom: 0.65rem;
    font-size: 0.86rem;
  }

  .welcome-proof {
    padding: 0.85rem;
  }

  .welcome-footer {
    width: min(100% - 1rem, 1120px);
    font-size: 0.62rem;
  }
}
