/**
 * PumLike — Custom Bootstrap 5 Overrides
 * White theme + blue accent (#1967D2), Prompt font, clean marketing layout.
 */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bs-body-font-family: "Prompt", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --bs-primary: #1967D2;
  --bs-primary-rgb: 25, 103, 210;
  --bs-link-color: #1967D2;
  --bs-link-hover-color: #1249a1;

  --pl-success: #198754;
  --pl-success-bg: #d1e7dd;
  --pl-danger: #dc3545;
  --pl-danger-bg: #f8d7da;
  --pl-warning: #f59e0b;
  --pl-warning-bg: #fff3cd;
  --pl-info: #0dcaf0;
  --pl-info-bg: #cff4fc;

  --pl-radius-sm: 8px;
  --pl-radius-md: 12px;
  --pl-radius-lg: 16px;
  --pl-radius-xl: 24px;
  --pl-radius-pill: 50px;

  --pl-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --pl-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --pl-shadow-lg: 0 8px 28px rgba(0,0,0,0.1);
  --pl-shadow-xl: 0 20px 60px rgba(25,103,210,0.12);
  --pl-shadow-focus: 0 0 0 3px rgba(25,103,210,0.15);

  --pl-transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --pl-transition-bounce: 0.3s cubic-bezier(0.34,1.56,0.64,1);

  --pl-border: #e9ecef;
  --pl-bg-muted: #f8f9fa;
  --pl-text-muted: #6c757d;

  /* New tokens */
  --pl-primary-light: #e8f0fe;
  --pl-primary-mid: #4285f4;
  --pl-gradient: linear-gradient(135deg, #1967D2 0%, #4285f4 100%);
  --pl-gradient-soft: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
  --pl-surface: #ffffff;
  --pl-surface-alt: #f8faff;
  --pl-border-light: #f0f4ff;
}

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: var(--bs-body-font-family);
  color: #212529;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Better focus outline for accessibility */
:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

a:focus-visible {
  border-radius: 2px;
}

::selection {
  background: rgba(25,103,210,0.15);
  color: #212529;
}

/* ── Announcement Banner ─────────────────────────────────── */
.site-banner {
  background: var(--bs-primary);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ── Sticky Header ───────────────────────────────────────── */
.site-header {
  padding: 0.5rem 0;
  z-index: 1030;
  transition: box-shadow var(--pl-transition);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95) !important;
  border-bottom: 1px solid var(--pl-border);
}

.navbar-brand img,
.site-brand img {
  max-height: 36px;
}

.site-brand__mark {
  width: 36px;
  height: 36px;
  background: var(--pl-gradient);
  border-radius: var(--pl-radius-sm);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform var(--pl-transition), box-shadow var(--pl-transition);
  box-shadow: 0 2px 8px rgba(25,103,210,0.3);
}

.site-brand__mark:hover {
  transform: scale(1.05);
}

.navbar .nav-link {
  font-weight: 500;
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: var(--pl-radius-sm);
  transition: color var(--pl-transition), background var(--pl-transition);
  position: relative;
}

.navbar .nav-link:hover {
  color: var(--bs-primary);
  background: rgba(25,103,210,0.05);
}

.navbar .nav-link.active {
  color: var(--bs-primary);
  background: var(--pl-primary-light);
  font-weight: 600;
  border-radius: var(--pl-radius-pill);
}

@media (max-width: 991.98px) {
  .navbar .nav-link.active {
    border-radius: var(--pl-radius-sm);
  }
}

/* ── Navbar Toggler ──────────────────────────────────────── */
.navbar-toggler {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pl-radius-sm) !important;
  background: var(--pl-bg-muted) !important;
  border: 1.5px solid var(--pl-border) !important;
  transition: background var(--pl-transition), border-color var(--pl-transition);
  flex-shrink: 0;
}

.navbar-toggler:hover,
.navbar-toggler[aria-expanded="true"] {
  background: rgba(25,103,210,0.07) !important;
  border-color: var(--bs-primary) !important;
}

.navbar-toggler-icon {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23495057' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #f0f5ff 0%, #fff 50%, #e8f0fe 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60V20C240 0 480 40 720 30S1200 10 1440 25V60H0z' fill='%23fff'/%3E%3C/svg%3E") center/cover no-repeat;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(25, 103, 210, 0.08);
  color: var(--bs-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--pl-radius-pill);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--bs-primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--pl-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-cta .btn {
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  border-radius: var(--pl-radius-sm);
}

.trusted-strip img {
  height: 24px;
  opacity: 0.55;
  transition: opacity var(--pl-transition);
}

.trusted-strip img:hover {
  opacity: 0.8;
}

/* Quick Order Card */
.quick-order-card {
  background: #fff;
  border-radius: var(--pl-radius-lg);
  box-shadow: var(--pl-shadow-md);
  padding: 1.75rem;
  border: 1px solid var(--pl-border);
  transition: box-shadow var(--pl-transition);
}

.quick-order-card:hover {
  box-shadow: var(--pl-shadow-lg);
}

.quick-order-card .form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: #495057;
  margin-bottom: 0.3rem;
}

.quick-order-card .form-select,
.quick-order-card .form-control {
  border-radius: var(--pl-radius-sm);
  border: 1.5px solid #dee2e6;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color var(--pl-transition), box-shadow var(--pl-transition);
}

.quick-order-card .form-select:focus,
.quick-order-card .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: var(--pl-shadow-focus);
}

.quick-order-card .btn-order {
  background: var(--bs-primary);
  border: none;
  border-radius: var(--pl-radius-sm);
  padding: 0.65rem;
  font-weight: 600;
  width: 100%;
  color: #fff;
  transition: background var(--pl-transition), transform var(--pl-transition);
}

.quick-order-card .btn-order:hover {
  background: #1249a1;
  color: #fff;
  transform: translateY(-1px);
}

.quick-order-card .price-preview {
  font-size: 0.825rem;
  color: var(--pl-text-muted);
  margin-top: 0.5rem;
}

.quick-order-card .price-preview strong {
  color: var(--bs-primary);
  font-weight: 600;
}

.quick-order-login {
  text-align: center;
  padding: 1.75rem;
}

.quick-order-login p {
  color: var(--pl-text-muted);
  margin-bottom: 1rem;
}

/* Wave divider between hero and next section */
.wave-divider {
  position: relative;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* ── Section Helpers ─────────────────────────────────────── */
.section-section {
  padding: 3.5rem 0;
}

.section-section--alt {
  background: var(--pl-bg-muted);
}

.section-subtitle {
  color: var(--pl-text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-dark .section-title,
.section-dark .section-subtitle {
  color: #fff;
}

.section--dark {
  background: #1a1d23;
  color: #fff;
}

/* ── Stats Cards ─────────────────────────────────────────── */
.stat-card {
  border: none;
  border-radius: var(--pl-radius-md);
  box-shadow: var(--pl-shadow-sm);
  text-align: center;
  padding: 1.5rem 1rem;
  transition: transform var(--pl-transition-bounce), box-shadow var(--pl-transition);
}

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

.stat-card__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1.1;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--pl-text-muted);
  margin-bottom: 0;
  margin-top: 0.35rem;
}

.stat-card__icon {
  font-size: 1.5rem;
  color: rgba(25, 103, 210, 0.15);
  margin-bottom: 0.5rem;
}

/* ── Platform Cards (Popular Services) ───────────────────── */
.platform-card {
  border: 1.5px solid var(--pl-border);
  border-radius: var(--pl-radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--pl-transition-bounce);
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

.platform-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 4px 16px rgba(25, 103, 210, 0.12);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.platform-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--pl-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--pl-transition);
}

