/* ═══════════════════════════════════════════════════════════════
   RESONANCE THREADS — rt-core.css
   Consolidated core stylesheet v1.0
   Replaces: resonance_ss.css, theme-fixes.css, theme-pages.css,
             pages.css, compat.css, footer.css
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. BASE RESET
───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--rt-bg-solid);
  color: var(--rt-text);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent any child from causing horizontal scroll */
  max-width: 100vw;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ─────────────────────────────────────────────────────────────
   2. TYPOGRAPHY
───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--rt-text);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 28px); }
h4 { font-size: clamp(16px, 2vw, 22px); }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  color: var(--rt-text-2);
  line-height: 1.7;
}

li {
  color: var(--rt-text-2);
}

.text-muted {
  color: var(--rt-muted);
}

.text-gradient {
  background: var(--rt-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-brand {
  background: linear-gradient(90deg, #4040ff, #c06ec0, #ff2020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ─────────────────────────────────────────────────────────────
   3. NAVBAR
───────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: var(--rt-nav-h);
  background: rgba(8, 8, 14, 0.92);
  position: sticky;
  top: 0;
  z-index: 500;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 78, 205, 0.12);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  /* Critical: allow dropdowns to overflow below navbar */
  overflow: visible !important;
}

/* Always dark regardless of theme */
[data-theme="light"] .navbar {
  background: rgba(8, 8, 14, 0.92);
  border-bottom: 1px solid rgba(255, 78, 205, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  background: var(--rt-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-page-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
}

.nav-search-wrap {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search {
  width: 100%;
  height: 38px;
  padding: 6px 44px 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: #1a1a2e;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.nav-search::placeholder {
  color: #888;
}

.nav-search:focus {
  border-color: var(--rt-pink);
  box-shadow: 0 0 0 3px rgba(255, 78, 205, 0.15);
}

.nav-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--rt-grad);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #000;
  transition: opacity 0.2s;
}

.nav-search-btn:hover {
  opacity: 0.85;
}

/* Search autocomplete dropdown */
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1a1a22;
  border: 1px solid rgba(255, 78, 205, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 600;
  overflow: hidden;
  display: none;
}

.nav-search-dropdown.open {
  display: block;
}

.nav-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ccc;
  cursor: pointer;
  transition: background 0.15s;
}

.nav-search-result:hover,
.nav-search-result.focused {
  background: rgba(255, 78, 205, 0.08);
  color: #fff;
}

/* Navbar options / icon pills */
.navbar-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.nav-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--rt-trans);
  text-decoration: none;
  position: relative;
}

.nav-icon-pill:hover {
  color: var(--rt-pink);
  border-color: var(--rt-pink);
  background: rgba(255, 78, 205, 0.08);
}

/* Cart badge */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rt-pink);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Theme toggle button */
.nav-theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 78, 205, 0.45);
  background: rgba(255, 78, 205, 0.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--rt-pink);
  transition: var(--rt-trans);
  flex-shrink: 0;
  white-space: nowrap;
  width: 36px;
  height: 36px;
  justify-content: center;
}

.nav-theme-toggle:hover {
  background: rgba(255, 78, 205, 0.22);
  border-color: var(--rt-pink);
  box-shadow: 0 0 14px rgba(255, 78, 205, 0.35);
}

#themeIcon {
  font-size: 16px;
  line-height: 1;
}

/* Profile dropdown */
.nav-profile-wrap {
  position: relative;
}

.nav-profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  cursor: pointer;
  transition: var(--rt-trans);
}

.nav-profile-trigger:hover {
  border-color: var(--rt-pink);
  background: rgba(255, 78, 205, 0.08);
}

.nav-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile-role {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.nav-chevron {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s;
}

.nav-profile-wrap.open .nav-chevron {
  transform: rotate(180deg);
}

/* Profile dropdown — legacy rules neutralized; npm2 panel is controlled by
   header.php inline CSS + .npm2-open class added by rtToggleProfile() JS */
.nav-profile-menu {
  /* All positioning/display handled by header.php inline <style> + JS */
}

.nav-profile-menu::-webkit-scrollbar { width: 3px; }
.nav-profile-menu::-webkit-scrollbar-thumb { background: rgba(255,78,205,.3); border-radius: 3px; }

/* .open class kept for backward compat but npm2 uses .npm2-open */
.nav-profile-menu.open {
  display: block;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Notification panel */
.nav-notif-wrap {
  position: relative;
}

.nav-notif-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 16px;
  transition: var(--rt-trans);
  display: flex;
  align-items: center;
}

.nav-notif-btn:hover {
  border-color: var(--rt-pink);
  color: var(--rt-pink);
}

.nav-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: #1a1a22;
  border: 1px solid rgba(255, 78, 205, 0.2);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  overflow: hidden;
  animation: dropdownIn 0.15s ease;
  transform: translateZ(0);
  will-change: transform;
}

.nav-notif-panel.open {
  display: block;
}

.nnp-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nnp-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s;
}

.nnp-item:hover {
  background: rgba(255, 78, 205, 0.06);
}

.nnp-item.unread {
  background: rgba(255, 78, 205, 0.04);
}

.nnp-title {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e4;
  margin-bottom: 3px;
}

.nnp-body {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.nnp-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────
   4. FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: rgba(0, 0, 0, 0.88);
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 78, 205, 0.15);
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Always dark regardless of theme */
[data-theme="light"] .site-footer {
  background: rgba(0, 0, 0, 0.88);
  color: rgba(255, 255, 255, 0.65);
}

