/* Mobile drawer — maroon + gold (matches header) */
:root {
  --rs-drawer-bg: #51071B;
  --rs-drawer-bg-deep: #3d0514;
  --rs-drawer-gold: #d4af37;
  --rs-drawer-gold-soft: #e8c96a;
  --rs-drawer-text: #fff8e7;
  --rs-drawer-muted: rgba(255, 248, 231, 0.7);
  --rs-drawer-line: rgba(212, 175, 55, 0.28);
}

.rs-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1340;
  background: rgba(45, 4, 14, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  border: none;
  padding: 0;
  cursor: pointer;
}

body.home-menu-open .rs-mobile-backdrop {
  opacity: 1;
  visibility: visible;
}

.home-mobile-panel.rs-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: min(90vw, 370px);
  height: 100%;
  max-height: 100dvh;
  z-index: 1350;
  background: linear-gradient(180deg, #5c0a20 0%, var(--rs-drawer-bg) 45%, var(--rs-drawer-bg-deep) 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 18px 0 0 18px;
  border-left: 2px solid var(--rs-drawer-gold);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  padding: 0;
  color: var(--rs-drawer-text);
}

body.home-menu-open .home-mobile-panel.rs-mobile-drawer {
  transform: translateX(0);
}

body.home-menu-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  body.home-menu-open .rs-mobile-backdrop {
    top: 0;
    z-index: 1480;
  }

  .home-mobile-panel.rs-mobile-drawer {
    top: 0;
    right: 0;
    width: min(92vw, 340px);
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 16px 0 0 16px;
    z-index: 1490;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  body.home-menu-open header.rs-header {
    z-index: 1200;
  }

  body.home-menu-open .rs-header .home-hamburger {
    visibility: hidden;
    pointer-events: none;
  }

  .rs-drawer-head {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--rs-drawer-line);
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .rs-drawer-logo {
    display: block;
  }

  .rs-drawer-head::before {
    content: none;
    display: none;
  }

  .rs-drawer-close {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--rs-drawer-gold) !important;
    background: rgba(212, 175, 55, 0.1) !important;
    color: var(--rs-drawer-gold) !important;
    font-size: 24px;
    box-shadow: none !important;
  }

  .rs-drawer-close:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    color: var(--rs-drawer-gold-soft) !important;
  }

  .rs-drawer-wave {
    display: none;
  }
}

.rs-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--rs-drawer-line);
}

.rs-drawer-logo img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.rs-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--rs-drawer-gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--rs-drawer-gold);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.rs-drawer-close:hover {
  background: rgba(212, 175, 55, 0.18);
  color: var(--rs-drawer-gold-soft);
}

.rs-drawer-wave {
  display: none;
}

.rs-drawer-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.rs-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  text-decoration: none;
  color: var(--rs-drawer-text);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--rs-drawer-line);
  transition: background 0.15s, color 0.15s;
}

.rs-drawer-link i:first-child {
  width: 18px;
  text-align: center;
  font-size: 15px;
  color: var(--rs-drawer-gold-soft);
  flex-shrink: 0;
}

.rs-drawer-link span {
  flex: 1 1 auto;
  min-width: 0;
}

.rs-drawer-link .rs-drawer-chevron {
  font-size: 11px;
  color: rgba(212, 175, 55, 0.45);
  flex-shrink: 0;
}

.rs-drawer-link:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--rs-drawer-gold-soft);
}

.rs-drawer-link:hover i:first-child {
  color: var(--rs-drawer-gold);
}

.rs-drawer-link.active {
  background: rgba(212, 175, 55, 0.16);
  color: var(--rs-drawer-gold);
  box-shadow: inset 3px 0 0 var(--rs-drawer-gold);
}

.rs-drawer-link.active i:first-child,
.rs-drawer-link.active .rs-drawer-chevron {
  color: var(--rs-drawer-gold);
}

.rs-drawer-actions {
  display: flex;
  gap: 10px;
  padding: 14px 16px 10px;
  flex-shrink: 0;
  border-top: 1px solid var(--rs-drawer-line);
}

.rs-drawer-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.rs-drawer-btn-register {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #3d0514;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.rs-drawer-btn-login {
  background: transparent;
  color: var(--rs-drawer-text);
  border: 1.5px solid var(--rs-drawer-gold);
}

.rs-drawer-foot {
  flex-shrink: 0;
  padding: 10px 16px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--rs-drawer-muted);
  line-height: 1.5;
  border-top: 1px solid var(--rs-drawer-line);
}

.rs-drawer-foot-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--rs-drawer-gold);
  font-size: 10px;
}

.rs-drawer-foot-hearts::before,
.rs-drawer-foot-hearts::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rs-drawer-gold));
}

.rs-drawer-foot-hearts::after {
  background: linear-gradient(270deg, transparent, var(--rs-drawer-gold));
}

.rs-drawer-foot strong {
  color: var(--rs-drawer-gold);
  font-weight: 700;
}

@media (min-width: 981px) {
  .rs-mobile-backdrop,
  .home-mobile-panel.rs-mobile-drawer {
    display: none !important;
  }
}