.platform-card__svg,
.platform-section__svg {
  width: 1.25em;
  height: 1.25em;
  display: block;
  flex-shrink: 0;
}

.platform-card:hover .platform-card__icon {
  transform: scale(1.1);
}

.platform-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.platform-card__count {
  font-size: 0.78rem;
  color: var(--pl-text-muted);
  margin: 0;
}

/* ── How It Works Steps ──────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-card__number {
  width: 48px;
  height: 48px;
  background: var(--bs-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 auto 1rem;
}

.step-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card__desc {
  font-size: 0.85rem;
  color: var(--pl-text-muted);
  line-height: 1.6;
}

.step-arrow {
  position: absolute;
  top: 2.5rem;
  right: -10px;
  color: #dee2e6;
  font-size: 1.25rem;
}

/* ── Feature / Why Us Cards ──────────────────────────────── */
.feature-card {
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md);
  padding: 1.5rem;
  background: #fff;
  height: 100%;
  transition: box-shadow var(--pl-transition), transform var(--pl-transition);
}

.feature-card:hover {
  box-shadow: var(--pl-shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(25, 103, 210, 0.08);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature-card__desc {
  font-size: 0.85rem;
  color: var(--pl-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials--dark {
  background: #1a1d23;
  color: #fff;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pl-radius-md);
  padding: 2rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-card__author {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.4);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.carousel-indicators .active {
  background-color: var(--bs-primary);
}

/* ── Post Cards ──────────────────────────────────────────── */
.post-card-link { transition: box-shadow var(--pl-transition), transform var(--pl-transition-bounce); }
.post-card-link:hover { box-shadow: var(--pl-shadow-lg) !important; transform: translateY(-3px); }

.post-card-thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-thumb--featured { aspect-ratio: 21 / 9; }

.post-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card-link:hover .post-card-img { transform: scale(1.04); }

/* ── Single Post Content ─────────────────────────────────── */
.post-content img { max-width: 100%; height: auto; border-radius: .5rem; margin: 1.25rem 0; display: block; }
.post-content blockquote { border-left: 4px solid var(--bs-primary); padding: .75rem 1.25rem; background: rgba(13,110,253,.05); border-radius: 0 .5rem .5rem 0; }

/* ── Service Table (services page) ───────────────────────── */
.service-table thead th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  background: var(--pl-bg-muted);
}

.service-table tbody td {
  vertical-align: middle;
  font-size: 0.875rem;
  padding: 0.65rem 0.75rem;
}

.service-table tbody tr {
  transition: background var(--pl-transition);
}

.service-platform-header {
  background: #f1f5ff;
  border-left: 3px solid var(--bs-primary);
  font-weight: 600;
  color: var(--bs-primary);
  padding: 0.75rem;
}

/* ── Auth Cards (login/register) ─────────────────────────── */
.auth-shell {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--pl-surface);
  border-radius: var(--pl-radius-xl);
  box-shadow: var(--pl-shadow-xl);
  padding: 0;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--pl-border);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.auth-card:focus-within {
  box-shadow: var(--pl-shadow-xl), 0 0 0 3px rgba(25, 103, 210, 0.08);
}

/* Gradient header strip on auth cards */
.auth-card__header {
  background: var(--pl-gradient);
  padding: 1.75rem 2.25rem 1.5rem;
  text-align: center;
}

.auth-card__brand-mark {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--pl-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(8px);
}

.auth-card__header-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.95;
}

/* Auth body area */
.auth-card__body {
  padding: 2rem 2.25rem 2.25rem;
}

.auth-card h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.auth-card p {
  color: var(--pl-text-muted);
  margin-bottom: 1.25rem;
}

.auth-card .form-check-label {
  user-select: none;
}

.auth-card .btn-primary {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: var(--pl-gradient);
  border: none;
  font-weight: 600;
}

.auth-card .btn-primary:hover {
  background: var(--pl-gradient);
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(25,103,210,0.35);
}

.auth-card__pill {
  display: inline-block;
  background: rgba(25, 103, 210, 0.08);
  color: var(--bs-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--pl-radius-pill);
  margin-bottom: 1rem;
}

/* ── Auth Modals ────────────────────────────────────────── */
.pl-auth-modal .modal-content {
  border-radius: var(--pl-radius-lg);
  border: 1px solid var(--pl-border);
  box-shadow: var(--pl-shadow-md);
}

.pl-auth-modal {
  max-width: 440px;
}

.pl-auth-modal .btn-primary {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

/* ── Form Enhancements ───────────────────────────────────── */
.form-control,
.form-select {
  border-radius: var(--pl-radius-sm);
  border: 1.5px solid #dee2e6;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color var(--pl-transition), box-shadow var(--pl-transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: var(--pl-shadow-focus);
}

.form-control.is-invalid {
  border-color: var(--pl-danger);
  box-shadow: 0 0 0 3px rgba(220,53,69,0.12);
}

.form-control.is-valid {
  border-color: var(--pl-success);
  box-shadow: 0 0 0 3px rgba(25,135,84,0.12);
}

.form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: #495057;
  margin-bottom: 0.35rem;
}

.form-text {
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* Password field with toggle */
.input-password-wrap {
  position: relative;
}

.input-password-wrap .form-control {
  padding-right: 2.75rem;
}

.btn-password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--pl-text-muted);
  cursor: pointer;
  padding: 0;
  transition: color var(--pl-transition);
  z-index: 2;
}

.btn-password-toggle:hover {
  color: var(--bs-primary);
}

/* Password strength meter */
.password-strength {
  height: 4px;
  border-radius: 2px;
  background: #e9ecef;
  margin-top: 0.4rem;
  overflow: hidden;
}

.password-strength__bar {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.password-strength__bar[data-strength="0"] { width: 0; }
.password-strength__bar[data-strength="1"] { width: 25%; background: var(--pl-danger); }
.password-strength__bar[data-strength="2"] { width: 50%; background: var(--pl-warning); }
.password-strength__bar[data-strength="3"] { width: 75%; background: #17a2b8; }
.password-strength__bar[data-strength="4"] { width: 100%; background: var(--pl-success); }

.password-strength__text {
  font-size: 0.72rem;
  margin-top: 0.2rem;
  color: var(--pl-text-muted);
}

/* Password confirm match feedback */
.password-match-feedback {
  font-size: 0.72rem;
  margin-top: 0.25rem;
  min-height: 1.1em;
  transition: color 0.2s;
}
.password-match-feedback--mismatch { color: var(--pl-danger); }
.password-match-feedback--match    { color: var(--pl-success); }

/* Honeypot field — hidden from real users */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ── Alerts / Notices ────────────────────────────────────── */
.pl-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--pl-radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid transparent;
  border-left: 4px solid transparent;
  animation: pl-alert-in 0.3s ease;
  position: relative;
}

.pl-alert--success {
  background: var(--pl-success-bg);
  border-color: rgba(25,135,84,0.2);
  border-left-color: var(--pl-success);
  color: #0f5132;
}

.pl-alert--danger {
  background: var(--pl-danger-bg);
  border-color: rgba(220,53,69,0.2);
  border-left-color: var(--pl-danger);
  color: #842029;
}

.pl-alert--warning {
  background: var(--pl-warning-bg);
  border-color: rgba(245,158,11,0.2);
  border-left-color: var(--pl-warning);
  color: #664d03;
}

.pl-alert--info {
  background: var(--pl-info-bg);
  border-color: rgba(13,202,240,0.2);
  border-left-color: var(--pl-info);
  color: #055160;
}

.pl-alert__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.pl-alert__body {
  flex: 1;
  min-width: 0;
}

.pl-alert__dismiss {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.1rem;
  transition: opacity var(--pl-transition);
}

.pl-alert__dismiss:hover {
  opacity: 1;
}

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

.pl-alert--danger {
  animation: pl-alert-in 0.3s ease, pl-shake 0.4s 0.3s ease;
}

@keyframes pl-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(2px); }
}