.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 52px 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-mark {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  background: var(--rt-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.footer-logo-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-top: -4px;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  line-height: 1.5;
}

.footer-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: var(--rt-trans);
  flex-shrink: 0;
}

.footer-social-btn:hover {
  border-color: var(--rt-pink);
  color: var(--rt-pink);
  background: rgba(255, 78, 205, 0.08);
}

.footer-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-contact-mini span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  margin-bottom: 7px;
  transition: color 0.15s;
  line-height: 1.3;
}

.footer-col a:hover {
  color: var(--rt-pink);
}

.footer-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 78, 205, 0.15);
  color: var(--rt-pink);
  margin-left: 4px;
  vertical-align: middle;
}

.footer-badge.new {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.footer-newsletter {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 60px;
  box-sizing: border-box;
}

.footer-newsletter-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-newsletter-text {
  flex: 1;
  min-width: 200px;
}

.footer-newsletter-title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.footer-newsletter-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.footer-newsletter-input {
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  outline: none;
  width: 220px;
  transition: border-color 0.18s;
  box-sizing: border-box;
}

.footer-newsletter-input:focus {
  border-color: var(--rt-pink);
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer-newsletter-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  background: var(--rt-grad);
  border: none;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.footer-newsletter-btn:hover {
  opacity: 0.9;
}

.footer-bottom {
  padding: 18px 60px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  box-sizing: border-box;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-location {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: var(--rt-pink);
}

.footer-theme-row {
  margin-top: 14px;
}

.footer-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--rt-trans);
  white-space: nowrap;
  line-height: 1;
}

.footer-theme-btn:hover {
  border-color: var(--rt-pink);
  color: var(--rt-pink);
  background: rgba(255, 78, 205, 0.06);
}

.footer-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--rt-trans);
  white-space: nowrap;
  line-height: 1;
}

.footer-install-btn:hover {
  border-color: var(--rt-cyan);
  color: var(--rt-cyan);
  background: rgba(79, 220, 255, 0.06);
}

/* Refer & Earn CTA */
.footer-refer-cta {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,78,205,.06), rgba(79,220,255,.04));
  border-bottom: 1px solid rgba(255,78,205,.1);
}

.footer-refer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff4ecd, #4fdcff);
  color: #000 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .5px;
  transition: all .2s;
}

.footer-refer-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,78,205,0.3);
}

/* ─────────────────────────────────────────────────────────────
   5. BUTTONS
───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--rt-grad);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--rt-radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--rt-trans);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 78, 205, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--rt-surface-2);
  color: var(--rt-text);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--rt-border-2);
  border-radius: var(--rt-radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--rt-trans);
}

.btn-ghost:hover {
  border-color: var(--rt-pink);
  color: var(--rt-pink);
  background: rgba(255, 78, 205, 0.06);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--rt-radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--rt-trans);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rt-surface-2);
  border: 1px solid var(--rt-border-2);
  color: var(--rt-text-2);
  cursor: pointer;
  font-size: 16px;
  transition: var(--rt-trans);
  flex-shrink: 0;
}

.btn-icon:hover {
  border-color: var(--rt-pink);
  color: var(--rt-pink);
  background: rgba(255, 78, 205, 0.08);
}

/* ─────────────────────────────────────────────────────────────
   6. FORMS
───────────────────────────────────────────────────────────── */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
textarea,
select {
  background: var(--rt-surface-2);
  border: 1px solid var(--rt-border-2);
  color: var(--rt-text);
  border-radius: var(--rt-radius);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"])::placeholder,
textarea::placeholder {
  color: var(--rt-muted);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):focus,
textarea:focus,
select:focus {
  border-color: var(--rt-pink);
  box-shadow: 0 0 0 3px rgba(255, 78, 205, 0.15);
}

/* Prevent iOS zoom — minimum 16px */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  font-size: max(16px, 14px);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--rt-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Light theme form overrides */
[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: #f4f4fa;
  border-color: rgba(0, 0, 0, 0.16);
  color: #0a0a14;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #888898;
}

/* ─────────────────────────────────────────────────────────────
   7. CARDS
───────────────────────────────────────────────────────────── */
.rt-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border-2);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 0.68, 0, 1.2),
              box-shadow 0.3s ease,
              border-color 0.3s;
}

.rt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 78, 205, 0.4);
  box-shadow: 0 12px 32px rgba(255, 78, 205, 0.15);
}

.product-card,
.design-card,
.store-card,
.vault-card,
.feature-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border-2);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 0.68, 0, 1.2),
              box-shadow 0.3s ease,
              border-color 0.3s;
  cursor: pointer;
  position: relative;
}

.product-card:hover,
.design-card:hover,
.store-card:hover,
.vault-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 78, 205, 0.4);
  box-shadow: 0 12px 32px rgba(255, 78, 205, 0.15);
}

[data-theme="light"] .rt-card,
[data-theme="light"] .product-card,
[data-theme="light"] .design-card,
[data-theme="light"] .store-card,
[data-theme="light"] .vault-card,
[data-theme="light"] .feature-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────────────────────────────────────
   8. MODALS
───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border-2);
  border-radius: 16px;
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--rt-text);
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--rt-surface-2);
  border: 1px solid var(--rt-border-2);
  border-radius: 50%;
  color: var(--rt-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--rt-trans);
}

.modal-close:hover {
  background: var(--rt-surface-3);
  color: var(--rt-text);
}

