/* 观悦运营管理后台 - Bootstrap 5 */
:root {
  --sp-blue: #3d7dd6;
  --sp-blue-dark: #3269b8;
  --sp-blue-active: #4a6f94;
  --sp-sidebar: #4a6280;
  --sp-sidebar-2: #415873;
  --sp-sidebar-hover: rgba(255, 255, 255, 0.1);
  --sp-sidebar-active: #5a7696;
  --sp-login-bg: #2f7ed8;
  --sp-orange: #f07a2a;
  --sp-orange-hover: #e06a1a;
  --sp-skyline: #1a4f8a;
  --sp-text: #333333;
  --sp-muted: #8a94a6;
  --sp-border: #e6ebf2;
  --sp-bg: #f5f7fb;
  --sp-white: #ffffff;
  --sp-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bs-primary: #3d7dd6;
  --bs-primary-rgb: 61, 125, 214;
  --bs-body-font-family: var(--sp-font);
  --bs-border-radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sp-font);
  color: var(--sp-text);
  background: var(--sp-bg);
}

a { color: var(--sp-blue); text-decoration: none; }
a:hover { color: var(--sp-blue-dark); }

/* ========== Login ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 18% 22%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 78%, rgba(90, 130, 170, 0.28), transparent 55%),
    linear-gradient(165deg, #4a6280 0%, #415873 48%, #364a63 100%);
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.06) 18px,
      rgba(255, 255, 255, 0.06) 22px,
      transparent 22px,
      transparent 40px
    );
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.login-page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.login-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.login-decor svg {
  position: absolute;
  opacity: 0.22;
  color: #fff;
}

.login-decor .phone-a {
  width: 160px;
  left: 6%;
  top: 18%;
  transform: rotate(-12deg);
}

.login-decor .phone-b {
  width: 130px;
  right: 7%;
  top: 28%;
  transform: rotate(10deg);
}

.login-decor .reel-a {
  width: 110px;
  left: 12%;
  bottom: 12%;
  opacity: 0.16;
}

.login-decor .reel-b {
  width: 90px;
  right: 14%;
  bottom: 18%;
  opacity: 0.14;
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
}

.login-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.login-badge i {
  font-size: 18px;
}

.login-card {
  background: var(--sp-white);
  border-radius: 6px;
  padding: 28px 36px 32px;
  box-shadow: 0 12px 36px rgba(20, 35, 55, 0.28);
}

.login-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}

.login-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.38) 0%, transparent 46%),
    linear-gradient(145deg, #f3c56d 0%, #e6a43c 52%, #c98424 100%);
  color: #3a2a12;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 3px 10px rgba(184, 120, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.login-logo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.login-header-divider {
  width: 1px;
  height: 36px;
  background: #d9e2ec;
  flex-shrink: 0;
}

.login-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2d3d;
  line-height: 1.35;
}

.login-form .form-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.login-form .form-row label {
  margin: 0;
  text-align: right;
  color: #333;
  font-size: 14px;
}

.login-form .form-control {
  height: 36px;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  background: #fff;
  color: #333;
  padding: 0 10px;
  font-size: 14px;
}

.login-form .form-control:focus {
  border-color: var(--sp-blue);
  box-shadow: 0 0 0 0.15rem rgba(61, 125, 214, 0.15);
}

.captcha-row .captcha-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.captcha-row .captcha-box .form-control {
  flex: 1;
  min-width: 0;
}

.captcha-img {
  width: 110px;
  height: 36px;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  cursor: pointer;
  background: #eef3f8;
  flex-shrink: 0;
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-left: 82px;
}

.btn-login {
  height: 38px;
  border: none;
  border-radius: 4px;
  background: var(--sp-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.btn-login:hover {
  background: var(--sp-orange-hover);
  color: #fff;
}

.btn-reset {
  height: 38px;
  border: none;
  border-radius: 4px;
  background: var(--sp-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.btn-reset:hover {
  background: var(--sp-blue-dark);
  color: #fff;
}

.login-extra {
  margin-top: 16px;
  padding-left: 82px;
  font-size: 13px;
  color: #8896a8;
}

.login-extra a { color: var(--sp-blue); }

.toast-tech {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #1f2d3d;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: none;
}
.toast-tech.show { display: block; }
.toast-tech.error { background: #d9534f; }

/* ========== Admin layout ========== */
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: var(--sp-bg);
  transition: grid-template-columns 0.2s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.app-shell.sidebar-collapsed .sidebar {
  overflow: hidden;
  border: none;
}

.sidebar {
  background: linear-gradient(180deg, var(--sp-sidebar) 0%, var(--sp-sidebar-2) 100%);
  color: #edf2f7;
  padding: 0;
  min-height: 100vh;
  overflow: auto;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.38) 0%, transparent 46%),
    linear-gradient(145deg, #f3c56d 0%, #e6a43c 52%, #c98424 100%);
  color: #3a2a12;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 2px 8px rgba(184, 120, 28, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.sidebar .logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.sidebar .logo-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: #fff;
}