/* ── Buttons Enhanced ────────────────────────────────────── */
.btn {
  border-radius: var(--pl-radius-sm);
  font-weight: 500;
  transition: all var(--pl-transition);
  position: relative;
}

.btn-primary {
  background: var(--pl-gradient);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--pl-gradient);
  border-color: transparent;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(25,103,210,0.3);
}

.btn-primary:active {
  transform: translateY(0);
  opacity: 1;
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
}

/* Loading state for buttons */
.btn--loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn--loading .btn__text {
  visibility: hidden;
}

.btn--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pl-spin 0.6s linear infinite;
}

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

/* ── Topup ───────────────────────────────────────────────── */
.balance-card {
  background: linear-gradient(135deg, #1967D2 0%, #4285f4 100%);
  color: #fff;
  border-radius: var(--pl-radius-xl);
  padding: 1.75rem;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pl-shadow-xl);
}

.balance-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.balance-card::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.balance-card__label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.balance-card__amount {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
  line-height: 1.2;
  word-break: break-all;
}

.balance-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voucher-form-card {
  border-radius: var(--pl-radius-md);
  border: 1.5px solid var(--pl-border);
  padding: 1.5rem;
  transition: border-color var(--pl-transition);
}

.voucher-form-card:focus-within {
  border-color: rgba(25,103,210,0.3);
}

.topup-history-list .list-group-item {
  font-size: 0.875rem;
  padding: 0.85rem 1rem;
  transition: background var(--pl-transition);
  border-left: 3px solid transparent;
}

.topup-history-list .list-group-item:hover {
  background: var(--pl-bg-muted);
  border-left-color: var(--pl-success);
}

.topup-amount {
  font-weight: 600;
  color: var(--pl-success);
}

/* Topup amount in table */
.pl-topup-amount {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--pl-success);
}

/* Alternating row colors for topup history */
.pl-dash-table tbody tr:nth-child(even) td {
  background: var(--pl-surface-alt);
}
.pl-dash-table tbody tr:nth-child(even):hover td {
  background: #f0f4ff;
}

/* Topup voucher input */
.pl-topup-input {
  font-family: 'Courier New', Consolas, monospace;
  letter-spacing: 0.5px;
  font-size: 1rem !important;
}

/* Topup info sidebar */
.pl-topup-info {
  background: var(--pl-bg-muted);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md);
  padding: 1rem;
  margin-bottom: 0.875rem;
}

.pl-topup-info__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: #495057;
  line-height: 1.5;
}

.pl-topup-info__row + .pl-topup-info__row { border-top: 1px solid #e9ecef; }
.pl-topup-info__row > i { color: var(--bs-primary); margin-top: 0.15rem; flex-shrink: 0; width: 16px; text-align: center; }
.pl-topup-info__row strong { color: #1d2327; }

/* Topup support */
.pl-topup-support {
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md);
  padding: 1rem;
}

.pl-topup-support__row {
  font-size: 0.8125rem;
  color: #495057;
  padding: 0.25rem 0;
}

.pl-topup-support__row i { width: 18px; text-align: center; margin-right: 0.375rem; }
.pl-topup-support__row strong { color: #1d2327; }

/* Topup steps */
.pl-topup-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.pl-topup-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--pl-text-muted);
  background: var(--pl-bg-muted);
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
}

.pl-topup-step__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  padding: 4rem 0;
  text-align: center;
}

.cta-section__title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section__desc {
  font-size: 1.05rem;
  color: var(--pl-text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.home-cta-band__badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.8rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--pl-border);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.site-footer a {
  color: #495057;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--pl-transition);
}

.site-footer a:hover {
  color: var(--bs-primary);
}

.site-footer h6 {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-meta {
  border-top: 1px solid var(--pl-border);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--pl-text-muted);
}

/* ── Dashboard ───────────────────────────────────────────── */

/* Stats grid */
.pl-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.pl-dash-stat {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-left: 4px solid #dee2e6;
  border-radius: var(--pl-radius-lg);
  box-shadow: var(--pl-shadow-md);
  transition: box-shadow var(--pl-transition), transform var(--pl-transition);
}

.pl-dash-stat:hover {
  box-shadow: var(--pl-shadow-lg);
  transform: translateY(-2px);
}

.pl-dash-stat--highlight {
  background: var(--pl-gradient);
  border-color: transparent;
  border-left-color: transparent;
}

.pl-dash-stat--highlight .pl-dash-stat__label { color: rgba(255,255,255,0.75); }
.pl-dash-stat--highlight .pl-dash-stat__value { color: #fff; }
.pl-dash-stat--highlight .pl-dash-stat__icon { background: rgba(255,255,255,0.18); color: #fff; }

.pl-dash-stat__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(25,103,210,0.08);
  color: var(--bs-primary);
}

.pl-dash-stat__icon--total      { background: rgba(108,117,125,0.08); color: #495057; }
.pl-dash-stat__icon--processing { background: rgba(245,158,11,0.08); color: var(--pl-warning); }
.pl-dash-stat__icon--completed  { background: rgba(25,135,84,0.08); color: var(--pl-success); }

/* Colored left border accents per type */
.pl-dash-stat:not(.pl-dash-stat--highlight):nth-child(2) { border-left-color: #6c757d; }
.pl-dash-stat:not(.pl-dash-stat--highlight):nth-child(3) { border-left-color: var(--pl-warning); }
.pl-dash-stat:not(.pl-dash-stat--highlight):nth-child(4) { border-left-color: var(--pl-success); }

.pl-dash-stat__body { min-width: 0; flex: 1; }

.pl-dash-stat__label {
  font-size: 0.75rem;
  color: var(--pl-text-muted);
  margin-bottom: 0.125rem;
}

.pl-dash-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1d2327;
  line-height: 1.1;
}

.pl-dash-stat__cta {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--pl-transition);
}

.pl-dash-stat__cta:hover { background: rgba(255,255,255,0.38); color: #fff; }

/* Cards */
.pl-dash-card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-lg);
  overflow: hidden;
  box-shadow: var(--pl-shadow-md);
}

.pl-dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--pl-border);
  background: var(--pl-bg-muted);
}

.pl-dash-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1d2327;
}

.pl-dash-card__title i { color: var(--pl-text-muted); font-size: 0.875rem; }
.pl-dash-card__body { padding: 1.25rem; }

/* Orders table */
.pl-dash-table { width: 100%; border-collapse: collapse; }

.pl-dash-table thead th {
  padding: 0.625rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--pl-border);
  background: var(--pl-bg-muted);
}

.pl-dash-table tbody td {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f0f0f1;
  vertical-align: middle;
}