[data-theme="light"] .modal-box {
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* ─────────────────────────────────────────────────────────────
   9. TABLES
───────────────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
}

th {
  background: var(--rt-surface-2);
  color: var(--rt-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rt-border-2);
}

td {
  color: var(--rt-text);
  padding: 12px 14px;
  border-bottom: 1px solid var(--rt-border);
  font-size: 14px;
}

tr:hover td {
  background: rgba(255, 78, 205, 0.04);
}

/* ─────────────────────────────────────────────────────────────
   10. ALERTS / FLASH MESSAGES
───────────────────────────────────────────────────────────── */
.flash-success,
.alert-success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  border-radius: var(--rt-radius);
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-error,
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: var(--rt-radius);
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-info,
.alert-info {
  background: rgba(79, 220, 255, 0.10);
  border: 1px solid rgba(79, 220, 255, 0.3);
  color: var(--rt-cyan);
  border-radius: var(--rt-radius);
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-warning,
.alert-warning {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  border-radius: var(--rt-radius);
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .flash-success { color: #16a34a; }
[data-theme="light"] .flash-error   { color: #dc2626; }
[data-theme="light"] .flash-info    { color: #0284c7; }
[data-theme="light"] .flash-warning { color: #d97706; }

/* ─────────────────────────────────────────────────────────────
   11. STATUS BADGES
───────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-placed        { background: rgba(79, 220, 255, 0.12); color: var(--rt-cyan); border: 1px solid rgba(79, 220, 255, 0.25); }
.status-in_production { background: rgba(167, 139, 250, 0.12); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.25); }
.status-printing      { background: rgba(251, 146, 60, 0.12); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.25); }
.status-quality_check { background: rgba(250, 204, 21, 0.12); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.25); }
.status-ready_dispatch{ background: rgba(34, 211, 238, 0.12); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.25); }
.status-delivered     { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.25); }
.status-cancelled     { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.status-pending       { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.status-paid          { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.25); }
.status-failed        { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }

/* ─────────────────────────────────────────────────────────────
   12. SCROLLBAR
───────────────────────────────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 78, 205, 0.35) transparent;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 78, 205, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 78, 205, 0.55);
}

/* ─────────────────────────────────────────────────────────────
   13. SECTIONS
───────────────────────────────────────────────────────────── */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 10px;
  gap: 10px;
}

.section-title {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--rt-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.section-sub {
  font-size: 13px;
  color: var(--rt-muted);
  margin-top: 4px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 20px;
  border-radius: 30px;
  background: var(--rt-grad);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--rt-trans);
  white-space: nowrap;
}

.view-all-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 78, 205, 0.3);
}

.view-all-link::after {
  content: "→";
  font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────
   14. HERO
───────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 60px 30px;
  width: 100%;
  overflow: hidden;
  gap: 24px;
}

.hero-text {
  display: block;
  width: 100%;
}

.brand-name {
  font-size: clamp(60px, 9vw, 110px);
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--rt-grad, linear-gradient(135deg, #ff4ecd, #4fdcff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.brand-tagline {
  font-size: clamp(14px, 2vw, 22px);
  margin-top: 8px;
  background: var(--rt-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.start-design-wrapper {
  display: flex;
  justify-content: flex-end;
  align-self: center;
  padding: 20px;
  flex-shrink: 0;
}

.Start-designing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 800;
  border-radius: 40px;
  background: var(--rt-grad);
  border: none;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  white-space: nowrap;
}

.Start-designing-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 78, 205, 0.45), 0 0 20px rgba(79, 220, 255, 0.25);
}

/* ─────────────────────────────────────────────────────────────
   15. SHOWCASE SLIDER
   NOTE: Authoritative showcase styles live in rs-slider.css.
   Only base fallbacks here — rs-slider.css overrides with higher specificity.
───────────────────────────────────────────────────────────── */
.showcase {
  position: relative;
  width: 100%;
  padding: 24px 0;
  overflow: hidden;
}

.showcase-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: auto;
  cursor: grab;
  align-items: stretch;
  padding: 10px 40px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.showcase-slider::-webkit-scrollbar {
  display: none;
}

.showcase-slider:active {
  cursor: grabbing;
}

.showcase-slide {
  flex: 0 0 264px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.68, 0, 1.2), box-shadow 0.35s ease;
  background: var(--rt-surface-2);
  cursor: pointer;
  position: relative;
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.showcase-slide:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 78, 205, 0.28), 0 0 20px rgba(79, 220, 255, 0.14);
  z-index: 2;
}

.showcase-slide:hover img {
  transform: scale(1.08);
}

/* Slider arrows — base fallback (rs-slider.css is authoritative) */
.slider-wrapper {
  position: relative;
  overflow: visible;
  width: 100%;
}

.arrow {
  /* Overridden by rs-slider.css — kept as minimal fallback */
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
  z-index: 10;
}

.arrow.right {
  right: auto;
  left: auto;
}

.arrow.left {
  left: auto;
  right: auto;
}

.arrow:hover {
  color: var(--rt-pink);
}

.arrow:active {
  transform: scale(0.97);
}

/* ─────────────────────────────────────────────────────────────
   16. PRODUCT GRID
───────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 60px;
}

.product-slider {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  cursor: grab;
  align-items: flex-start;
  scrollbar-width: none;
  padding: 16px 16px 32px;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-slider:active {
  cursor: grabbing;
}

.product-slider::before,
.product-slider::after {
  content: '';
  flex: 0 0 44px;
  min-width: 44px;
}

/* ─────────────────────────────────────────────────────────────
   17. READYMADES
───────────────────────────────────────────────────────────── */
.rm-section {
  padding: 32px 0;
}

.rm-tabs {
  display: flex;
  gap: 8px;
  padding: 0 60px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rm-tabs::-webkit-scrollbar {
  display: none;
}

.rm-tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--rt-border-2);
  background: transparent;
  color: var(--rt-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--rt-trans);
}