.sidebar .logo-text small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  opacity: 0.72;
}

.side-nav { padding: 10px 0 20px; }

.nav-folder {
  width: calc(100% - 16px);
  margin: 2px 8px;
  padding: 11px 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
}

.nav-folder:hover { background: var(--sp-sidebar-hover); }

.nav-folder-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.folder-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.nav-folder.open .folder-arrow {
  transform: rotate(180deg);
}

.nav-sub {
  display: none;
  padding: 2px 0 6px;
}

.nav-sub.open { display: block; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 8px 2px 16px;
  padding: 10px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  transition: background 0.15s ease;
}

.nav-item.top-link { margin-left: 8px; }

.nav-item:hover {
  background: var(--sp-sidebar-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--sp-sidebar-active);
  color: #fff;
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.55);
}

.nav-item i { font-size: 15px; }

.main {
  min-width: 0;
  background: var(--sp-bg);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  background: #2c2c2c;
  color: #eee;
}

.header-left { display: flex; align-items: center; }

.header-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.header-icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

.header-stats {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: #ddd;
}

.header-stats .stat-item {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-stats .stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.header-stats .stat-item b { font-weight: 600; color: #fff; }
.header-stats .stat-item.has-badge b { color: #ff6b6b; }
.header-stats .stat-item i { margin-right: 4px; opacity: 0.9; }

.header-stats .header-company-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding-left: 4px;
}

.header-right.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 12px;
  margin-left: auto;
}

.header-right .user-menu {
  position: relative;
}

.header-right .user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.header-right .user-menu-trigger:hover,
.header-right .user-menu.open .user-menu-trigger {
  background: rgba(255, 255, 255, 0.08);
}

.header-right .user-meta {
  text-align: right;
  line-height: 1.25;
}

.header-right .user-name {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.header-right .user-caret {
  font-size: 10px;
  opacity: 0.75;
  transition: transform 0.15s ease;
}
.header-right .user-menu.open .user-caret {
  transform: rotate(180deg);
}

.header-right .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sp-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.header-right .user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  z-index: 1200;
}

.header-right .user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  color: #1f2937;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.header-right .user-dropdown-item:hover {
  background: #f3f6fb;
  color: #0f172a;
}

.header-right .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #eee;
}

.header-right .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.page-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 12px 0;
  background: #e9edf3;
  border-bottom: 1px solid #d9dee8;
  overflow-x: auto;
  min-height: 38px;
}

/* 页面内容区 Tab：卡片内标准下划线页签 */
.coupon-panel {
  padding-top: 0;
}
.coupon-panel .content-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 -20px 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--sp-border);
  background: transparent;
}
.coupon-panel .content-tabs .content-tab,
.content-tabs .content-tab {
  display: inline-flex;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sp-muted) !important;
  padding: 14px 18px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  position: relative;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
}
.coupon-panel .content-tabs .content-tab:hover,
.content-tabs .content-tab:hover {
  color: var(--sp-text) !important;
}
.coupon-panel .content-tabs .content-tab.active,
.content-tabs .content-tab.active {
  color: var(--sp-blue) !important;
  font-weight: 600;
  border-bottom-color: var(--sp-blue) !important;
}
.coupon-panel .content-tabs .content-tab i,
.content-tabs .content-tab i {
  margin-right: 6px;
  font-size: 14px;
}
.coupon-pane + .coupon-pane { margin-top: 0; }

/* 兼容旧写法 */
.content-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 10px 24px 0;
  padding: 0 4px;
  border-bottom: 1px solid var(--sp-border);
}
.panel-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0 4px;
  border-bottom: 1px solid var(--sp-border);
  background: transparent;
}
.panel-tabs .tab-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--sp-muted);
  padding: 11px 18px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
}
.panel-tabs .tab-btn:hover { color: var(--sp-text); }
.panel-tabs .tab-btn.active {
  color: var(--sp-blue);
  font-weight: 600;
  border-bottom-color: var(--sp-blue);
}
.panel-tabs .tab-btn i { margin-right: 6px; }

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #dfe5ee;
  color: #556;
  border: 1px solid #d0d7e2;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.tab-item.active {
  background: #fff;
  color: #222;
  border-top: 2px solid var(--sp-blue);
  position: relative;
  top: 1px;
}

.tab-close {
  border: none;
  background: transparent;
  color: #889;
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 2px;
  cursor: pointer;
}