.pl-dash-table tbody tr:last-child td { border-bottom: none; }
.pl-dash-table tbody tr:hover td { background: #f8f9fa; }

.pl-dash-table__svc {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #1d2327;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pl-dash-table__meta {
  font-size: 0.75rem;
  color: var(--pl-text-muted);
  margin-top: 0.125rem;
}

/* Status badges */
.pl-dash-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--pl-radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pl-dash-badge--completed  { background: #d1e7dd; color: #0f5132; }
.pl-dash-badge--processing,
.pl-dash-badge--pending    { background: #fff3cd; color: #664d03; }
.pl-dash-badge--failed,
.pl-dash-badge--error      { background: #f8d7da; color: #842029; }
.pl-dash-badge--cancelled,
.pl-dash-badge--canceled   { background: #e9ecef; color: #495057; }
.pl-dash-badge--partial    { background: #cff4fc; color: #055160; }

/* Empty state */
.pl-dash-empty { text-align: center; padding: 3rem 1.5rem; }

.pl-dash-empty__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pl-bg-muted);
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
}

.pl-dash-empty__text { color: var(--pl-text-muted); font-size: 0.875rem; margin-bottom: 1rem; }

/* Account section */
.pl-dash-account {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.pl-dash-account__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--pl-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(25,103,210,0.35);
}

.pl-dash-account__name { font-weight: 600; font-size: 0.9375rem; }
.pl-dash-account__email { font-size: 0.8125rem; color: var(--pl-text-muted); }

/* Quick links */
/* Balance bar in sidebar */
.pl-dash-balance-bar {
  background: var(--pl-gradient);
  border-radius: var(--pl-radius-md);
  padding: .875rem 1rem;
  margin: 1rem 0;
  color: #fff;
}
.pl-dash-balance-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .25rem;
}
.pl-dash-balance-bar__label {
  font-size: .75rem;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.pl-dash-balance-bar__topup {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.18);
  border-radius: var(--pl-radius-pill);
  padding: .15rem .6rem;
  text-decoration: none;
  transition: background var(--pl-transition);
}
.pl-dash-balance-bar__topup:hover {
  background: rgba(255,255,255,.3);
  color: #fff;
}
.pl-dash-balance-bar__amount {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.pl-dash-quick { margin-bottom: 0.75rem; }

.pl-dash-quick__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d2327;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f1;
  border-radius: var(--pl-radius-sm);
  transition: color var(--pl-transition), background var(--pl-transition), padding-left var(--pl-transition);
}

.pl-dash-quick__link:last-child { border-bottom: none; }
.pl-dash-quick__link:hover { color: var(--bs-primary); background: var(--pl-primary-light); padding-left: 0.85rem; }
.pl-dash-quick__link i { width: 18px; text-align: center; color: var(--pl-text-muted); font-size: 0.8rem; transition: color var(--pl-transition); }
.pl-dash-quick__link:hover i { color: var(--bs-primary); }
.pl-dash-quick__link--muted { color: var(--pl-text-muted); }

/* Contact info */
.pl-dash-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pl-text-muted);
  margin-bottom: 0.625rem;
}

.pl-dash-contact__row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
}

.pl-dash-contact__label { color: var(--pl-text-muted); }
.pl-dash-contact__val { font-weight: 500; color: #1d2327; }

/* Order row toggle */
.pl-dash-row { cursor: pointer; transition: background var(--pl-transition); }
.pl-dash-row:hover td { background: #f8f9fa; }
.pl-dash-row--open td { background: #f0f4ff !important; }

.pl-dash-row td:first-child .pl-dash-table__svc::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  margin-right: 0.5rem;
  color: var(--pl-text-muted);
  transition: transform var(--pl-transition);
  display: inline-block;
}

.pl-dash-row--open td:first-child .pl-dash-table__svc::before {
  transform: rotate(90deg);
  color: var(--bs-primary);
}

/* Order detail panel */
.pl-dash-detail td { padding: 0 !important; border-bottom: 1px solid var(--pl-border) !important; }

.pl-dash-detail__inner {
  padding: 1rem 1.25rem 1.25rem;
  background: var(--pl-surface-alt);
  border-top: 2px solid rgba(25,103,210,0.15);
  border-left: 3px solid rgba(25,103,210,0.2);
}

.pl-dash-detail__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1d2327;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.pl-dash-detail__field {
  margin-bottom: 0.75rem;
}

.pl-dash-detail__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pl-text-muted);
  display: block;
  margin-bottom: 0.125rem;
}

.pl-dash-detail__label i {
  font-size: 0.65rem;
  margin-right: 0.25rem;
}

.pl-dash-detail__link {
  font-size: 0.8125rem;
  color: var(--bs-primary);
  word-break: break-all;
}

.pl-dash-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.pl-dash-detail__cell {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.pl-dash-detail__val {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d2327;
}

/* Progress / Delivery section */
.pl-dash-prog {
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}

.pl-dash-prog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pl-dash-prog__pct {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.pl-dash-prog--ok .pl-dash-prog__pct { color: var(--pl-success); }
.pl-dash-prog--fail .pl-dash-prog__pct { color: var(--pl-danger); }

.pl-dash-prog__bar {
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.pl-dash-prog__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--bs-primary);
  transition: width 0.4s ease;
}

.pl-dash-prog--ok .pl-dash-prog__fill { background: var(--pl-success); }
.pl-dash-prog--fail .pl-dash-prog__fill { background: var(--pl-danger); }
.pl-dash-prog--await .pl-dash-prog__pct { color: var(--pl-warning); }
.pl-dash-prog--await .pl-dash-prog__fill { background: var(--pl-warning); }

.pl-dash-prog__summary {
  font-size: 0.8125rem;
  color: var(--pl-text-muted);
}

.pl-dash-prog__summary strong { color: #1d2327; }

/* Order status badges */
.badge {
  font-weight: 500;
  font-size: 0.72rem;
  padding: 0.35em 0.65em;
  border-radius: var(--pl-radius-pill);
}

/* ── Platform page ───────────────────────────────────────── */
.order-form-card {
  border-radius: var(--pl-radius-md);
  border: 1.5px solid var(--pl-border);
  transition: border-color var(--pl-transition), box-shadow var(--pl-transition);
  box-shadow: var(--pl-shadow-sm);
}

.order-form-card:focus-within {
  border-color: rgba(25,103,210,0.3);
  box-shadow: 0 0 0 4px rgba(25,103,210,0.06);
}

/* Selected service summary in order form */
.pl-selected-service {
  background: linear-gradient(135deg, rgba(25,103,210,0.04) 0%, rgba(25,103,210,0.08) 100%);
  border-radius: var(--pl-radius-sm);
  padding: 0.85rem;
  border: 1px solid rgba(25,103,210,0.12);
  position: relative;
}

.pl-selected-service::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--bs-primary);
  border-radius: 3px 0 0 3px;
}

/* Step labels in order form */
.pl-form-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.pl-form-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pl-form-step__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #212529;
}

/* Price box */
.pl-price-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: var(--pl-radius-sm);
  padding: 0.75rem 1rem;
  border: 1px solid #bbf7d0;
}

.pl-price-box__label {
  font-size: 0.78rem;
  color: #166534;
  font-weight: 500;
}

.pl-price-box__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #166534;
  letter-spacing: -0.02em;
}

/* Insufficient credit warning */
.pl-price-box--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.pl-price-box--warning .pl-price-box__label,
.pl-price-box--warning .pl-price-box__value {
  color: #92400e;
}

/* Balance indicator in form */
.pl-balance-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.78rem;
  color: var(--pl-text-muted);
  border-top: 1px dashed var(--pl-border);
}

.pl-balance-inline__amount {
  font-weight: 600;
  color: #212529;
}

/* Category group headers */
.pl-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--pl-bg-muted);
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--pl-transition);
}

.pl-cat-header:hover {
  background: #eef1f5;
}