.rm-tab-btn:hover,
.rm-tab-btn.active {
  border-color: var(--rt-pink);
  color: var(--rt-pink);
  background: rgba(255, 78, 205, 0.08);
}

.rm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 0 60px;
}

.rm-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border-2);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--rt-trans);
  cursor: pointer;
}

.rm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 78, 205, 0.4);
  box-shadow: 0 12px 32px rgba(255, 78, 205, 0.15);
}

.rm-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  background: var(--rt-surface-2);
}

.rm-card-info {
  padding: 12px 14px;
}

.rm-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rt-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--rt-text);
}

/* ─────────────────────────────────────────────────────────────
   18. OFFER ZONE
───────────────────────────────────────────────────────────── */
.ozn-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ozn-card {
  display: grid;
  grid-template-columns: 240px 1fr 200px;
  align-items: stretch;
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  overflow: hidden;
  transition: background 0.2s;
}

.ozn-card:first-child { border-radius: 16px 16px 0 0; }
.ozn-card:last-child  { border-radius: 0 0 16px 16px; }
.ozn-card + .ozn-card { border-top: none; }
.ozn-card:hover       { background: var(--rt-surface-2); }

/* ─────────────────────────────────────────────────────────────
   19. BULK SECTION
───────────────────────────────────────────────────────────── */
.bulk-section {
  padding: 40px 16px;
}

.bulk-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border-2);
  border-radius: 14px;
  padding: 0px;
  transition: var(--rt-trans);
}

.bulk-card:hover {
  border-color: rgba(255, 78, 205, 0.4);
  box-shadow: 0 8px 24px rgba(255, 78, 205, 0.12);
}

.tier-card {
  background: var(--rt-surface-2);
  border: 1px solid var(--rt-border-2);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: var(--rt-trans);
}

.tier-card:hover,
.tier-card.featured {
  border-color: var(--rt-pink);
  box-shadow: 0 0 0 1px var(--rt-pink), 0 8px 24px rgba(255, 78, 205, 0.2);
}

.tier-card-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--rt-text);
  margin: 8px 0;
}

.tier-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rt-muted);
}

/* ─────────────────────────────────────────────────────────────
   20. CHATBOT
───────────────────────────────────────────────────────────── */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rt-grad);
  border: none;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(255, 78, 205, 0.4);
  z-index: 9050;
  transition: transform 0.2s, box-shadow 0.2s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(255, 78, 205, 0.55);
}

.chatbot-fab:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 20px);
  height: 520px;
  max-height: calc(100vh - 100px);
  background: var(--rt-surface);
  border: 1px solid var(--rt-border-2);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 78, 205, 0.1);
  z-index: 9040;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideIn 0.25s ease;
}

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-window.open {
  display: flex;
}

.chatbot-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,78,205,0.08), rgba(79,220,255,0.05));
  border-bottom: 1px solid var(--rt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
}

.chatbot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rt-grad);
  display: block;
}

.chatbot-avatar-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--rt-surface);
}

.chatbot-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--rt-text);
}

.chatbot-status {
  font-size: 10px;
  color: #4ade80;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chatbot-header-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rt-border);
  color: var(--rt-muted);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.chatbot-header-btn:hover {
  background: rgba(255,78,205,0.1);
  border-color: rgba(255,78,205,0.3);
  color: #ff4ecd;
}

.chatbot-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rt-border);
  color: var(--rt-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.chatbot-close:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}

/* Modes bar */
.chatbot-modes {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rt-border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.chatbot-modes::-webkit-scrollbar { display: none; }

.chat-mode-btn {
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid var(--rt-border);
  background: transparent;
  color: var(--rt-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}

.chat-mode-btn:hover {
  border-color: rgba(255,78,205,0.3);
  color: var(--rt-text);
}

.chat-mode-btn.active {
  background: rgba(255,78,205,0.12);
  border-color: rgba(255,78,205,0.4);
  color: #ff4ecd;
}

/* Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,78,205,0.2) transparent;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(255,78,205,0.2); border-radius: 4px; }

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-msg-content { word-wrap: break-word; }
.chat-msg-content a { color: #ff4ecd; text-decoration: none; }
.chat-msg-content a:hover { text-decoration: underline; }
.chat-msg-content strong { font-weight: 700; }
.chat-msg-content em { font-style: italic; color: var(--rt-muted); }

.chat-msg.user {
  background: var(--rt-grad);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-msg.bot {
  background: var(--rt-surface-2);
  color: var(--rt-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--rt-border);
}

/* Typing indicator */
.chat-typing {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  flex-shrink: 0;
}

.chat-typing-dots {
  display: flex;
  gap: 4px;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rt-muted);
  animation: typingBounce 1.2s infinite;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-typing-label {
  font-size: 11px;
  color: var(--rt-muted);
}

/* Suggestions */
.chat-suggestions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.chat-suggestions::-webkit-scrollbar { display: none; }

.chat-suggestion {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--rt-border);
  background: transparent;
  color: var(--rt-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}

.chat-suggestion:hover {
  border-color: rgba(255,78,205,0.4);
  color: #ff4ecd;
  background: rgba(255,78,205,0.06);
}

/* Product cards */
.chat-product-cards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.chat-product-cards::-webkit-scrollbar { display: none; }

.chat-product-card {
  flex: 0 0 120px;
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.15s;
}

.chat-product-card:hover {
  border-color: rgba(255,78,205,0.4);
  transform: translateY(-2px);
}

.chat-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--rt-surface-2);
}

