/* RaniTech Booking Premium UI v4.1
   Corrects class mismatches in the production bundle and upgrades public,
   customer, login, and admin surfaces without changing application logic. */

:root {
  --rt-navy-950: #07172c;
  --rt-navy-900: #0a2342;
  --rt-navy-800: #10345f;
  --rt-blue-700: #1258c5;
  --rt-blue-600: #1769e0;
  --rt-blue-500: #2e82f3;
  --rt-blue-100: #eaf3ff;
  --rt-blue-50: #f5f9ff;
  --rt-cyan-100: #e5f8ff;
  --rt-green-700: #087c55;
  --rt-green-100: #dcf8eb;
  --rt-red-700: #b42336;
  --rt-red-100: #ffe7ec;
  --rt-amber-700: #985900;
  --rt-amber-100: #fff0ce;
  --rt-slate-900: #132238;
  --rt-slate-700: #42536b;
  --rt-slate-600: #62738b;
  --rt-slate-500: #7f8da3;
  --rt-line: #dce6f2;
  --rt-line-soft: #e9eff6;
  --rt-surface: #ffffff;
  --rt-canvas: #f5f8fc;
  --rt-shadow-sm: 0 8px 24px rgba(18, 53, 94, 0.08);
  --rt-shadow-md: 0 18px 48px rgba(18, 53, 94, 0.12);
  --rt-shadow-lg: 0 30px 80px rgba(9, 41, 83, 0.18);
}

html { overflow-x: hidden; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--rt-canvas);
  color: var(--rt-slate-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, rgba(45, 129, 243, 0.08), transparent 24rem),
    #fff;
}

.public-page h1,
.public-page h2,
.public-page h3,
.public-page h4 {
  color: var(--rt-navy-950);
}

.public-page p,
.public-page span,
.public-page small,
.public-page label,
.public-page input,
.public-page select,
.public-page textarea,
.public-page button,
.public-page a {
  letter-spacing: normal;
}

.public-page input,
.public-page select,
.public-page textarea {
  min-height: 48px;
  border: 1px solid #d9e4f0;
  border-radius: 13px;
  background: #fff;
  color: var(--rt-slate-900);
  box-shadow: 0 1px 2px rgba(13, 39, 71, 0.02);
}

.public-page input::placeholder,
.public-page textarea::placeholder { color: #99a6b8; }

.public-page input:focus,
.public-page select:focus,
.public-page textarea:focus {
  border-color: #78aff2;
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.11);
}

.public-header {
  height: 78px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 230, 242, 0.9);
  box-shadow: 0 8px 30px rgba(25, 60, 103, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.public-brand img {
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #eef5ff);
  box-shadow: 0 7px 18px rgba(18, 88, 197, 0.14);
}

.public-brand strong {
  color: var(--rt-navy-900);
  letter-spacing: -0.02em;
}

.public-header nav a {
  position: relative;
  padding: 10px 0;
  color: #42536b;
}

.public-header nav a:not(.nav-login)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  border-radius: 99px;
  background: var(--rt-blue-600);
  transition: right 0.2s ease;
}

.public-header nav a:not(.nav-login):hover::after { right: 0; }

.header-contact {
  padding: 9px 12px;
  border: 1px solid #d7e7fa;
  border-radius: 12px;
  background: #f5f9ff;
  color: var(--rt-blue-700);
}

.nav-login {
  min-width: 84px;
  text-align: center;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--rt-blue-700), var(--rt-blue-500));
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.24);
}

.nav-login:hover { transform: translateY(-1px); }

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(59, 143, 246, 0.22), transparent 22rem),
    radial-gradient(circle at 10% 85%, rgba(44, 170, 246, 0.12), transparent 22rem),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 48%, #dbeeff 100%);
  border-bottom: 1px solid #dce9f8;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
}

.hero-section::before {
  width: 420px;
  height: 420px;
  left: -230px;
  top: -180px;
  border: 90px solid rgba(255, 255, 255, 0.72);
}

.hero-section::after {
  width: 220px;
  height: 220px;
  right: 8%;
  bottom: -165px;
  background: rgba(255, 255, 255, 0.65);
}

.hero-grid { min-height: 610px; }