.pl-cat-header__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #374151;
}

.pl-cat-header__count {
  font-size: 0.72rem;
  color: var(--pl-text-muted);
  font-weight: 400;
}

.pl-cat-header__chevron {
  font-size: 0.7rem;
  color: var(--pl-text-muted);
  transition: transform var(--pl-transition);
}

.pl-cat-group--collapsed .pl-cat-header__chevron {
  transform: rotate(-90deg);
}

.pl-cat-group--collapsed .pl-cat-group__items {
  display: none;
}

/* Service row — replaces table rows with clickable cards */
.pl-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--pl-transition), padding-left var(--pl-transition);
  position: relative;
}

.pl-service-row:hover {
  background: rgba(25,103,210,0.03);
  color: inherit;
  text-decoration: none;
}

.pl-service-row--active {
  background: rgba(25,103,210,0.06);
  border-left: 3px solid var(--bs-primary);
  padding-left: calc(0.85rem - 3px);
}

.pl-service-row--active .pl-service-row__name {
  color: var(--bs-primary);
}

.pl-service-row__body {
  min-width: 0;
  flex: 1;
}

.pl-service-row__name {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: #212529;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pl-service-row__meta {
  font-size: 0.7rem;
  color: var(--pl-text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pl-service-row__meta i {
  font-size: 0.6rem;
}

.pl-service-row__price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bs-primary);
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(25,103,210,0.06);
  padding: 0.25rem 0.55rem;
  border-radius: var(--pl-radius-sm);
}

.pl-service-row--active .pl-service-row__price {
  background: rgba(25,103,210,0.12);
}

/* Category group border */
.pl-cat-group {
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-sm);
  overflow: hidden;
}

.pl-cat-group .pl-service-row:last-child {
  border-bottom: none;
}

/* Catalog max-height scroll */
.pl-catalog-scroll {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.pl-catalog-scroll::-webkit-scrollbar {
  width: 5px;
}

.pl-catalog-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.pl-catalog-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Submit button enhancement */
.pl-submit-btn {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: var(--pl-radius-sm);
  transition: transform var(--pl-transition), box-shadow var(--pl-transition);
}

.pl-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25,103,210,0.3);
}

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

/* Offset sticky header when scrolling to order form */
#order-form {
  scroll-margin-top: 5.5rem;
}

/* Mobile order form slide-up */
@media (max-width: 991.98px) {
  .order-form-card.sticky-top {
    position: static !important;
  }

  /* Visual separator so form stands out when stacked below catalog */
  .order-form-card {
    border-top: 3px solid var(--bs-primary);
  }
}

/* Legacy catalog table (other pages) */
.catalog-table th {
  background: var(--pl-bg-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.catalog-table tbody tr {
  transition: background var(--pl-transition);
}

.catalog-table tbody tr:hover {
  background: rgba(25,103,210,0.02);
}

/* ── Empty States ────────────────────────────────────────── */
.pl-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.pl-empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pl-bg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--pl-text-muted);
  font-size: 1.5rem;
}

.pl-empty-state__title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.pl-empty-state__desc {
  font-size: 0.875rem;
  color: var(--pl-text-muted);
  max-width: 320px;
  margin: 0 auto 1rem;
}

/* ── Guest CTA card ──────────────────────────────────────── */
.pl-guest-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa, #f0f5ff);
  border-radius: var(--pl-radius-lg);
  border: 1px solid var(--pl-border);
}

.pl-guest-cta__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(25,103,210,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--bs-primary);
  font-size: 1.5rem;
}

/* ── 404 Page ─────────────────────────────────────────────── */
.pl-404 {
  position: relative;
}

.pl-404__shell {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: 32px;
  border: 1px solid rgba(25,103,210,0.12);
  background:
    radial-gradient(circle at 12% 12%, rgba(25,103,210,0.16) 0, rgba(25,103,210,0) 30%),
    radial-gradient(circle at 88% 18%, rgba(13,202,240,0.14) 0, rgba(13,202,240,0) 26%),
    linear-gradient(135deg, #eef4ff 0%, #ffffff 48%, #f5f9ff 100%);
  box-shadow: 0 32px 70px -54px rgba(25,103,210,0.45);
}

.pl-404__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.pl-404__shell::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -96px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(25,103,210,0.1);
  filter: blur(12px);
  pointer-events: none;
}

.pl-404__content,
.pl-404-panel {
  position: relative;
  z-index: 1;
}

.pl-404__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--pl-radius-pill);
  border: 1px solid rgba(25,103,210,0.12);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--pl-shadow-sm);
  color: var(--bs-primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pl-404__ghost {
  display: block;
  font-size: clamp(4.75rem, 18vw, 9rem);
  line-height: 0.8;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: rgba(25,103,210,0.14);
  margin-bottom: 0.5rem;
}

.pl-404__title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 700;
  color: #132238;
  max-width: 11ch;
  margin-bottom: 1rem;
}

.pl-404__lead {
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #526077;
  margin-bottom: 1.5rem;
}

.pl-404__path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--pl-radius-md);
  border: 1px solid rgba(25,103,210,0.12);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--pl-shadow-sm);
  margin-bottom: 1.5rem;
}

.pl-404__path-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5673a4;
}

.pl-404__path-value {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: var(--pl-radius-pill);
  background: rgba(25,103,210,0.08);
  color: #163a72;
  font-size: 0.84rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.pl-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pl-404__actions .btn {
  min-width: 190px;
}

.pl-404__hints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  max-width: 44rem;
}

.pl-404__hint {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--pl-radius-md);
  border: 1px solid rgba(25,103,210,0.1);
  background: rgba(255,255,255,0.76);
  box-shadow: var(--pl-shadow-sm);
  color: #394556;
  line-height: 1.6;
}

.pl-404__hint-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25,103,210,0.1);
  color: var(--bs-primary);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pl-404-panel {
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(25,103,210,0.12);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 24px 48px -36px rgba(15,23,42,0.38);
  backdrop-filter: blur(12px);
}

.pl-404-panel__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pl-404-panel__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1967D2 0%, #4b96ff 100%);
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 16px 28px -20px rgba(25,103,210,0.7);
}

.pl-404-panel__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b7db1;
}

.pl-404-panel__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: #132238;
}

.pl-404-shortcuts {
  display: grid;
  gap: 0.85rem;
}

.pl-404-shortcut {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(25,103,210,0.1);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 32px -30px rgba(15,23,42,0.6);
  transition: transform var(--pl-transition), box-shadow var(--pl-transition), border-color var(--pl-transition);
}

.pl-404-shortcut:hover {
  transform: translateX(4px);
  border-color: rgba(25,103,210,0.22);
  box-shadow: 0 24px 42px -30px rgba(25,103,210,0.28);
}