.chat-card-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--rt-surface-2);
}

.chat-card-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--rt-text);
  padding: 6px 8px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-card-price {
  font-size: 11px;
  font-weight: 700;
  color: #ff4ecd;
  padding: 0 8px;
}

.chat-card-cta {
  font-size: 9px;
  font-weight: 700;
  color: var(--rt-muted);
  padding: 4px 8px 6px;
}

/* Link buttons */
.chat-link-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.chat-link-btn {
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255,78,205,0.08);
  border: 1px solid rgba(255,78,205,0.2);
  color: #ff4ecd;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.chat-link-btn:hover {
  background: rgba(255,78,205,0.15);
  border-color: rgba(255,78,205,0.4);
}

/* Input row */
.chatbot-input-row {
  padding: 10px 12px;
  border-top: 1px solid var(--rt-border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: var(--rt-surface);
}

.chatbot-input {
  flex: 1;
  padding: 9px 14px;
  background: var(--rt-surface-2);
  border: 1px solid var(--rt-border-2);
  border-radius: 20px;
  color: var(--rt-text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.chatbot-input:focus {
  border-color: rgba(255,78,205,0.4);
}

.chatbot-input::placeholder {
  color: var(--rt-muted);
}

.chatbot-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rt-grad);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.chatbot-send:hover {
  transform: scale(1.08);
}

.chatbot-send::after {
  content: '➤';
}

/* Footer */
.chatbot-footer {
  padding: 6px 12px;
  text-align: center;
  font-size: 9px;
  color: var(--rt-muted);
  border-top: 1px solid var(--rt-border);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* FAB pulse */
.fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,78,205,0.4);
  animation: fabPulse 2s infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.fab-icon {
  font-size: 22px;
  color: #000;
  font-weight: 900;
}

/* ─────────────────────────────────────────────────────────────
   21. COOKIE CONSENT
───────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 14, 0.97);
  border-top: 1px solid rgba(255, 78, 205, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  min-width: 200px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   22. SCROLL-TO-TOP
───────────────────────────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rt-surface-2);
  border: 1px solid var(--rt-border-2);
  color: var(--rt-text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 800;
  transition: var(--rt-trans);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--rt-shadow);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--rt-pink);
  color: #000;
  border-color: var(--rt-pink);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   23. PAGE WRAPPER & BLOBS
───────────────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: auto;
  background: transparent;
  /* Prevent horizontal overflow on all pages */
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Global section containment — prevents any section from overflowing */
section, .section, .rt-section, .products, .designs-section,
.bulk-section, .readymades-section, .brand-search-section,
.customize, .offer-zone-new, .community-cta-section,
.hero, .showcase, .rt-brand-break {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Content max-width container */
.rt-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .rt-container { padding: 0 32px; }
}

@media (max-width: 767px) {
  .rt-container { padding: 0 16px; }
}

.rt-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.rt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.rt-blob-1 {
  width: 600px; height: 600px;
  background: var(--rt-blob-1, rgba(255, 78, 205, 0.03));
  top: -10%; left: -5%;
  animation: blobFloat1 22s ease-in-out infinite;
}

.rt-blob-2 {
  width: 500px; height: 500px;
  background: var(--rt-blob-2, rgba(79, 220, 255, 0.025));
  top: 30%; right: -8%;
  animation: blobFloat2 28s ease-in-out infinite;
}

.rt-blob-3 {
  width: 400px; height: 400px;
  background: var(--rt-blob-3, rgba(100, 60, 220, 0.02));
  bottom: 10%; left: 20%;
  animation: blobFloat3 18s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(60px, 80px) scale(1.08); }
  66%       { transform: translate(-40px, 40px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-80px, -60px) scale(1.1); }
  70%       { transform: translate(40px, 80px) scale(0.92); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%       { transform: translate(50px, -70px) scale(1.05); }
  60%       { transform: translate(-60px, 30px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .rt-blob { animation: none; }
  #rtBgCanvas { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   24. LIGHT THEME OVERRIDES
───────────────────────────────────────────────────────────── */
[data-theme="light"] body {
  background: #f0f0f6;
  color: #0a0a14;
}

[data-theme="light"] .section-title {
  /* gradient text stays the same — no override needed */
  color: transparent;
}

[data-theme="light"] .rm-card,
[data-theme="light"] .bulk-card,
[data-theme="light"] .tier-card,
[data-theme="light"] .ozn-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .chatbot-window {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .chat-msg.bot {
  background: #f4f4fa;
  color: #0a0a14;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-profile-menu,
[data-theme="light"] .nav-notif-panel,
[data-theme="light"] .nav-search-dropdown {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* npm-* light theme — matches header.php inline styles */
[data-theme="light"] .npm-item,
[data-theme="light"] .npm-item-text {
  color: #333;
}

[data-theme="light"] .npm-item:hover {
  background: rgba(255, 78, 205, 0.06);
  color: #000;
}

[data-theme="light"] .npm-hero {
  background: linear-gradient(135deg, rgba(255,78,205,.06), rgba(79,220,255,.03));
}

[data-theme="light"] .npm-hero-name {
  color: #0a0a14;
}

[data-theme="light"] .npm-hero-email {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .npm-section-title {
  color: #888;
}

[data-theme="light"] .npm-dash-item {
  background: #f4f4fa;
  border-color: rgba(0,0,0,.08);
}

[data-theme="light"] .npm-dash-item:hover {
  background: rgba(255,78,205,.06);
}

[data-theme="light"] .npm-dash-label {
  color: #555;
}

[data-theme="light"] .scroll-top-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #333;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] th {
  background: #f4f4fa;
  color: #505068;
}

[data-theme="light"] td {
  color: #0a0a14;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] tr:hover td {
  background: rgba(255, 78, 205, 0.04);
}
/* === INDEX PAGE COMPONENTS === */


/* ─────────────────────────────────────────────────────────────
   25. NAVBAR LAYOUT FIXES — Desktop, Tablet, Mobile
───────────────────────────────────────────────────────────── */

/* Ensure navbar never clips dropdowns */
.navbar,
.nav-actions,
.nav-profile-wrap,
.nav-notif-wrap {
  overflow: visible !important;
}

/* Profile wrap — create proper stacking context */
.nav-profile-wrap {
  position: relative;
  isolation: isolate;
}

/* Notif wrap — same */
.nav-notif-wrap {
  position: relative;
  isolation: isolate;
}

/* Profile menu — z-index only, no position/display (JS handles those) */
.nav-profile-menu {
  z-index: 999999 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,78,205,.3) transparent;
}

/* Notif panel — same z-index */
.nav-notif-panel {
  z-index: 999999 !important;
}

/* Search dropdown */
.nav-search-dropdown {
  z-index: 99998 !important;
}

/* ── Desktop navbar layout (≥1024px) ── */
@media (min-width: 1024px) {
  .navbar {
    padding: 0 28px;
    gap: 16px;
  }

  .nav-logo {
    flex-shrink: 0;
    min-width: 160px;
  }

  .nav-search-wrap {
    flex: 1;
    max-width: 420px;
    min-width: 200px;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .nav-profile-trigger {
    padding: 5px 12px 5px 5px;
  }

  .nav-profile-name-wrap {
    display: flex;
    flex-direction: column;
  }
}

/* ── Tablet navbar layout (768px–1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar {
    padding: 0 16px;
    gap: 10px;
  }

  .nav-search-wrap {
    flex: 1;
    max-width: 240px;
    min-width: 120px;
  }

  .nav-actions {
    gap: 4px;
    flex-shrink: 0;
  }

  /* Hide text labels on tablet — icon only */
  .nav-icon-pill .nip-label {
    display: none;
  }

  .nav-icon-pill {
    padding: 6px 8px;
    min-width: 36px;
    justify-content: center;
  }

  /* Hide less important nav items on tablet */
  .nav-icon-pill.rt-hide-mobile {
    display: none;
  }

  .nav-profile-name-wrap {
    display: none;
  }

  .nav-profile-trigger {
    padding: 4px;
    border-radius: 50%;
  }

  /* Profile menu on tablet — JS handles width/position via rtToggleProfile() */
  .nav-profile-menu {
    /* controlled by JS */
  }
}

/* ── Mobile navbar layout (≤767px) ── */
@media (max-width: 767px) {
  .navbar {
    padding: 0 10px;
    height: 54px;
    gap: 6px;
    overflow: visible !important;
  }

  .nav-logo {
    flex-shrink: 0;
  }

  .logo-img {
    height: 34px;
    width: 34px;
  }

  .logo-text {
    font-size: 14px;
    letter-spacing: 1.5px;
  }

  .logo-page-name {
    display: none;
  }

  /* Hide search on mobile */
  .nav-search-wrap {
    display: none !important;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    overflow: visible !important;
    margin-left: auto;
  }

  /* Icon pills — icon only, compact */
  .nav-icon-pill {
    padding: 6px 8px;
    min-width: 36px;
    justify-content: center;
    font-size: 14px;
  }

  .nav-icon-pill .nip-label {
    display: none;
  }

  /* Theme toggle — compact */
  .nav-theme-toggle {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    flex-shrink: 0;
  }

  /* Profile trigger — avatar only on mobile */
  .nav-profile-trigger {
    padding: 3px;
    border-radius: 50%;
    border-width: 1.5px;
  }

  .nav-profile-name-wrap {
    display: none;
  }

  .nav-profile-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .nav-chevron {
    display: none;
  }

  /* Profile menu on mobile — JS handles position via rtToggleProfile() */
  .nav-profile-menu {
    /* position set by JS inline style + .npm2-open class */
  }

  /* Notif panel on mobile — JS handles position via rtToggleNotif() */
  .nav-notif-panel {
    /* position set by JS inline style + .npm2-open class */
  }
}

@media (max-width: 400px) {
  .navbar { padding: 0 8px; gap: 4px; }
  .logo-text { font-size: 12px; letter-spacing: 1px; }
  .nav-icon-pill { padding: 5px 6px; min-width: 30px; }
  .nav-theme-toggle { width: 30px !important; height: 30px !important; }
}

/* ─────────────────────────────────────────────────────────────
   26. ADMIN DASHBOARD LAYOUT FIXES
───────────────────────────────────────────────────────────── */

/* Admin sidebar backdrop for mobile */
.rt-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.rt-sidebar-backdrop.active {
  display: block;
}

/* Admin grid helpers */
.rt-grid {
  display: grid;
  gap: 16px;
}

.rt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rt-grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
  .rt-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .rt-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rt-grid--2,
  .rt-grid--3,
  .rt-grid--4,
  .rt-grid--5 { grid-template-columns: 1fr; }
}

/* Admin card */
.rt-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border-2);
  border-radius: 12px;
  padding: 0px;
  margin-bottom: 0;
}

.rt-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--rt-text);
  margin-bottom: 4px;
}

.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }

/* Admin stat items */
.rt-stat-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--rt-border);
}