.hero-pill {
  border-color: #d3e6fb;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rt-blue-700);
  box-shadow: 0 10px 28px rgba(23, 105, 224, 0.1);
}

.hero-copy h1 {
  max-width: 690px;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  color: var(--rt-navy-950);
}

.hero-copy h1 em {
  color: transparent;
  background: linear-gradient(110deg, #0f55c3, #2e87f5);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 650px;
  color: #52657e;
  font-size: 17px;
  line-height: 1.75;
}

.btn {
  border-radius: 13px;
  font-weight: 800;
}

.btn.primary {
  background: linear-gradient(135deg, #1258c5, #2f86f5);
  box-shadow: 0 12px 26px rgba(18, 88, 197, 0.25);
}

.btn.primary:hover { box-shadow: 0 15px 32px rgba(18, 88, 197, 0.31); }

.btn.white {
  border: 1px solid #d6e5f5;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rt-navy-900);
  box-shadow: 0 9px 24px rgba(18, 53, 94, 0.08);
}

.hero-trust { gap: 12px 20px; }
.hero-trust span {
  padding: 7px 0;
  color: #3f526b;
}
.hero-trust svg { color: #099569; }

.hero-visual { height: 470px; }
.court-art {
  border-radius: 38px;
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(145deg, #2589ef, #0b4faf 58%, #08377e);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 36px 80px rgba(8, 55, 126, 0.34);
}

.hero-floating-card {
  border: 1px solid rgba(218, 230, 244, 0.95);
  box-shadow: 0 20px 44px rgba(20, 58, 105, 0.17);
}

/* Feature strip. This class is emitted by the current production bundle. */
.feature-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -34px;
  padding: 16px;
  border: 1px solid #dfe8f3;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--rt-shadow-md);
  backdrop-filter: blur(14px);
}

.feature-strip article {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f8fbff);
  border: 1px solid transparent;
}

.feature-strip article:hover {
  border-color: #dce9f8;
  box-shadow: var(--rt-shadow-sm);
  transform: translateY(-2px);
}

.feature-strip article > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 13px;
  background: var(--rt-blue-100);
  color: var(--rt-blue-700);
}

.feature-strip article > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-strip b {
  display: block;
  color: var(--rt-navy-900);
  font-size: 13px;
  line-height: 1.25;
}

.feature-strip span {
  display: block;
  color: var(--rt-slate-600);
  font-size: 11px;
  line-height: 1.35;
}

.section-heading { position: relative; }
.section-heading > span,
.section-heading > div > span,
.eyebrow {
  color: var(--rt-blue-600);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  color: var(--rt-navy-950);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  color: var(--rt-slate-600);
  line-height: 1.65;
}

.booking-section { padding: 92px 0 86px; }
.booking-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid #dce6f2;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--rt-shadow-md);
}

.booking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1258c5, #2e82f3, #48bce8);
}

.announcement {
  padding: 13px 15px;
  border-color: #d2e6fb;
  border-radius: 14px;
  background: linear-gradient(120deg, #eff7ff, #f8fbff);
  color: #315b84;
}

.booking-grid { gap: 19px; }
.booking-card label { color: #34465e; }

.booking-summary {
  gap: 20px;
  padding: 22px;
  border: 1px solid #dce8f6;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff, #edf6ff);
}

.booking-summary strong {
  color: var(--rt-navy-950);
  font-size: 30px;
  letter-spacing: -0.03em;
}

/* Schedule block. Current bundle uses public-schedule-grid and slot-row. */
.schedule-section.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 84px;
  padding: 34px;
  border: 1px solid #dce7f3;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 130, 243, 0.10), transparent 18rem),
    linear-gradient(145deg, #f7fbff, #edf5ff);
  box-shadow: var(--rt-shadow-sm);
}

.schedule-section .section-heading { margin-bottom: 22px; }

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid #dce7f3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.schedule-toolbar input {
  width: 190px;
  min-width: 190px;
  min-height: 44px;
}

.schedule-toolbar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--rt-blue-100);
  color: var(--rt-blue-700);
  font-size: 12px;
  font-weight: 800;
}