.pl-404-shortcut__icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25,103,210,0.08);
  color: var(--bs-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.pl-404-shortcut__body {
  min-width: 0;
  flex: 1;
}

.pl-404-shortcut__label {
  display: block;
  color: #1a2840;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.pl-404-shortcut__desc {
  display: block;
  color: var(--pl-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.pl-404-shortcut__arrow {
  color: #8aa9d8;
  flex-shrink: 0;
}

/* pl-fade-in moved to global improvements section below */

@media (max-width: 991.98px) {
  .pl-404__shell {
    border-radius: 26px;
  }

  .pl-404__title {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .pl-404__shell {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .pl-404__actions {
    flex-direction: column;
  }

  .pl-404__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .pl-404__path {
    align-items: flex-start;
  }

  .pl-404-panel {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .pl-404-shortcut {
    padding: 0.9rem;
  }
}

/* ── Utility Classes ─────────────────────────────────────── */
.pl-text-2xs { font-size: 0.65rem; }
.pl-text-xs  { font-size: 0.72rem; }
.pl-text-sm  { font-size: 0.8rem; }
.pl-text-md  { font-size: 0.85rem; }
.pl-text-base { font-size: 0.9rem; }
.pl-tracking-wide { letter-spacing: 0.05em; }
.pl-bg-light { background: var(--pl-bg-muted); }
.pl-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.pl-search-input {
  padding-left: 2.25rem;
  border-radius: var(--pl-radius-sm);
  border-color: var(--pl-border);
}

.min-w-0 { min-width: 0; }

.order-form-card.sticky-top { top: 5rem; }

/* ── Responsive Fine-tuning ──────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 3rem 0 2rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .step-arrow {
    display: none;
  }

  .section-section {
    padding: 2.5rem 0;
  }

  .navbar .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 2rem 0 1.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .stat-card__number {
    font-size: 1.5rem;
  }

  .auth-card {
    padding: 1.5rem;
    margin: 0 0.25rem;
  }

  .section-section {
    padding: 2rem 0;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .balance-card {
    padding: 1.25rem;
  }

  .balance-card__amount {
    font-size: 1.65rem;
  }

  .order-form-card {
    margin-bottom: 1rem;
  }

  .order-form-card.sticky-top {
    position: relative !important;
    top: auto !important;
  }

  .pl-service-row {
    padding: 0.65rem 0.75rem;
  }

  .pl-service-row__meta {
    font-size: 0.7rem;
  }

  .pl-price-box {
    padding: 0.6rem 0.75rem;
  }

  .pl-price-box__value {
    font-size: 1.1rem;
  }

  .pl-alert {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
  }

  .pl-selected-service {
    padding: 0.65rem;
  }

  .pl-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .pl-dash-stat { padding: 0.875rem 1rem; }
  .pl-dash-stat__value { font-size: 1.375rem; }

  .profile-identity-card .card-body {
    padding: 1.25rem;
  }

  .profile-meta-item {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .balance-card {
    padding: 1rem;
    border-radius: var(--pl-radius-md);
  }

  .balance-card__amount {
    font-size: 1.4rem;
  }

  .pl-cat-header {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  .pl-form-step__label {
    font-size: 0.78rem;
  }

  .pl-balance-inline {
    font-size: 0.72rem;
  }

  .home-cta-band {
    padding: 2.5rem 0;
  }
}

/* ── Navbar User Menu ────────────────────────────────────── */
.nav-user-menu {
  position: relative;
}

.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pl-bg-muted);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-pill);
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  cursor: pointer;
  transition: background var(--pl-transition), border-color var(--pl-transition), box-shadow var(--pl-transition);
  line-height: 1;
}

.nav-user-trigger:hover,
.nav-user-trigger[aria-expanded="true"] {
  background: #fff;
  border-color: var(--bs-primary);
  box-shadow: var(--pl-shadow-focus);
}

.nav-user-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--pl-border);
  transition: box-shadow var(--pl-transition);
}

.nav-user-trigger[aria-expanded="true"] .nav-user-avatar {
  box-shadow: 0 0 0 2px var(--bs-primary);
}

.nav-user-info {
  min-width: 0;
  gap: 0;
  line-height: 1.3;
}

.nav-user-balance-inline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bs-primary);
  letter-spacing: 0.01em;
}

.nav-user-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #212529;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-caret {
  color: var(--pl-text-muted);
  transition: transform var(--pl-transition);
  flex-shrink: 0;
  font-size: 0.7rem;
  display: inline-block;
}

.nav-user-trigger[aria-expanded="true"] .nav-user-caret {
  transform: rotate(180deg);
}

@keyframes pl-dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-user-dropdown {
  min-width: 230px;
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md);
  padding: 0;
  margin-top: 0.5rem !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  animation: pl-dropdown-in 0.15s ease;
}

.nav-user-dropdown__header {
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(25,103,210,0.06) 0%, rgba(25,103,210,0.02) 100%);
  border-bottom: 1px solid var(--pl-border);
}

.nav-user-dropdown__avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(25,103,210,0.25);
}

.nav-user-dropdown__meta {
  min-width: 0;
  flex: 1;
}

.nav-user-dropdown__display-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.nav-user-dropdown__balance {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bs-primary);
  background: rgba(25,103,210,0.1);
  border-radius: var(--pl-radius-pill);
  padding: 0.15rem 0.5rem;
  margin-top: 0.3rem;
  width: fit-content;
}

.nav-user-dropdown .dropdown-divider {
  margin: 0;
  border-color: var(--pl-border);
}

.nav-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: #212529;
  transition: background var(--pl-transition), color var(--pl-transition), border-left-color var(--pl-transition), padding-left var(--pl-transition);
  border-radius: 0;
  border-left: 2.5px solid transparent;
}

.nav-user-dropdown__item i,
.nav-user-dropdown__item svg {
  width: 1rem;
  text-align: center;
  color: var(--pl-text-muted);
  flex-shrink: 0;
  transition: color var(--pl-transition);
}

.nav-user-dropdown__item:hover {
  background: rgba(25,103,210,0.05);
  color: var(--bs-primary);
  border-left-color: var(--bs-primary);
  padding-left: 1.15rem;
}

.nav-user-dropdown__item:hover i,
.nav-user-dropdown__item:hover svg {
  color: var(--bs-primary);
}

.nav-user-dropdown__item--danger {
  color: var(--pl-danger);
}

.nav-user-dropdown__item--danger i,
.nav-user-dropdown__item--danger svg {
  color: var(--pl-danger);
}

.nav-user-dropdown__item--danger:hover {
  background: rgba(220,53,69,0.06);
  color: var(--pl-danger);
  border-left-color: var(--pl-danger);
}

.nav-user-dropdown__logout-wrap {
  padding: 0.6rem 0.85rem 0.75rem;
}

.nav-user-dropdown__logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--pl-danger);
  border: none;
  border-radius: var(--pl-radius-sm);
  text-decoration: none;
  transition: background var(--pl-transition), box-shadow var(--pl-transition), transform var(--pl-transition);
}

.nav-user-dropdown__logout-btn:hover {
  background: #b02a37;
  color: #fff;
  box-shadow: 0 3px 10px rgba(220,53,69,0.35);
  transform: translateY(-1px);
}

.nav-user-dropdown__logout-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Profile Page ────────────────────────────────────────── */
.profile-identity-card .card-body {
  padding: 2rem 1.5rem;
}

.profile-avatar {
  position: relative;
  width: 80px;
  height: 80px;
}

.profile-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--pl-border);
  transition: border-color var(--pl-transition);
}

.profile-avatar:hover img {
  border-color: var(--bs-primary);
}

.profile-avatar__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--bs-primary);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.profile-balance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(25,103,210,0.08);
  color: var(--bs-primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--pl-radius-pill);
}

.profile-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--pl-border);
}

.profile-meta-item:last-child,
.profile-meta-item.mb-0 {
  border-bottom: none;
}