.rt-stat-item:last-child { border-bottom: none; }

.rt-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rt-muted);
  margin-bottom: 3px;
}

.rt-stat-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--rt-text);
}

/* Admin alert */
.rt-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rt-alert--success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.rt-alert--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Admin label */
.rt-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rt-muted);
  margin-bottom: 5px;
}

/* Admin page subtitle */
.rt-page-subtitle {
  font-size: 12px;
  color: var(--rt-muted);
  margin-top: 3px;
}

/* Admin topbar profile dropdown fix */
.rt-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9999 !important;
  min-width: 200px;
}

/* Admin topbar overflow fix */
.rt-topbar {
  overflow: visible !important;
}

.rt-topbar-right {
  overflow: visible !important;
  position: relative;
}

.rt-profile-wrap {
  position: relative;
  overflow: visible !important;
}

/* Admin mobile fixes */
@media (max-width: 768px) {
  .rt-content {
    padding: 14px 12px 40px;
  }

  .rt-page-title {
    font-size: 17px;
  }

  .rt-topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .rt-topbar-search {
    display: none;
  }

  .rt-profile-name {
    display: none;
  }

  .rt-profile-btn {
    padding: 5px 8px;
  }

  /* Admin profile dropdown on mobile — fixed */
  .rt-profile-dropdown {
    position: fixed !important;
    top: 66px !important;
    right: 8px !important;
    left: auto !important;
    width: calc(100vw - 16px) !important;
    max-width: 280px !important;
    z-index: 9999 !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   NPM3 — Profile Panel v3 (Near-Fullscreen, RUID-Aware)
   Merged from npm3-panel.css
═══════════════════════════════════════════════════════════════ */
.npm3-body-lock{overflow:hidden !important}
.npm3{position:fixed;inset:0;z-index:999999;display:none;pointer-events:none;align-items:center;justify-content:center;padding:20px}
.npm3.npm3-open{display:flex;pointer-events:auto}
.npm3::before{content:'';position:fixed;inset:0;background:rgba(0,0,0,.75);backdrop-filter:blur(8px);z-index:-1}
.npm3-inner{position:relative;width:92vw;max-width:520px;max-height:88vh;background:var(--rt-bg-solid,#0e0e14);border:1px solid rgba(255,78,205,.12);border-radius:20px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(255,78,205,.2) transparent;animation:npm3PopIn .3s cubic-bezier(.34,1.56,.64,1);box-shadow:0 40px 100px rgba(0,0,0,.6),0 0 40px rgba(255,78,205,.06)}
[data-theme="light"] .npm3-inner{background:#fff;border-color:rgba(0,0,0,.1);box-shadow:0 40px 100px rgba(0,0,0,.2)}
@keyframes npm3PopIn{from{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}
.npm3-top{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 20px 16px;border-bottom:1px solid var(--rt-border);background:linear-gradient(135deg,rgba(255,78,205,.05),rgba(79,220,255,.03));flex-shrink:0}
.npm3-top-left{display:flex;align-items:flex-start;gap:14px;flex:1;min-width:0}
.npm3-avatar-link{flex-shrink:0;text-decoration:none}
.npm3-avatar{width:56px;height:56px;border-radius:50%;background:var(--rt-grad);display:flex;align-items:center;justify-content:center;overflow:hidden;border:2px solid rgba(255,78,205,.3);transition:transform .2s}
.npm3-avatar:hover{transform:scale(1.05)}
.npm3-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.npm3-user-info{flex:1;min-width:0;padding-top:2px}
.npm3-user-name{font-size:16px;font-weight:800;color:var(--rt-text);text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npm3-user-name:hover{color:var(--rt-pink)}
.npm3-user-email{font-size:11px;color:var(--rt-muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npm3-user-roles{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.npm3-role-chip{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:6px;font-size:9px;font-weight:700;border:1px solid color-mix(in srgb,var(--rc,#888) 30%,transparent);background:color-mix(in srgb,var(--rc,#888) 8%,transparent);color:var(--rc,#888);white-space:nowrap}
.npm3-top-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.npm3-location-btn{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid var(--rt-border);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--rt-muted);transition:all .2s}
.npm3-location-btn:hover{border-color:var(--rt-pink);color:var(--rt-pink);background:rgba(255,78,205,.08)}
.npm3-close{width:34px;height:34px;border-radius:50%;background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.2);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ef4444;font-size:14px;font-family:inherit;transition:all .2s}
.npm3-close:hover{background:rgba(239,68,68,.15);border-color:rgba(239,68,68,.4)}
.npm3-priority{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 16px;border-bottom:1px solid var(--rt-border)}
.npm3-nav-arrows{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px 16px;border-bottom:1px solid var(--rt-border)}
.npm3-nav-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:10px;background:var(--rt-surface,#1c1c26);border:1px solid var(--rt-border);color:var(--rt-text);font-size:10px;font-weight:600;text-align:center;transition:all .2s;cursor:pointer;text-decoration:none;font-family:inherit}
.npm3-nav-btn span:first-child{font-size:18px;line-height:1}
.npm3-nav-btn:hover{border-color:var(--rt-pink);background:rgba(255,78,205,.06);color:var(--rt-pink);transform:translateY(-1px)}
.npm3-nav-btn:active{transform:scale(.94)}
.npm3-priority-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 8px;border-radius:12px;background:var(--rt-surface,#1c1c26);border:1px solid var(--rt-border);text-decoration:none;color:var(--rt-text);font-size:11px;font-weight:700;text-align:center;transition:all .2s}
.npm3-priority-btn span:first-child{font-size:20px}
.npm3-priority-btn:hover{border-color:var(--rt-pink);background:rgba(255,78,205,.06);color:var(--rt-pink);transform:translateY(-2px)}
.npm3-priority-btn.primary{background:var(--rt-grad);border-color:transparent;color:#000}
.npm3-priority-btn.primary:hover{opacity:.9;transform:translateY(-2px);color:#000}
.npm3-section{padding:14px 16px;border-bottom:1px solid var(--rt-border)}
.npm3-section-title{font-size:9px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--rt-muted);margin-bottom:10px}
.npm3-workspace-grid{display:flex;gap:8px;flex-wrap:wrap}
.npm3-ws-item{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:10px;border:1.5px solid color-mix(in srgb,var(--rc,#888) 30%,transparent);background:color-mix(in srgb,var(--rc,#888) 6%,transparent);text-decoration:none;color:var(--rt-text);font-size:12px;font-weight:700;transition:all .2s}
.npm3-ws-item:hover{background:color-mix(in srgb,var(--rc,#888) 14%,transparent);transform:translateY(-1px);box-shadow:0 4px 12px color-mix(in srgb,var(--rc,#888) 15%,transparent)}
.npm3-ws-icon{font-size:16px}.npm3-ws-primary{font-size:8px;color:var(--rc,#888);margin-left:2px}
.npm3-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.npm3-quick-item{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 6px;border-radius:10px;background:var(--rt-surface,#1c1c26);border:1px solid var(--rt-border);text-decoration:none;color:var(--rt-text);font-size:10px;font-weight:600;text-align:center;transition:all .15s}
.npm3-quick-item span:first-child{font-size:18px}
.npm3-quick-item:hover{border-color:var(--rt-pink);background:rgba(255,78,205,.06);color:var(--rt-pink)}
.npm3-list{display:flex;flex-direction:column;gap:2px}
.npm3-list-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:8px;text-decoration:none;color:var(--rt-text);font-size:13px;font-weight:600;transition:all .15s}
.npm3-list-item:hover{background:rgba(255,78,205,.06);color:var(--rt-pink)}
.npm3-list-item span:first-child{font-size:16px;width:22px;text-align:center;flex-shrink:0}
.npm3-arrow{margin-left:auto;font-size:16px;color:var(--rt-muted);transition:transform .15s}
.npm3-list-item:hover .npm3-arrow{transform:translateX(3px);color:var(--rt-pink)}
.npm3-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid var(--rt-border);background:var(--rt-surface,#1c1c26);flex-shrink:0;margin-top:auto}
.npm3-theme-btn{display:flex;align-items:center;gap:6px;padding:7px 12px;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid var(--rt-border);color:var(--rt-text);font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .15s}
.npm3-theme-btn:hover{border-color:var(--rt-pink);color:var(--rt-pink)}
.npm3-footer-mid{font-size:10px;color:var(--rt-muted);font-weight:600}
.npm3-logout-btn{padding:7px 14px;border-radius:8px;background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.2);color:#ef4444;font-size:12px;font-weight:700;text-decoration:none;transition:all .15s}
.npm3-logout-btn:hover{background:rgba(239,68,68,.16);border-color:rgba(239,68,68,.4)}
@media(max-width:768px){.npm3{padding:0}.npm3-inner{width:100vw;max-width:100vw;height:100dvh;height:100vh;max-height:100dvh;max-height:-webkit-fill-available;border-radius:0;border:none;display:flex;flex-direction:column;overflow-y:auto;-webkit-overflow-scrolling:touch}.npm3-inner>*:not(.npm3-top):not(.npm3-footer){flex-shrink:0}.npm3-top{flex-shrink:0}.npm3-footer{flex-shrink:0;position:sticky;bottom:0;z-index:2;border-top:1px solid var(--rt-border);background:var(--rt-bg-solid,#0e0e14);padding-bottom:max(12px,env(safe-area-inset-bottom))}.npm3-priority{grid-template-columns:repeat(4,1fr);gap:6px;padding:12px}.npm3-priority-btn{padding:12px 6px;font-size:10px}.npm3-priority-btn span:first-child{font-size:18px}.npm3-quick-grid{grid-template-columns:repeat(4,1fr);gap:4px}.npm3-quick-item{padding:10px 4px;font-size:9px}.npm3-quick-item span:first-child{font-size:16px}.npm3-section{padding:12px}.npm3-top{padding:16px 14px 14px}.npm3-footer{padding:12px 14px;padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(min-width:769px) and (max-width:1024px){.npm3-inner{max-width:460px}}
@media(min-width:1400px){.npm3-inner{max-width:560px}}