.public-schedule-grid {
  display: grid;
  gap: 9px;
  max-height: 610px;
  overflow: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #bfd3ea transparent;
}

.slot-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid #e0e8f2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 53, 94, 0.035);
}

.slot-row:hover {
  border-color: #c9ddf4;
  box-shadow: 0 9px 23px rgba(18, 53, 94, 0.07);
}

.slot-row > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  background: var(--rt-navy-900);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.slot-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.slot-row > div > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.slot-row .available {
  border-color: #c9eddc;
  background: var(--rt-green-100);
  color: var(--rt-green-700);
}

.slot-row .available::before,
.slot-row .occupied::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}

.slot-row .occupied {
  border-color: #ffd0d8;
  background: var(--rt-red-100);
  color: var(--rt-red-700);
}

/* Court cards. Current bundle uses court-card-grid / court-card-visual. */
.courts-section {
  padding: 92px 0;
  background:
    linear-gradient(180deg, #fff, #f7faff 60%, #fff),
    #fff;
}

.court-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.court-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde7f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 53, 94, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.court-card:hover {
  transform: translateY(-6px);
  border-color: #c9dcf2;
  box-shadow: 0 25px 54px rgba(18, 53, 94, 0.16);
}

.court-card-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 12%, rgba(255,255,255,.24), transparent 14rem),
    linear-gradient(145deg, #1d79df, #0a4b9e 62%, #07316c);
}

.court-card:nth-child(2n) .court-card-visual {
  background:
    radial-gradient(circle at 75% 12%, rgba(255,255,255,.24), transparent 14rem),
    linear-gradient(145deg, #247fcf, #0d5d91 62%, #083a64);
}

.court-card:nth-child(3n) .court-card-visual {
  background:
    radial-gradient(circle at 75% 12%, rgba(255,255,255,.24), transparent 14rem),
    linear-gradient(145deg, #245cd2, #243f9b 62%, #172766);
}

.court-card-visual::before {
  content: "";
  position: absolute;
  inset: 22px 28px;
  z-index: -1;
  border: 2px solid rgba(255,255,255,.82);
  background:
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)) 0 50% / 100% 2px no-repeat;
  opacity: .72;
}

.court-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 23, 52, .38));
}

.court-card-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.court-card-visual > span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 26px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 45px;
  filter: drop-shadow(0 9px 12px rgba(0,0,0,.18));
  backdrop-filter: blur(10px);
}

.court-card-visual > small {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(5, 36, 78, .52);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  backdrop-filter: blur(10px);
}

.court-card > div:last-child {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
}

.court-card > div:last-child > span {
  display: block;
  margin-bottom: 6px;
  color: var(--rt-blue-600);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.court-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
  letter-spacing: -.02em;
}

.court-card p {
  margin-bottom: 14px;
  color: var(--rt-slate-600);
  font-size: 13px;
  line-height: 1.55;
}

.facility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.facility-list small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #f7faff;
  color: #4f6178;
  font-size: 10px;
  font-weight: 700;
}

.facility-list small::before {
  content: "✓";
  margin-right: 5px;
  color: #0a9064;
  font-weight: 900;
}

.court-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #e5edf5;
}

.court-price > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.court-price small { color: var(--rt-slate-500); }
.court-price b {
  color: var(--rt-navy-900);
  font-size: 18px;
  letter-spacing: -.02em;
}

.court-price > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  background: var(--rt-blue-100);
  color: var(--rt-blue-700);
  font-size: 12px;
  font-weight: 900;
}

.court-price > a:hover {
  background: var(--rt-blue-700);
  color: #fff;
}

/* Payment lookup and upload area. */
.lookup-section { padding: 92px 0; }
.lookup-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lookup-card,
.booking-status-card,
.payment-method-card,
.proof-card {
  border: 1px solid #dce6f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--rt-shadow-sm);
}

.lookup-card {
  grid-template-columns: 1fr;
  overflow: visible;
  padding: 26px;
}

.lookup-card form,
.proof-card {
  display: grid;
  gap: 16px;
}

.lookup-card form { padding: 0; }

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-detail-grid > div,
.success-details > div {
  padding: 14px;
  border: 1px solid #e1e9f3;
  border-radius: 13px;
  background: #f8fbff;
}