.profile-meta-item__icon {
  width: 28px;
  height: 28px;
  background: var(--pl-bg-muted);
  border-radius: var(--pl-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pl-text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.profile-meta-item__label {
  font-size: 0.75rem;
  color: var(--pl-text-muted);
  margin-bottom: 1px;
}

.profile-meta-item__value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #212529;
}

.profile-section-icon {
  width: 30px;
  height: 30px;
  background: rgba(25,103,210,0.1);
  color: var(--bs-primary);
  border-radius: var(--pl-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-section-icon--security {
  background: rgba(220,53,69,0.1);
  color: var(--pl-danger);
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .site-banner,
  .btn { display: none !important; }
}

/* ── Section heading accent underline ───────────────────── */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--pl-gradient);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

/* ── Custom thin scrollbar (webkit) ─────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c9d2e0;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #c9d2e0 transparent;
}

/* ── Page content fade-in ────────────────────────────────── */
.pl-fade-in {
  animation: pl-page-in 0.45s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes pl-page-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile hero improvements ──────────────────────────── */
@media (max-width: 767.98px) {
  .home-hero .col-lg-6:first-child {
    text-align: center;
  }

  .home-hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__platforms {
    justify-content: center;
  }

  .home-hero__cta {
    justify-content: center;
  }
}

/* ── Service table mobile scroll hint ───────────────────── */
.home-svc-table-wrap {
  position: relative;
}

@media (max-width: 575.98px) {
  .home-svc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-svc-table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.85));
    pointer-events: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   HOME PAGE — Redesigned
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.home-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, #f8faff 0%, #e8f0fe 60%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 56V24C240 4 480 44 720 32S1200 8 1440 22V56H0z' fill='%23fff'/%3E%3C/svg%3E") center/cover no-repeat;
  pointer-events: none;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--pl-primary-light);
  color: var(--bs-primary);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1.1rem;
  border-radius: var(--pl-radius-pill);
  border: 1px solid rgba(25,103,210,0.2);
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 4px rgba(25,103,210,0.12);
}

.home-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: var(--pl-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero__sub {
  font-size: 1.05rem;
  color: var(--pl-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 520px;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

/* Platform pills in hero */
.home-hero__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.home-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .85rem;
  border-radius: var(--pl-radius-pill);
  border: 1.5px solid color-mix(in srgb, var(--pill-color) 30%, transparent);
  color: var(--pill-color);
  background: color-mix(in srgb, var(--pill-color) 7%, transparent);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--pl-transition);
}

.home-platform-pill:hover {
  background: color-mix(in srgb, var(--pill-color) 15%, transparent);
  border-color: var(--pill-color);
  color: var(--pill-color);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pill-color) 30%, transparent);
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .home-platform-pill {
    border-color: rgba(25,103,210,.3);
    color: var(--bs-primary);
    background: rgba(25,103,210,.07);
  }
  .home-platform-pill:hover {
    background: rgba(25,103,210,.14);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
  }
}

/* Stats card */
.home-stats-card {
  background: var(--pl-surface);
  border-radius: var(--pl-radius-xl);
  box-shadow: var(--pl-shadow-xl);
  border: 1px solid var(--pl-border);
  border-top: 3px solid var(--bs-primary);
  overflow: hidden;
}

.home-stats-card__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--pl-border);
  background: var(--pl-surface-alt);
}

.home-stats-card__body {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 0;
}

.home-stats-card__foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--pl-border);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.home-stat-item {
  flex: 1;
  text-align: center;
}

.home-stat-item__num {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.home-stat-item__lbl {
  font-size: .72rem;
  color: var(--pl-text-muted);
  margin-top: .25rem;
}

.home-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--pl-border);
  flex-shrink: 0;
}

.home-avatar {
  width: 36px;
  height: 36px;
  background: var(--bs-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

/* Catalog section */
.home-catalog {
  background: var(--pl-surface-alt);
}

/* Platform category tabs */
.home-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-bottom: .25rem;
}

.home-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: var(--pl-radius-pill);
  border: 1.5px solid var(--pl-border);
  background: #fff;
  color: #495057;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--pl-transition);
  white-space: nowrap;
}

.home-cat-tab:hover {
  border-color: color-mix(in srgb, var(--tab-color, #1967D2) 50%, transparent);
  color: var(--tab-color, var(--bs-primary));
  background: color-mix(in srgb, var(--tab-color, #1967D2) 6%, transparent);
}

.home-cat-tab.active {
  background: var(--pl-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(25,103,210,0.3);
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .home-cat-tab:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: rgba(25,103,210,.06);
  }
}

.home-cat-tab__emoji {
  font-size: 1rem;
  line-height: 1;
}

.home-cat-tab__icon {
  font-size: .85em;
  line-height: 1;
  flex-shrink: 0;
}

/* Search input */
.home-search-wrap {
  max-width: 420px;
}

.home-search-input {
  padding-left: 2.4rem;
  border-radius: var(--pl-radius-pill);
  transition: border-color var(--pl-transition), box-shadow var(--pl-transition);
}

.home-search-input:focus {
  border-color: var(--bs-primary);
  box-shadow: var(--pl-shadow-focus);
}

.home-search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pl-text-muted);
  pointer-events: none;
  z-index: 2;
}

/* Service table */
.home-svc-table-wrap {
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md);
  overflow: hidden;
}

.home-svc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.home-svc-table thead tr {
  background: var(--pl-surface-alt);
  border-bottom: 1px solid var(--pl-border);
}

.home-svc-table thead th {
  padding: .75rem 1rem;
  font-weight: 600;
  font-size: .78rem;
  color: var(--pl-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--pl-surface-alt);
}

.home-svc-table tbody tr {
  border-bottom: 1px solid var(--pl-border);
  transition: background var(--pl-transition), border-left-color var(--pl-transition);
  border-left: 3px solid transparent;
}

.home-svc-table tbody tr:last-child {
  border-bottom: none;
}

.home-svc-table tbody tr:hover {
  background: rgba(25,103,210,.04);
  border-left-color: var(--bs-primary);
}

.home-svc-table td {
  padding: .75rem 1rem;
  vertical-align: middle;
}

.home-svc-row__name {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.home-svc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .35rem;
}

.home-svc-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
  opacity: .85;
}

.home-svc-row__text {
  line-height: 1.4;
  color: #212529;
}

.home-svc-row__price {
  font-weight: 700;
  color: var(--bs-primary);
  white-space: nowrap;
}

.home-svc-btn {
  border-radius: var(--pl-radius-pill);
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--pl-transition-bounce);
  background: var(--pl-gradient);
  border: none;
}

.home-svc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25,103,210,.35);
  background: var(--pl-gradient);
  opacity: 0.92;
}

/* How it works */
.home-step-card {
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: box-shadow var(--pl-transition), transform var(--pl-transition);
  position: relative;
}

.home-step-card:hover {
  box-shadow: var(--pl-shadow-md);
  transform: translateY(-3px);
}

/* Connector line between step cards */
.col-md-4:not(:last-child) .home-step-card::after {
  content: '';
  position: absolute;
  top: 2.75rem;
  right: -1.5rem;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--pl-border) 0%, rgba(25,103,210,.25) 100%);
  pointer-events: none;
}
@media (max-width: 767.98px) {
  .col-md-4:not(:last-child) .home-step-card::after { display: none; }
}

