body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(1200px 400px at 0% -5%, rgba(52, 124, 255, 0.14), transparent 60%),
    radial-gradient(900px 300px at 100% -10%, rgba(66, 214, 255, 0.12), transparent 65%),
    #f6f8fb;
}

.card {
  border-radius: 0.9rem;
  border: 1px solid #e8edf8;
}

.table td,
.table th {
  vertical-align: middle;
}

.app-nav {
  background: linear-gradient(90deg, #0d2f74 0%, #1a49a0 55%, #2672ff 100%);
  box-shadow: 0 8px 30px rgba(10, 37, 88, 0.24);
}

.navbar-brand span {
  letter-spacing: 0.2px;
}

/* Account-selected color systems keep Bookful Blue as the unmodified default. */
.theme-red {
  background:
    radial-gradient(1000px 350px at 0% -5%, rgba(255, 96, 104, 0.15), transparent 60%),
    radial-gradient(800px 300px at 100% -10%, rgba(255, 174, 84, 0.16), transparent 65%),
    #fff8f6;
}

.theme-red .app-nav,
.theme-option-red .theme-option-preview {
  background: linear-gradient(105deg, #74172a 0%, #b72946 55%, #f05f56 100%);
}

.theme-red .btn-primary,
.theme-red .dashboard-kicker,
.theme-red .guide-step {
  background-color: #bc2947;
  border-color: #bc2947;
  color: #fff;
}

.theme-red .dashboard-hero,
.theme-red .search-hero,
.theme-red .guide-hero {
  background: radial-gradient(circle at 92% 5%, rgba(255, 199, 130, 0.32), transparent 18rem), linear-gradient(135deg, #75182d, #bf2947 68%, #ef695b);
}

.theme-red .btn-checkout {
  background: linear-gradient(135deg, #ff9a6c, #c72d49);
  box-shadow: 0 4px 15px rgba(191, 41, 71, 0.28);
}

.theme-manatees {
  background:
    radial-gradient(1000px 350px at 0% -5%, rgba(64, 205, 194, 0.2), transparent 60%),
    radial-gradient(800px 300px at 100% -10%, rgba(146, 229, 204, 0.24), transparent 65%),
    #f4fbf8;
}

.theme-manatees .app-nav,
.theme-option-manatees .theme-option-preview {
  background: linear-gradient(100deg, #075d6a 0%, #0e8a8c 55%, #39bda9 100%);
}

.theme-manatees .app-nav {
  isolation: isolate;
  overflow: visible;
  position: relative;
  z-index: 20;
}

.manatee-pod { inset: 0; overflow: hidden; pointer-events: none; position: absolute; z-index: 0; }
.theme-manatees .app-nav > .container { position: relative; z-index: 1; }
.manatee-swimmer { animation: manatee-swim 9s ease-in-out infinite; height: 4.1rem; object-fit: contain; opacity: 0.44; position: absolute; top: 0.08rem; transform-origin: center; width: 8.2rem; }
.swimmer-left { animation-delay: -2.2s; left: 3%; }
.swimmer-center { animation-delay: -6.1s; animation-duration: 11s; left: 45%; top: 0.55rem; width: 6rem; }
.swimmer-right { animation-delay: -4.4s; animation-duration: 8s; right: 4%; top: -0.32rem; width: 7.1rem; }

.theme-manatees .dashboard-hero,
.theme-manatees .search-hero,
.theme-manatees .guide-hero {
  background: radial-gradient(circle at 92% 5%, rgba(184, 255, 222, 0.34), transparent 18rem), linear-gradient(135deg, #05636c, #108f8e 66%, #4ac5a7);
}

.theme-manatees .btn-primary {
  background: #098587;
  border-color: #098587;
}

.theme-manatees .btn-checkout {
  background: linear-gradient(135deg, #55cdb3, #098587);
  box-shadow: 0 4px 15px rgba(9, 133, 135, 0.28);
}

.theme-manatees main {
  background-image:
    radial-gradient(circle at 7% 20%, rgba(32, 159, 157, 0.11) 0 0.16rem, transparent 0.2rem),
    radial-gradient(circle at 94% 40%, rgba(32, 159, 157, 0.1) 0 0.22rem, transparent 0.27rem),
    radial-gradient(circle at 20% 88%, rgba(32, 159, 157, 0.08) 0 0.12rem, transparent 0.17rem);
}

.theme-manatees .card,
.theme-manatees .dashboard-stat,
.theme-manatees .guide-card {
  border-color: #bfe8dc;
  box-shadow: 0 10px 24px rgba(8, 112, 110, 0.09);
}

.theme-manatees .dashboard-hero,
.theme-manatees .search-hero,
.theme-manatees .guide-hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.theme-manatees .dashboard-hero::after,
.theme-manatees .search-hero::after,
.theme-manatees .guide-hero::after {
  background: linear-gradient(90deg, rgba(5, 99, 108, 0.1) 0%, rgba(5, 99, 108, 0.42) 100%), url("../images/manatee-underwater.jpg") center 48% / cover no-repeat;
  content: "";
  inset: 0;
  opacity: 0.48;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.theme-manatees .dashboard-hero::before,
.theme-manatees .search-hero::before,
.theme-manatees .guide-hero::before {
  background: linear-gradient(115deg, transparent 0 34%, rgba(218, 255, 249, 0.2) 35% 39%, transparent 40% 58%, rgba(218, 255, 249, 0.12) 59% 63%, transparent 64%), radial-gradient(circle, rgba(225, 255, 247, 0.7) 0 0.2rem, transparent 0.25rem) 65% 30% / 2.6rem 2.6rem;
  content: "";
  inset: 0;
  opacity: 0.36;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.theme-manatees .dashboard-hero > *,
.theme-manatees .search-hero > *,
.theme-manatees .guide-hero > * {
  position: relative;
  z-index: 1;
}

@keyframes manatee-swim {
  0%, 100% { transform: translate3d(-0.6rem, 0.08rem, 0) rotate(-2deg); }
  30% { transform: translate3d(0.4rem, -0.22rem, 0) rotate(2deg); }
  65% { transform: translate3d(0.85rem, 0.18rem, 0) rotate(-1deg); }
}

.themes-hero {
  border-radius: 1.2rem;
  background: radial-gradient(circle at 88% 20%, rgba(159, 237, 255, 0.5), transparent 17rem), linear-gradient(135deg, #102c65, #246be0);
  color: #fff;
  padding: clamp(1.6rem, 4vw, 2.5rem);
}

.themes-kicker {
  color: #9cefff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.themes-hero h1 { font-weight: 800; margin-bottom: 0.45rem; }
.themes-hero p:last-child { color: rgba(255, 255, 255, 0.86); margin: 0; }

.theme-option {
  background: #fff;
  border: 1px solid #dce7f5;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(20, 61, 120, 0.08);
  height: 100%;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.theme-option:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(20, 61, 120, 0.14); }
.theme-option.is-selected { border: 3px solid #246be0; }
.theme-option-preview {
  align-items: center;
  background: linear-gradient(100deg, #0d2f74, #2672ff);
  color: #fff;
  display: flex;
  gap: 0.35rem;
  height: 8.75rem;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
}

.theme-option-preview span { font-size: 1.25rem; font-weight: 800; margin-right: auto; position: relative; z-index: 1; }
.theme-option-preview i { background: rgba(255, 255, 255, 0.23); border-radius: 999px; height: 0.6rem; width: 1.8rem; }
.theme-option-manatees .theme-option-preview::after { background: linear-gradient(90deg, rgba(7, 93, 106, 0.1), rgba(7, 93, 106, 0.45)), url("../images/manatee-underwater.jpg") center / cover; content: ""; inset: 0; opacity: 0.82; position: absolute; }
.theme-option-red.is-selected { border-color: #c72d49; }
.theme-option-manatees.is-selected { border-color: #098587; }

@media (prefers-reduced-motion: reduce) { .manatee-swimmer { animation: none; } }

.app-nav .navbar-brand {
  margin-right: 1.75rem;
}

.app-primary-nav {
  gap: 0.2rem;
}

.app-nav .nav-link {
  border-radius: 0.55rem;
  padding-left: 0.72rem !important;
  padding-right: 0.72rem !important;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus,
.app-nav .nav-link.show {
  background: rgba(255, 255, 255, 0.12);
}

.app-nav .dropdown-menu {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 14px 36px rgba(10, 37, 88, 0.2);
  padding: 0.5rem;
}

.app-nav .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
}

.nav-account {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.6rem;
  font-weight: 600;
}

.nav-account:hover,
.nav-account:focus,
.nav-account.show {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

.broadcast-preview-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem;
  background: #eef4ff;
  border-top: 5px solid #1b66ff;
}

.broadcast-preview-header small {
  color: #315d9f;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.broadcast-preview-message {
  min-height: 7rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.verification-code-input {
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-align: center;
}

.verification-page {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(circle at 15% 10%, rgba(88, 213, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 88%, rgba(63, 111, 255, 0.22), transparent 30rem),
    linear-gradient(145deg, #07162f 0%, #0e2f72 48%, #1559bf 100%);
}

.verification-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

.verification-panel {
  width: min(100%, 470px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(0, 12, 40, 0.38);
  padding: clamp(1.5rem, 5vw, 2.35rem);
  backdrop-filter: blur(14px);
}

.verification-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.7rem;
  color: #0d2f74;
  font-size: 1.45rem;
  font-weight: 800;
}

.verification-brand img {
  border-radius: 0.85rem;
  box-shadow: 0 10px 24px rgba(13, 47, 116, 0.24);
}

.verification-copy {
  text-align: center;
  margin-bottom: 1.5rem;
}

.verification-kicker {
  color: #1b66ff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.verification-copy h1 {
  color: #102d64;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 800;
  margin: 0.45rem 0 0.55rem;
}

.verification-copy p {
  color: #60708c;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.verification-help {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.25rem;
  border-radius: 0.8rem;
  background: #fff7e8;
  color: #73531c;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.verification-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-top: 1px solid #e6ecf6;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  font-size: 0.88rem;
}

.verification-footer a,
.verification-footer .btn-link {
  color: #1a57bd;
  text-decoration: none;
  font-size: inherit;
}

.verification-footer a:hover,
.verification-footer .btn-link:hover {
  text-decoration: underline;
}

.verification-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.verification-glow-one {
  width: 15rem;
  height: 15rem;
  left: -5rem;
  top: 10%;
  background: rgba(101, 232, 255, 0.16);
}

.verification-glow-two {
  width: 20rem;
  height: 20rem;
  right: -7rem;
  bottom: 4%;
  background: rgba(86, 127, 255, 0.2);
}

.btn-primary {
  background: #1b66ff;
  border-color: #1b66ff;
}

.btn-primary:hover {
  background: #1559e6;
  border-color: #1559e6;
}

.btn-checkout {
  background: linear-gradient(135deg, #58d5ff 0%, #1b66ff 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(27, 102, 255, 0.3);
  display: inline-block;
  font-size: 0.95rem;
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #42c5ff 0%, #1559e6 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(27, 102, 255, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  padding: 3rem 2rem;
  background:
    linear-gradient(140deg, #092252 0%, #15439c 55%, #2c7cff 100%);
  color: #fff;
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.landing-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #90e7ff;
}

.landing-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

.landing-subtitle {
  max-width: 44ch;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.landing-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-landing-primary {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #0f3b8f;
  font-weight: 700;
}

.btn-landing-primary:hover {
  background: #eaf2ff;
  border-color: #eaf2ff;
  color: #0d327a;
}

.btn-landing-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-weight: 700;
}

.btn-landing-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.landing-panel {
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.landing-panel h2 {
  color: #12397f;
}

.landing-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.landing-feature-list li {
  border: 1px solid #d8e7ff;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.2rem;
  background: #fff;
}

.landing-feature-list strong {
  color: #12397f;
}

.landing-feature-list span {
  color: #4a5f85;
  font-size: 0.95rem;
}

.landing-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.landing-strip-item {
  border-radius: 0.85rem;
  border: 1px solid #dae8ff;
  background: #fff;
  padding: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.landing-strip-item p {
  margin: 0;
  color: #244274;
  font-weight: 600;
}

.landing-strip-number {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #2a75ff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.landing-orb-1 {
  width: 280px;
  height: 280px;
  right: -80px;
  top: -65px;
  background: radial-gradient(circle, rgba(103, 233, 255, 0.55), rgba(103, 233, 255, 0));
}

.landing-orb-2 {
  width: 240px;
  height: 240px;
  left: -70px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(96, 148, 255, 0.5), rgba(96, 148, 255, 0));
}

@media (max-width: 991.98px) {
  .app-nav .navbar-brand {
    margin-right: 0;
  }

  .nav-actions {
    align-items: stretch !important;
    flex-direction: column;
    margin-top: 0.75rem;
  }

  .nav-actions .btn,
  .nav-actions .dropdown,
  .nav-actions .dropdown-toggle {
    width: 100%;
  }

  .landing-hero {
    padding: 2rem 1.2rem;
  }

  .landing-hero-inner {
    grid-template-columns: 1fr;
  }

  .landing-subtitle {
    max-width: none;
  }

  .landing-strip {
    grid-template-columns: 1fr;
  }
}

.guide-hero {
  border-radius: 1rem;
  padding: 2rem 1.6rem;
  background:
    radial-gradient(900px 250px at 100% -20%, rgba(97, 220, 255, 0.24), transparent 65%),
    linear-gradient(135deg, #0e2f72 0%, #1b57be 60%, #2d7fff 100%);
  color: #fff;
}

.guide-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #9cefff;
  margin-bottom: 0.55rem;
}

.guide-title {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.guide-subtitle {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
}

.guide-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card {
  border: 1px solid #d8e8ff;
  border-radius: 0.9rem;
  background: #fff;
  padding: 1rem 1rem 0.95rem;
}

.guide-card h2 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
  color: #173b7f;
}

.guide-card p {
  margin: 0;
  color: #4c6188;
}

.guide-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1c5fcc;
  background: #e9f2ff;
  border: 1px solid #cde1ff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}

.guide-tip {
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.popup-announcement-card,
.popup-announcement-preview {
  --popup-background: #173b7f;
  --popup-text: #ffffff;
  --popup-button: #ffffff;
  --popup-button-text: #173b7f;
  background: var(--popup-background);
  color: var(--popup-text);
  border: 0;
  border-radius: 1.15rem;
  overflow: hidden;
}

.popup-announcement-preview {
  padding: 2rem;
  box-shadow: 0 1rem 2.5rem rgba(17, 39, 84, 0.18);
}

.popup-announcement-kicker {
  color: inherit;
  opacity: 0.75;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.popup-announcement-message {
  color: inherit;
  line-height: 1.65;
  margin-bottom: 0;
  white-space: pre-wrap;
}

.popup-announcement-check .form-check-input {
  border-color: currentColor;
}

.popup-announcement-check .form-check-input:checked {
  background-color: var(--popup-button);
  border-color: var(--popup-button);
}

.popup-announcement-button {
  background: var(--popup-button);
  border-color: var(--popup-button);
  color: var(--popup-button-text);
  font-weight: 800;
}

.popup-announcement-button:hover,
.popup-announcement-button:focus {
  background: var(--popup-button);
  border-color: var(--popup-button);
  color: var(--popup-button-text);
  filter: brightness(0.94);
}

.popup-announcement-button:disabled {
  background: var(--popup-button);
  border-color: var(--popup-button);
  color: var(--popup-button-text);
  opacity: 0.45;
}

@media (max-width: 991.98px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}