.tab-close:hover { color: #d9534f; }

.page-heading {
  padding: 14px 24px 0;
}

.breadcrumb-line {
  color: var(--sp-muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.breadcrumb-line .sep { margin: 0 6px; }

.page-heading h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

#page-content {
  flex: 1;
  min-height: 0;
  position: relative;
}

#page-content.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 247, 251, 0.55);
  z-index: 20;
}

#page-content.is-loading::before {
  content: "";
  position: absolute;
  top: 120px;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border: 3px solid #c9d7ea;
  border-top-color: var(--sp-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  z-index: 21;
}

.page-loading {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.panel {
  margin: 12px 24px 24px;
  background: var(--sp-white);
  border: 1px solid #edf0f5;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.04);
  padding: 18px 20px;
}

.demo-empty {
  text-align: center;
  padding: 48px 16px;
  color: #667;
}

.demo-empty i {
  font-size: 42px;
  color: var(--sp-blue);
  opacity: 0.7;
}

.demo-empty h3 {
  margin: 14px 0 8px;
  color: #333;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar .search {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.form-control,
.form-select {
  border: 1px solid #d8dee8;
  background: #fff;
  color: #333;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sp-blue);
  box-shadow: 0 0 0 0.15rem rgba(30, 123, 255, 0.15);
  background: #fff;
  color: #333;
}

.btn-tech,
.btn-primary {
  background: var(--sp-blue);
  border-color: var(--sp-blue);
  color: #fff;
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-weight: 600;
}

.btn-tech:hover,
.btn-primary:hover {
  background: var(--sp-blue-dark);
  border-color: var(--sp-blue-dark);
  color: #fff;
}

.btn-ghost,
.btn-outline-primary {
  background: #fff;
  border: 1px solid #d0d7e2;
  color: #556;
  border-radius: 4px;
}

.btn-ghost:hover {
  background: #f5f8fc;
  color: #333;
}

.btn-danger-soft {
  background: transparent;
  border: none;
  color: var(--sp-blue);
  padding: 0;
}

.btn-danger-soft:hover { color: #d9534f; }

.table-wrap { overflow: auto; }

.table.data-table {
  --bs-table-bg: #fff;
  --bs-table-color: #333;
  --bs-table-border-color: #eef1f6;
  --bs-table-striped-bg: #fafbfd;
  --bs-table-hover-bg: #eef6ff;
  margin-bottom: 0;
  white-space: nowrap;
}

.table.data-table thead th {
  color: var(--sp-muted);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--sp-border);
  background: #fff;
}

.table.data-table tbody td {
  font-size: 14px;
  vertical-align: middle;
}

.table.data-table a {
  cursor: pointer;
}

.table.data-table tbody tr.row-abnormal td {
  color: #c0392b;
  background: #fff6f5;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  background: #e8f3ff;
  color: var(--sp-blue);
}

.tag.off {
  background: #fff3e6;
  color: #d9822b;
}
.tag.on {
  background: #e8f8ef;
  color: #2e8b57;
}

.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #889;
  font-size: 13px;
}

.pager .page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d8dee8;
  background: #fff;
  color: #556;
  border-radius: 2px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.pager .page-btn:hover,
.pager .page-btn.active {
  border-color: var(--sp-blue);
  color: var(--sp-blue);
}

.pager .page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modal-content {
  background: #fff;
  border: 1px solid #e6ebf2;
  color: #333;
  border-radius: 8px;
}

.modal-header,
.modal-footer {
  border-color: #eef1f6;
}

.modal-title { color: #222; font-weight: 600; }

.btn-close { filter: none; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #e6ebf2;
  border-radius: 4px;
  background: #fafbfd;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #445;
  font-size: 13px;
}

.muted { color: var(--sp-muted); }
.form-label { color: #556; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 24px 0;
}

.stat-card {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.04);
  padding: 20px;
}

.stat-card .label {
  color: var(--sp-muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: #222;
}

.welcome-panel {
  margin-top: 16px;
}

.welcome-panel h3 {
  margin-top: 0;
  color: #222;
}

.home-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-module-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-module-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  color: inherit;
}

.home-module-card i {
  font-size: 22px;
  color: #2563eb;
}

.home-module-card strong {
  font-size: 15px;
}

.home-module-card span {
  font-size: 12px;
  color: var(--sp-muted);
}

@media (max-width: 992px) {
  .home-module-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .home-module-grid { grid-template-columns: 1fr; }
}

.payslip-sheet { line-height: 1.6; }
.payslip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.payslip-head h4 { margin: 0; font-size: 16px; }
.payslip-meta { color: var(--sp-muted); margin: 0 0 12px; }
.payslip-items { list-style: none; padding: 0; margin: 0 0 12px; border: 1px solid var(--sp-border); border-radius: 6px; }
.payslip-items li { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--sp-border); }
.payslip-items li:last-child { border-bottom: 0; }
.payslip-sum { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.payslip-sum strong { color: var(--sp-orange); }

@media (max-width: 992px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .stats { grid-template-columns: 1fr; margin: 8px 16px 0; }
  .panel { margin: 8px 16px 16px; }
  .login-actions,
  .login-form .form-row {
    grid-template-columns: 1fr;
  }
  .login-form .form-row label { text-align: left; }
  .login-actions,
  .login-extra { padding-left: 0; }
}