.home-step-num {
  width: 60px;
  height: 60px;
  background: var(--pl-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 18px rgba(25,103,210,.28);
  position: relative;
}

.home-step-num__n {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #fff;
  color: var(--bs-primary);
  border: 1.5px solid var(--bs-primary);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.home-step-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .5rem;
}

.home-step-desc {
  font-size: .85rem;
  color: var(--pl-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Feature cards */
.home-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md);
  height: 100%;
  transition: box-shadow var(--pl-transition), transform var(--pl-transition);
}

.home-feature-card:hover {
  box-shadow: var(--pl-shadow-md);
  transform: translateY(-2px);
}

.home-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--pl-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.home-feature-icon--0 { background: rgba(25,103,210,.09); color: var(--bs-primary); }
.home-feature-icon--1 { background: rgba(22,163,74,.09);  color: #16a34a; }
.home-feature-icon--2 { background: rgba(245,158,11,.09); color: var(--pl-warning); }
.home-feature-icon--3 { background: rgba(99,102,241,.09); color: #6366f1; }
.home-feature-icon--4 { background: rgba(239,68,68,.09);  color: #ef4444; }
.home-feature-icon--5 { background: rgba(20,184,166,.09); color: #14b8a6; }

.home-feature-title {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .35rem;
}

.home-feature-desc {
  font-size: .83rem;
  color: var(--pl-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* CTA band */
.home-cta-band {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #1967D2 0%, #1249a1 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-cta-band::before,
.home-cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.home-cta-band::before {
  width: 400px; height: 400px;
  background: rgba(255,255,255,.04);
  top: -120px; right: -80px;
}
.home-cta-band::after {
  width: 280px; height: 280px;
  background: rgba(255,255,255,.04);
  bottom: -100px; left: -60px;
}

.home-cta-band__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.home-cta-band__sub {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Catalog scroll — contain overscroll on desktop */
.pl-catalog-scroll {
  overscroll-behavior: contain;
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  /* Platform tabs: horizontal scroll instead of wrapping */
  .home-cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: -4px;
  }
  .home-cat-tabs::-webkit-scrollbar { display: none; }
  .home-cat-tab { flex-shrink: 0; }

  /* Search bar: full width on mobile */
  .home-search-wrap { max-width: 100%; }
}

@media (max-width: 575.98px) {
  .home-hero { padding: 3rem 0 2.5rem; }
  .home-hero__title { font-size: 1.85rem; }
  .home-hero__sub { font-size: 0.95rem; }
  .home-stats-card__body { flex-direction: column; gap: 1rem; }
  .home-stat-sep { width: 40px; height: 1px; }
  .home-cat-tab { font-size: .78rem; padding: .38rem .75rem; }
  .home-svc-table thead th,
  .home-svc-table td { padding: .65rem .75rem; }
}

/* Platform catalog scroll: disable max-height constraint on mobile */
@media (max-width: 991.98px) {
  .pl-catalog-scroll {
    max-height: none;
    overflow-y: visible;
  }
}

/* ═══════════════════════════════════════════════════════════
   Mobile Responsive Enhancements
   ═══════════════════════════════════════════════════════════ */

/* ── 1. iOS font-size zoom prevention ──────────────────────
   iOS Safari zooms the viewport when a focused input has
   font-size < 16px. Override to 1rem on mobile.             */
@media (max-width: 991.98px) {
  .form-control,
  .form-select {
    font-size: 1rem;
  }
}

/* ── 2. Mobile Navbar ───────────────────────────────────── */
@media (max-width: 991.98px) {
  /* Mobile menu panel — glass card that drops from the header */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1029;
    background: #fff;
    border-top: 1px solid var(--pl-border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    padding: 0.75rem 1rem 1rem;
    border-radius: 0 0 var(--pl-radius-lg) var(--pl-radius-lg);
    animation: mobileNavSlide 0.22s cubic-bezier(0.4,0,0.2,1);
  }

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

  /* Nav list — no extra padding */
  .navbar-collapse .navbar-nav {
    gap: 0;
    margin: 0 !important;
  }

  /* Each nav item gets a subtle bottom border */
  .navbar-collapse .nav-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .navbar-collapse .nav-item:last-child {
    border-bottom: none;
  }

  /* Bigger tap targets for nav links (~48px height) */
  .navbar .nav-link {
    padding: 0.85rem 0.75rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--pl-radius-sm);
  }

  .navbar .nav-link.active {
    font-weight: 600;
    background: rgba(25,103,210,0.06);
  }

  /* ── User / Auth section ── */
  .navbar-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    padding-top: 0.875rem;
    border-top: 2px solid var(--pl-border);
    margin-top: 0.5rem;
    width: 100%;
  }

  /* Full-width login / register buttons */
  .navbar-actions .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    text-align: center;
    justify-content: center;
    font-size: 0.9375rem;
    border-radius: var(--pl-radius-sm);
  }

  /* Full-width user trigger */
  .navbar-actions .nav-user-menu {
    width: 100%;
  }

  .navbar-actions .nav-user-trigger {
    width: 100%;
    border-radius: var(--pl-radius-sm);
    padding: 0.7rem 1rem;
    justify-content: space-between;
    background: var(--pl-bg-muted);
    border: 1.5px solid var(--pl-border);
  }

  .navbar-actions .nav-user-trigger[aria-expanded="true"] {
    border-color: var(--bs-primary);
    background: rgba(25,103,210,0.04);
  }

  /* Show username in mobile menu */
  .navbar-actions .nav-user-name {
    display: inline !important;
    max-width: none;
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* Dropdown full-width, no extra shadow (we're inside a panel) */
  .navbar-actions .nav-user-dropdown {
    width: 100%;
    box-shadow: none;
    border: 1.5px solid var(--pl-border);
    border-radius: var(--pl-radius-md);
    margin-top: 0.35rem !important;
  }

  /* Ensure header is positioned so the absolute collapse can anchor to it */
  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header .navbar {
    position: relative;
  }
}

/* ── 3. Touch Target Improvements ──────────────────────── */
/* Alert dismiss button: increase hit area to ~44px */
.pl-alert__dismiss {
  padding: 0.5rem 0.65rem;
}

/* Category tabs: minimum tap height */
.home-cat-tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

/* ── 4. Small Screen (≤ 575px) Improvements ────────────── */
@media (max-width: 575.98px) {
  /* Stack hero CTA buttons vertically, full-width */
  .hero-cta,
  .home-hero__cta {
    flex-direction: column;
  }

  .hero-cta .btn,
  .home-hero__cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* CTA band: tighter padding on small phones */
  .home-cta-band {
    padding: 3rem 1rem;
  }

  .home-cta-band__sub {
    font-size: 0.9375rem;
  }

  /* ── Topup page: mobile layout ── */
  .voucher-form-card {
    padding: 1.25rem;
  }

  .balance-card {
    padding: 1.25rem 1.5rem;
    border-radius: var(--pl-radius-md);
  }

  .balance-card__amount {
    font-size: 1.75rem;
  }

  /* History list: prevent overflow on narrow screens */
  .topup-history-list .list-group-item {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    align-items: flex-start;
  }

  .topup-history-list .list-group-item > div:first-child {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }

  .topup-history-list .list-group-item > div:first-child strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .topup-history-list .list-group-item > div.text-end {
    flex: 0 0 auto;
    text-align: right !important;
    white-space: nowrap;
  }

  /* Submit button full-width on small screens */
  .voucher-form-card .btn[type="submit"] {
    width: 100%;
    padding: 0.7rem;
  }

  /* Auth card: remove side margins, softer radius */
  .auth-card {
    margin: 0;
    border-radius: var(--pl-radius-md);
  }

  /* Service table: tighter on very small screens */
  .service-table thead th {
    font-size: 0.72rem;
    padding: 0.5rem;
  }

  .service-table tbody td {
    padding: 0.55rem 0.5rem;
    font-size: 0.8rem;
  }

  /* Footer meta: stack and centre on small phones */
  .footer-meta {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  /* Hero subtitle: slightly smaller on narrow screens */
  .hero-subtitle {
    font-size: 0.9375rem;
  }
}
