:root {
  --law-gold: #ab946a;
  --law-black: #000000;
  --law-white: #ffffff;
  --law-cream: #f6f0e6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 108, 255, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(171, 148, 106, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.55), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #edf1ff 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 9999px;
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 8%;
  left: -4rem;
  width: 11rem;
  height: 11rem;
  background: rgba(124, 108, 255, 0.16);
}

body::after {
  right: -3rem;
  bottom: 12%;
  width: 12rem;
  height: 12rem;
  background: rgba(171, 148, 106, 0.13);
}

.gate-card,
.panel-card,
.hero-card,
.info-card,
.feature-box,
.practice-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

#appShell > header {
  background: rgba(255, 255, 255, 0.58) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

#sideDrawer {
  background: rgba(255, 255, 255, 0.62) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.dock-shell {
  background: rgba(255, 255, 255, 0.56) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

#accessGate {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#accessGate .gate-card {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14) !important;
}

#denyScreen > div {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.52) !important;
}

.panel-card {
  background: rgba(255, 255, 255, 0.48) !important;
}

.feature-box,
.practice-card,
.faq-item {
  background: rgba(255, 255, 255, 0.46) !important;
}

.info-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.62), rgba(31, 41, 55, 0.46)) !important;
}

.gate-card:hover,
.panel-card:hover,
.hero-card:hover,
.info-card:hover,
.feature-box:hover,
.practice-card:hover {
  transform: translateY(-1px);
}

.drawer-link {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.15rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 0.8rem 0.95rem;
  text-align: left;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.drawer-link span:first-child {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.drawer-link span:last-child {
  font-size: 0.75rem;
  color: #64748b;
}

.drawer-link:hover {
  background: rgba(124, 108, 255, 0.12);
  transform: translateY(-1px);
}

.social-chip {
  display: flex;
  min-height: 4.15rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.75rem 0.45rem;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.social-chip svg {
  width: 1.3rem;
  height: 1.3rem;
}

.social-chip span {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.social-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.social-facebook {
  color: #1877f2;
}

.social-facebook:hover {
  background: rgba(24, 119, 242, 0.08);
}

.social-instagram {
  color: #e1306c;
}

.social-instagram:hover {
  background: rgba(225, 48, 108, 0.08);
}

.social-youtube {
  color: #ff0000;
}

.social-youtube:hover {
  background: rgba(255, 0, 0, 0.08);
}

.attorney-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.attorney-carousel::-webkit-scrollbar {
  display: none;
}

.attorney-card {
  scroll-snap-align: start;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(248, 250, 252, 0.54) 100%);
  padding: 0.75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.attorney-photo {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 1.1rem;
  background: #e2e8f0;
}

.carousel-btn {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #111827;
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.carousel-btn:hover {
  transform: translateY(-1px);
  background: rgba(124, 108, 255, 0.16);
}

.faq-item {
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.75rem 0.9rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #111827;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

.field-label {
  display: grid;
  gap: 0.45rem;
}

.field-label span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
}

.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.field-label input::placeholder,
.field-label textarea::placeholder {
  color: #94a3b8;
}

.field-label input:focus,
.field-label select:focus,
.field-label textarea:focus {
  border-color: rgba(124, 108, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.12);
}

.field-label textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.pay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(124, 108, 255, 0.18);
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.12), rgba(171, 148, 106, 0.12));
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.pay-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.practice-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.practice-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.practice-civil {
  color: #5b6cff;
}

.practice-criminal {
  color: #ef4444;
}

.practice-service {
  color: #7c6cff;
}

.practice-family {
  color: #ec4899;
}

.practice-business {
  color: #0f766e;
}

.practice-drafting {
  color: #a16207;
}

.app-main {
  height: calc(100dvh - 5.35rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.app-main > section:first-child {
  margin-top: 0;
}

.loading-ring {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  border: 4px solid rgba(124, 108, 255, 0.18);
  border-top-color: var(--law-gold);
  animation: spin 1s linear infinite;
}

.loading-card {
  width: min(92vw, 28rem);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

#loadingScreen {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#loadingScreen .loading-card {
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14) !important;
}

.consent-copy {
  font-family: "Times New Roman", serif;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 3.6rem;
  border-radius: 1rem;
  padding: 0.4rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(71, 85, 105, 0.78);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-btn:hover {
  background: rgba(124, 108, 255, 0.14);
  color: #111827;
}

.nav-btn.active {
  background: rgba(124, 108, 255, 0.16);
  color: #111827;
  box-shadow: inset 0 0 0 1px rgba(124, 108, 255, 0.22);
}

.nav-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.nav-label {
  line-height: 1;
}

.dock-shell {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.2rem);
}

.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  transform: translateY(-0.9rem);
  color: #111827;
}

.nav-center-inner {
  display: grid;
  place-items: center;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(167, 155, 255, 0.88), rgba(124, 108, 255, 0.96));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(124, 108, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-center-inner svg {
  width: 1.3rem;
  height: 1.3rem;
}

.nav-center-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #111827;
}

.nav-center.active .nav-center-inner {
  transform: scale(1.03);
  box-shadow: 0 14px 30px rgba(124, 108, 255, 0.42);
}

.app-section {
  animation: fadeUp 320ms ease both;
  margin-top: 0.75rem !important;
}

.hero-card,
.panel-card {
  margin-bottom: 0.2rem;
  background-clip: padding-box;
}

.hero-card,
.panel-card {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1) !important;
}

.hero-card > div {
  gap: 1rem !important;
}

.panel-card {
  padding: 1rem !important;
}

.info-card,
.practice-card,
.faq-item {
  padding: 0.8rem !important;
}

.attorney-card {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .app-main {
    height: calc(100dvh - 5.05rem);
  }

  .nav-btn {
    font-size: 0.62rem;
  }

  .nav-center {
    transform: translateY(-0.82rem);
  }

  .nav-center-inner {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 1rem;
  }

  .attorney-carousel {
    grid-auto-columns: minmax(210px, 82vw);
  }

  .hero-card > div {
    gap: 0.85rem !important;
  }
}