.booking-detail-grid small,
.success-details small {
  display: block;
  margin-bottom: 5px;
  color: var(--rt-slate-500);
}

.booking-detail-grid b { color: var(--rt-navy-900); }

.status-separation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.paid-box {
  padding: 16px;
  border: 1px solid #c9eddc;
  border-radius: 14px;
  background: var(--rt-green-100);
  color: var(--rt-green-700);
}

.payment-workflow {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.payment-method-card,
.proof-card { padding: 24px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-head h3 { margin: 0; }
.panel-head svg { color: var(--rt-blue-600); }

.bank-account {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid #dce7f3;
  border-radius: 14px;
  background: #f7faff;
}
.bank-account strong {
  color: var(--rt-navy-900);
  font-size: 20px;
  letter-spacing: .03em;
}
.bank-account span { color: var(--rt-slate-600); font-size: 12px; }

.qris-box {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d8e7f6;
  border-radius: 14px;
  background: #f6faff;
}
.qris-box > svg { color: var(--rt-blue-700); }
.qris-box > div { display: flex; flex-direction: column; gap: 3px; }
.qris-box img { width: 82px; border-radius: 10px; }

.payment-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--rt-blue-600);
  border-radius: 8px 12px 12px 8px;
  background: var(--rt-blue-50);
  color: var(--rt-slate-600);
  font-size: 12px;
  line-height: 1.55;
}

.file-upload {
  position: relative;
  min-height: 104px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  padding: 18px;
  border: 1.5px dashed #aac9eb;
  border-radius: 15px;
  background: #f7fbff;
  text-align: center;
  color: var(--rt-blue-700) !important;
  cursor: pointer;
}
.file-upload svg { width: 28px; height: 28px; }
.file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.booking-success {
  padding: 30px;
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: var(--rt-green-100);
  color: var(--rt-green-700);
}
.success-icon svg { width: 34px; height: 34px; }
.success-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
  text-align: left;
}

/* FAQ */
.faq-section { padding: 84px 0 96px; }
.faq-grid {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-grid details {
  overflow: hidden;
  border: 1px solid #dfe8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18,53,94,.05);
}
.faq-grid summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--rt-navy-900);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary svg { flex: 0 0 auto; color: var(--rt-blue-600); transition: transform .2s ease; }
.faq-grid details[open] summary svg { transform: rotate(180deg); }
.faq-grid details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--rt-slate-600);
  line-height: 1.7;
}

