:root {
  --yru-primary: #1B1464;
  --yru-secondary: #6D5ACF;
  --yru-accent: #FFD700;
  --yru-gradient: linear-gradient(135deg, #1B1464 0%, #6D5ACF 100%);
  --sidebar-width: 280px;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: #f4f6fb;
}

.bg-yru-gradient,
.badge.bg-yru-gradient {
  background: var(--yru-gradient) !important;
}

.badge.bg-yru-gradient {
  color: #fff;
}

.qr-pay-card {
  max-width: 360px;
  margin: 0 auto;
}

.border-dashed {
  border-style: dashed !important;
}

/* QR Payment section */
.qr-payment-wrap {
  background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
  border-radius: 1.25rem;
  border: 1px solid #e8ecf4;
  overflow: hidden;
}

.qr-payment-header {
  background: var(--yru-gradient);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.qr-amount-display {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.qr-frame {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(27, 20, 100, 0.08);
  border: 1px solid #ececf3;
}

.qr-frame::before,
.qr-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--yru-secondary);
}

.qr-frame::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}

.qr-frame::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

.qr-frame img {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 0.5rem;
}

.qr-thai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e4d2b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.qr-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
}

.qr-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yru-gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-countdown-box {
  background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
  border: 1px solid #ffc107;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.qr-countdown-timer {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc3545;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.qr-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: #5a6474;
}

.qr-create-banner {
  background: var(--yru-gradient);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qr-create-banner::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: -60px;
  right: -40px;
}

.text-yru-primary { color: var(--yru-primary); }
.text-yru-secondary { color: var(--yru-secondary); }

.btn-yru {
  background: var(--yru-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-yru:hover,
.btn-yru:focus {
  color: #fff;
  box-shadow: 0 8px 20px rgba(27, 20, 100, 0.25);
  transform: translateY(-1px);
}

.btn-yru:disabled,
.btn-yru.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.navbar-yru {
  background: var(--yru-gradient);
  box-shadow: 0 4px 20px rgba(27, 20, 100, 0.2);
}

.app-sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - 64px);
  background: #fff;
  border-right: 1px solid #e8ecf4;
  position: sticky;
  top: 64px;
}

.app-sidebar .nav-link {
  color: #4a5568;
  border-radius: 0.75rem;
  margin: 0.15rem 0.75rem;
  padding: 0.65rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.app-sidebar .nav-link:hover {
  background: #f0edff;
  color: var(--yru-primary);
}

.app-sidebar .nav-link.active {
  background: var(--yru-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 90, 207, 0.35);
}

.profile-card {
  background: linear-gradient(180deg, #f8f7ff 0%, #fff 100%);
  border-bottom: 1px solid #ececf3;
}

.content-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.stat-card-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 53, 69, 0.35);
}

.login-page {
  min-height: 100vh;
  background: #eef1f8;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow-x: hidden;
}

.login-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-panel {
  position: relative;
}

.login-panel-brand {
  flex: 1 1 48%;
  background: var(--yru-gradient);
  color: #fff;
  display: none;
  overflow: hidden;
}

.login-panel-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
  padding: 3rem 3.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.login-brand-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.login-brand-desc {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.88;
  margin-bottom: 2rem;
  max-width: 420px;
}

.login-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.login-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

.login-feature-list li i {
  color: var(--yru-accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.login-panel-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.login-orb-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
}

.login-orb-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: -40px;
}

.login-orb-3 {
  width: 140px;
  height: 140px;
  bottom: -30px;
  right: 20%;
  background: rgba(255, 215, 0, 0.12);
}

.login-panel-form {
  flex: 1 1 52%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(109, 90, 207, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(27, 20, 100, 0.05) 0%, transparent 40%),
    #eef1f8;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 24px 48px rgba(27, 20, 100, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 2.25rem 2rem;
}

.login-card-header {
  margin-bottom: 1.75rem;
}

.login-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yru-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.login-card-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.login-alert {
  border: none;
  background: #fef2f2;
  color: #991b1b;
  margin-bottom: 1.25rem;
}

.login-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yru-secondary);
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 2;
}

.login-input {
  height: 3.1rem;
  padding-left: 2.85rem;
  padding-right: 1rem;
  border-radius: 0.85rem;
  border: 1.5px solid #e5e7eb;
  background: #fafbff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input-password {
  padding-right: 3rem;
}

