/* ============================================================
   NAVBAR
   ============================================================ */

.rt-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 100;
  background: rgba(23, 16, 43, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 249, 255, 0.08);
}

.rt-navbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rt-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--paper);
  flex: 0 0 auto;
}

.rt-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.rt-nav-menu > li { position: relative; }

.rt-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: rgba(251, 249, 255, 0.85);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.rt-nav-link:hover,
.rt-nav-link[aria-expanded="true"] {
  background: rgba(251, 249, 255, 0.08);
  color: var(--gold);
}

.rt-nav-arrow {
  width: 9px;
  height: 9px;
  transition: transform 0.2s ease;
}

.rt-dropdown[data-open="true"] .rt-nav-arrow { transform: rotate(180deg); }

/* ── Features dropdown panel ─────────────────────────────── */
.rt-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  max-width: 90vw;
  background: var(--ink);
  border: 1px solid rgba(251, 249, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  padding: 20px;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.rt-dropdown[data-open="true"] .rt-dropdown-panel { display: grid; }

.rt-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: rgba(251, 249, 255, 0.85);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.rt-dropdown-panel a:hover {
  background: rgba(212, 162, 76, 0.12);
  color: var(--gold);
}

.rt-dropdown-panel svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }

.rt-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.rt-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: 8px;
}

.rt-menu-toggle svg { width: 24px; height: 24px; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rt-nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
    padding: 16px;
    overflow-y: auto;
    display: none;
    gap: 6px;
  }

  .rt-nav-menu.rt-open { display: flex; }

  .rt-dropdown-panel {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 6px;
  }

  .rt-nav-actions .rt-btn-ghost { display: none; }
  .rt-menu-toggle { display: block; }
}

/*
============. Handle mobile pop up modal ============
*/


.rt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.rt-modal-overlay.show {
  display: flex;
}
.rt-modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: center;
  color: #1a1a1a; /* base text color for everything inside */
}

.rt-modal h3 {
  color: #111;
  font-size: 20px;
  margin: 0 0 12px;
}

.rt-modal p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.rt-modal-success h3 {
  color: #111;
}

.rt-modal-success p {
  color: #555;
}

.rt-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}
.rt-modal-panel {
  display: none;
}
.rt-modal-panel.active {
  display: block;
}
.rt-modal-panel.hide {
  display: none;
}
.rt-modal-panel.show {
  display: block;
}
.rt-modal-input-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.rt-modal-input-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}
.rt-modal-input-row button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.rt-modal-input-row button:disabled {
  opacity: 0.6;
  cursor: default;
}