.wa-floating {
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: linear-gradient(135deg, #0b9b6d, #16b77f);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(10, 144, 100, .3);
}

.public-footer {
  background:
    radial-gradient(circle at 15% 10%, rgba(45,129,243,.13), transparent 20rem),
    var(--rt-navy-950);
}
.footer-brand img { width: 46px; height: 46px; }
.footer-grid a:hover { color: #fff; transform: translateX(2px); }

/* Shared premium surfaces for authenticated pages. */
.admin-shell,
.customer-shell,
.login-page { background: var(--rt-canvas); }

.panel,
.toolbar-card,
.metric-card,
.customer-card,
.customer-booking-card,
.welcome-panel,
.admin-court-card,
.settings-section {
  border-color: #dce6f2 !important;
  box-shadow: var(--rt-shadow-sm);
}

.panel,
.toolbar-card,
.customer-card,
.customer-booking-card,
.settings-section {
  border-radius: 18px;
}

.metric-card,
.customer-stat-grid > * {
  position: relative;
  overflow: hidden;
}

.metric-card::before,
.customer-stat-grid > *::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#1769e0, #4ab5ec);
}

.table-wrap {
  border-radius: 16px;
  border: 1px solid #e0e8f2;
  background: #fff;
}
.table-wrap table { border-collapse: separate; border-spacing: 0; }
.table-wrap thead th {
  background: #f5f9fe;
  color: #41536b;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.table-wrap tbody tr:hover { background: #f8fbff; }

.login-card {
  border: 1px solid #dce6f2;
  box-shadow: var(--rt-shadow-lg);
}

/* Responsive */
@media (max-width: 1100px) {
  .public-header { gap: 18px; }
  .public-header nav { gap: 16px; }
  .header-contact { display: none; }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .court-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 36px; }
}

@media (max-width: 860px) {
  .hero-grid { min-height: auto; padding: 66px 0 72px; grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy h1,
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions,
  .hero-trust { justify-content: center; }
  .hero-visual { width: min(620px, 100%); margin: 0 auto; }
  .feature-strip { margin-top: -28px; }
  .lookup-grid,
  .payment-grid { grid-template-columns: 1fr; }
  .success-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .public-header { height: 68px; padding-inline: 16px; }
  .public-brand img { width: 42px; height: 42px; }
  .public-header nav { display: none; }
  .public-menu { display: grid; margin-left: auto; place-items: center; width: 42px; height: 42px; border: 1px solid #dce6f2; border-radius: 12px; background: #fff; color: var(--rt-navy-900); }
  .feature-strip { width: min(100% - 24px, 1180px); padding: 10px; gap: 8px; border-radius: 18px; }
  .feature-strip article { grid-template-columns: 40px minmax(0,1fr); padding: 10px; }
  .feature-strip article > svg { width: 38px; height: 38px; padding: 9px; }
  .booking-section { padding: 72px 0 64px; }
  .schedule-section.section-shell { width: min(100% - 24px, 1180px); padding: 22px; border-radius: 22px; }
  .court-card-grid { grid-template-columns: 1fr; }
  .court-card > div:last-child { min-height: 0; }
  .slot-row { grid-template-columns: 64px minmax(0,1fr); gap: 9px; padding: 10px; }
  .slot-row > div > span { padding: 6px 8px; font-size: 10px; }
}

@media (max-width: 560px) {
  .hero-grid { width: min(100% - 24px, 1180px); padding-top: 50px; }
  .hero-copy h1 { font-size: clamp(35px, 10vw, 45px); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 330px; }
  .court-art { inset: 12px 4px 20px; border-radius: 26px; transform: none; }
  .hero-floating-card.top { right: -8px; top: 30px; }
  .hero-floating-card.bottom { left: -8px; bottom: 25px; }
  .feature-strip { grid-template-columns: 1fr; margin-top: -20px; }
  .feature-strip article { min-height: 64px; }
  .booking-card { padding: 18px; border-radius: 20px; }
  .schedule-section.section-shell { padding: 18px 14px; }
  .schedule-toolbar { flex-direction: column; align-items: stretch; }
  .schedule-toolbar input { width: 100%; min-width: 0; }
  .schedule-toolbar > span { justify-content: center; }
  .slot-row { grid-template-columns: 1fr; }
  .slot-row > b { width: 68px; }
  .slot-row > div { grid-column: 1; }
  .court-card-visual { height: 190px; }
  .lookup-card,
  .payment-method-card,
  .proof-card { padding: 18px; border-radius: 18px; }
  .booking-detail-grid,
  .success-details { grid-template-columns: 1fr; }
  .qris-box { grid-template-columns: 34px 1fr; }
  .qris-box img { grid-column: 1 / -1; justify-self: center; }
  .wa-floating span { display: none; }
  .wa-floating { width: 50px; padding: 0; justify-content: center; }
}


/* v4.2 authenticated customer booking flow */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-account .nav-login {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-logout {
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
  color: #6b3540;
  font-weight: 800;
}
.nav-logout:hover {
  border-color: #f2b6c0;
  background: #fff3f5;
}
.booking-account-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 14px 15px;
  border: 1px solid #cfe3fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef7ff, #f8fbff);
}
.booking-account-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1565d8;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.booking-account-notice > div:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.booking-account-notice b {
  color: #173d68;
}
.booking-account-notice span {
  overflow: hidden;
  color: #60748d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-account-notice a {
  color: #0d5eb9;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .nav-account {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .nav-account .nav-login,
  .nav-account .nav-logout {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 600px) {
  .booking-account-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .booking-account-notice > a {
    grid-column: 1 / -1;
    padding-left: 57px;
  }
}
.logged-account-card {
  align-items: flex-start;
  justify-content: center;
}
.logged-account-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}
.logged-account-card .btn {
  width: 100%;
  margin-top: 4px;
}