.login-input:focus {
  background: #fff;
  border-color: var(--yru-secondary);
  box-shadow: 0 0 0 4px rgba(109, 90, 207, 0.12);
}

.login-toggle-pass {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 0.25rem 0.35rem;
  line-height: 1;
  border-radius: 0.35rem;
  transition: color 0.2s ease;
}

.login-toggle-pass:hover {
  color: var(--yru-primary);
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.1rem;
  border-radius: 0.85rem !important;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.login-submit i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.login-submit:hover i {
  transform: translateX(3px);
}

.login-footer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f1f5;
  font-size: 0.85rem;
  color: #6b7280;
}

.login-footer-link {
  color: var(--yru-secondary);
  font-weight: 600;
  text-decoration: none;
}

.login-footer-link:hover {
  color: var(--yru-primary);
  text-decoration: underline;
}

.login-copyright {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
}

@media (min-width: 992px) {
  .login-panel-brand {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .login-panel-form {
    min-height: 100vh;
  }

  .login-card {
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 40px rgba(27, 20, 100, 0.1);
  }
}

.form-control:focus,
.form-select:focus {
  border-color: var(--yru-secondary);
  box-shadow: 0 0 0 0.2rem rgba(109, 90, 207, 0.2);
}

.page-header {
  border-left: 4px solid var(--yru-secondary);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* ── Payment Status — Modern UI ── */
.ps-page {
  --ps-radius: 1.25rem;
  --ps-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --ps-shadow-lg: 0 12px 40px rgba(27, 20, 100, 0.1);
  --ps-border: rgba(255, 255, 255, 0.6);
}

.ps-hero {
  position: relative;
  border-radius: var(--ps-radius);
  background: var(--yru-gradient);
  color: #fff;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--ps-shadow-lg);
}

.ps-hero::before,
.ps-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ps-hero::before {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.08);
  top: -100px;
  right: -60px;
}

.ps-hero::after {
  width: 160px;
  height: 160px;
  background: rgba(255, 215, 0, 0.12);
  bottom: -50px;
  left: 10%;
}

.ps-hero-inner {
  position: relative;
  z-index: 1;
}

.ps-hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.ps-hero-desc {
  font-size: 0.875rem;
  opacity: 0.88;
  margin: 0;
}

.ps-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.ps-toolbar {
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.ps-toolbar .form-select {
  border-radius: 0.85rem;
  border-color: #e8ecf4;
  background-color: #fafbff;
  font-weight: 500;
}

.ps-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 767.98px) {
  .ps-stat-grid {
    grid-template-columns: 1fr;
  }
}

.ps-stat-card {
  position: relative;
  background: #fff;
  border-radius: var(--ps-radius);
  padding: 1.25rem;
  box-shadow: var(--ps-shadow);
  border: 1px solid #f0f1f5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ps-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ps-shadow-lg);
}

.ps-stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #f0edff, #e8e4ff);
  color: var(--yru-secondary);
}

.ps-stat-card.ps-stat-danger .ps-stat-card-icon {
  background: linear-gradient(135deg, #fde8ea, #fce4ec);
  color: #dc3545;
}

.ps-stat-card.ps-stat-success .ps-stat-card-icon {
  background: linear-gradient(135deg, #e8f5e9, #d1f2eb);
  color: #198754;
}

.ps-stat-card-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.ps-stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--yru-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ps-stat-card-value small {
  font-size: 0.85rem;
  font-weight: 500;
  color: #9ca3af;
}

.ps-progress-panel {
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid #f0f1f5;
}

.ps-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #eef0f6;
  overflow: hidden;
  margin: 0.75rem 0;
}

.ps-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--yru-gradient);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-stepper {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ps-step {
  flex: 1;
  min-width: 60px;
  text-align: center;
}

.ps-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eef0f6;
  color: #9ca3af;
  margin-bottom: 0.35rem;
  transition: all 0.25s ease;
}

.ps-step.ps-step-done .ps-step-dot {
  background: linear-gradient(135deg, #198754, #20c997);
  color: #fff;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.ps-step.ps-step-current .ps-step-dot {
  background: var(--yru-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(109, 90, 207, 0.4);
  transform: scale(1.1);
}

.ps-step-label {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
}

.ps-step.ps-step-current .ps-step-label {
  color: var(--yru-primary);
  font-weight: 600;
}

.ps-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.ps-notice-info {
  background: linear-gradient(135deg, #f0edff 0%, #faf8ff 100%);
  border: 1px solid #ddd6fe;
  color: #4338ca;
}

.ps-notice-warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  color: #92400e;
}

.ps-notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.ps-notice-info .ps-notice-icon {
  background: rgba(109, 90, 207, 0.15);
  color: var(--yru-secondary);
}

.ps-notice-warn .ps-notice-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

.ps-instalment-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ps-instalment-card {
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  border: 1px solid #f0f1f5;
  padding: 1.25rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ps-instalment-card:hover {
  box-shadow: var(--ps-shadow-lg);
}

.ps-instalment-card.ps-card-active {
  border-color: rgba(109, 90, 207, 0.35);
  box-shadow: 0 8px 32px rgba(109, 90, 207, 0.12);
}

.ps-instalment-card.ps-card-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--yru-gradient);
}

.ps-instalment-card.ps-card-blocked {
  opacity: 0.65;
}

.ps-instalment-card.ps-card-paid {
  background: linear-gradient(135deg, #fff 0%, #f8fdf9 100%);
  border-color: rgba(25, 135, 84, 0.15);
}

.ps-instalment-card.ps-card-overdue:not(.ps-card-paid) {
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
  border-color: rgba(245, 158, 11, 0.2);
}

.ps-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ps-card-seq {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  background: #f3f4f6;
  color: #6b7280;
  flex-shrink: 0;
}

.ps-card-active .ps-card-seq {
  background: var(--yru-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(109, 90, 207, 0.35);
}

.ps-card-paid .ps-card-seq {
  background: linear-gradient(135deg, #198754, #20c997);
  color: #fff;
}

.ps-card-title {
  font-weight: 600;
  color: var(--yru-primary);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.ps-card-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--yru-primary);
  letter-spacing: -0.02em;
}

.ps-card-amount small {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
}

.ps-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ps-status-paid {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.ps-status-active {
  background: var(--yru-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 90, 207, 0.3);
}

.ps-status-pending {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.ps-status-overdue {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.ps-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ps-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #6b7280;
  background: #f8f9fc;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

.ps-meta-chip i {
  color: var(--yru-secondary);
}

.ps-meta-chip.ps-penalty {
  background: #fef2f2;
  color: #dc2626;
}

.ps-meta-chip.ps-penalty i {
  color: #dc2626;
}

.ps-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f1f5;
  flex-wrap: wrap;
}

.ps-card-paid-date {
  font-size: 0.95rem;
  color: #6b7280;
}

.ps-card-paid-date i {
  color: #059669;
}

.ps-blocked-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

.ps-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  border: 2px dashed #e5e7eb;
}

.ps-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0edff, #e8e4ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--yru-secondary);
  margin-bottom: 1rem;
}

.ps-select-hint {
  text-align: center;
  padding: 2rem;
  border-radius: var(--ps-radius);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
  border: 2px dashed #ddd6fe;
  margin-top: 1rem;
}

.ps-select-hint i {
  font-size: 2rem;
  color: var(--yru-secondary);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.ps-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yru-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ps-section-title i {
  color: var(--yru-secondary);
}

@media (max-width: 575.98px) {
  .ps-hero {
    padding: 1.35rem 1.25rem;
  }

  .ps-card-header {
    flex-direction: column;
  }

  .ps-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-card-footer .btn {
    width: 100%;
  }
}

/* Legacy W3.CSS compatibility inside new layout */
#app .w3-container { padding: 0; }
#app .w3-panel {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
#app .w3-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
}
#app .w3-table th,
#app .w3-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #edf0f5;
}
#app .w3-table th {
  background: #f8f9fc;
  font-weight: 600;
  color: var(--yru-primary);
}
#app .w3-striped tbody tr:nth-child(even) { background: #fafbff; }
#app .w3-text-red { color: #dc3545 !important; }
#app .w3-text-teal { color: #20c997 !important; }
#app .w3-text-blue { color: #0d6efd !important; }
#app .w3-btn.w3-pink,
#app .w3-btn.w3-block.w3-pink {
  background: var(--yru-gradient);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
}
#app .w3-tag.w3-pink {
  background: var(--yru-secondary);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.8rem;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    z-index: 1040;
    top: 64px;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    height: calc(100vh - 64px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }

  .app-sidebar.show {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1035;
  }

  .sidebar-overlay.show { display: block; }
}
