/* ==========================================================================
   RENTAL MODULE STYLES (Telegram NFT Collectibles Rental)
   ========================================================================== */

.rental-section {
  display: none;
  padding: 16px 12px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.rental-section.active {
  display: block;
  animation: fadeInRental 0.25s ease-out;
}

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

/* Hero Banner */
.rental-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.25);
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.rental-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rental-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.rental-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  margin-bottom: 8px;
}

.rental-hero-subtitle {
  font-size: 13.5px;
  color: #e2e8f0; /* Increased contrast from #94a3b8 */
  line-height: 1.5;
  max-width: 640px;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.rental-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .rental-steps-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.rental-step-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rental-step-num {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
}

.rental-step-text {
  font-size: 12px;
  color: #f8fafc; /* Crisp white for step text */
  line-height: 1.3;
  font-weight: 600;
}

/* Active Rentals Widget */
.rental-active-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: none;
}

.rental-active-box.has-rentals {
  display: block;
}

.rental-active-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.rental-active-title {
  font-size: 14px;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rental-active-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.rental-active-cards::-webkit-scrollbar {
  display: none;
}

.rental-active-card {
  flex: 0 0 auto;
  min-width: 235px;
  max-width: 280px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rental-active-timer {
  font-size: 11.5px;
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 1px;
}

.rental-active-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.rental-active-info {
  flex: 1;
}

.rental-active-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
}

.rental-active-timer {
  font-size: 12px;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Collections Horizontal Filter */
.rental-collections-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.rental-collections-bar::-webkit-scrollbar {
  display: none;
}

.rental-col-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rental-col-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.rental-col-chip.active {
  background: #0ea5e9;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

/* Grid of NFT Tokens (Harmonized with Catalog Grid) */
.rental-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 36px;
}

@media (min-width: 640px) {
  .rental-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 992px) {
  .rental-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1280px) {
  .rental-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

/* Premium Card Architecture (Matches Catalog) */
/* ==========================================================================
   NFT Rental Product Card (Lumina Luxury Collectible Card)
   ========================================================================== */
.rental-card {
  position: relative;
  background: var(--bg-glass, rgba(22, 26, 36, 0.75));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease, box-shadow 0.24s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  user-select: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.rental-card:hover {
  transform: translateY(-4px);
  border-color: var(--gift-glow, rgba(56, 189, 248, 0.5));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 28px -4px var(--gift-glow, rgba(14, 165, 233, 0.35));
}

.rental-card:active {
  transform: scale(0.975);
}

/* Dynamic Glare Reflection overlay on card */
.rental-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at var(--card-glare-x, 50%) var(--card-glare-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.rental-card:hover::after {
  opacity: 1;
}

/* Top Badges Row - Removed to eliminate visual noise */
.rental-card-top-badges {
  display: none !important;
}

.rental-top-badge {
  font-family: var(--font-headline, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rental-badge--instant {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.rental-badge--shield {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.rental-badge--discount {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* Card Media / Artwork Box */
.rental-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.rental-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  z-index: 2;
}

.rental-card:hover .rental-card-img {
  transform: scale(1.04);
}

/* Card Number Overlay Tag */
.card-num-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  font-family: var(--font-headline, sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 8px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-num-overlay svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Typography & Info */
.rental-card-info {
  margin-bottom: 8px;
}

.rental-card-col-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rental-card-title {
  font-family: var(--font-headline, sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rental-card-submeta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  margin-top: 3px;
  font-weight: 500;
}

.rental-submeta-dot {
  opacity: 0.45;
}

.rental-submeta-item.fragment-badge {
  color: #38bdf8;
  font-weight: 600;
}

/* High Contrast Price Row (WCAG Compliant) */
.rental-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  margin-bottom: 10px;
}

.rental-price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rental-price-val {
  font-family: var(--font-headline, sans-serif);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.01em;
}

.rental-price-unit {
  font-size: 11.5px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  font-weight: 500;
}

.rental-discount-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}

.rental-card-btn-action {
  width: 100%;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  margin-top: 8px;
  box-sizing: border-box;
}

.rental-card:hover .rental-card-btn-action {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.55);
  transform: translateY(-1px);
}

.rental-card-btn-action:active {
  transform: scale(0.97);
}

.rental-btn-arrow {
  transition: transform 0.2s ease;
}

.rental-card:hover .rental-btn-arrow {
  transform: translateX(2px);
}

/* Modal Checkout & Connect Flow */
.rental-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rental-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.rental-modal-container {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  max-width: 480px;
  width: 100%;
  padding: 0 20px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  transform: scale(0.96) translateY(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.rental-modal-backdrop.active .rental-modal-container {
  transform: scale(1) translateY(0) !important;
}

.rental-modal-container::-webkit-scrollbar {
  display: none;
}

/* Guarantee bottom navigation bar is hidden when any modal is open */
body.modal-open .ios-bottom-nav-bar,
.rental-modal-backdrop.active ~ .ios-bottom-nav-bar,
.rental-modal-backdrop.active ~ * .ios-bottom-nav-bar {
  transform: translate(-50%, calc(100% + 48px)) scale(0.92) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.rental-tab-label-short {
  display: none;
}
.rental-tab-label-full {
  display: inline;
}

@media (max-width: 640px) {
  .rental-section {
    padding: 10px 8px 85px;
  }

  /* Compact Hero Card on Mobile */
  .rental-hero-card {
    padding: 14px 12px;
    margin-bottom: 12px;
    border-radius: 16px;
  }
  .rental-hero-badge {
    font-size: 10px;
    padding: 3px 8px;
    margin-bottom: 6px;
  }
  .rental-hero-title {
    font-size: 17px;
    margin-bottom: 4px;
    line-height: 1.25;
  }
  .rental-hero-subtitle {
    font-size: 11.5px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .rental-hero-trust-bar {
    gap: 5px !important;
    margin-top: 6px !important;
  }
  .rental-hero-trust-bar span {
    font-size: 9.5px !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
  }
  .rental-steps-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-top: 10px !important;
  }
  .rental-step-item {
    padding: 6px 8px;
    gap: 6px;
    border-radius: 8px;
  }
  .rental-step-num {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .rental-step-text {
    font-size: 10.5px;
    line-height: 1.2;
  }

  /* Active Rentals Widget on Mobile */
  .rental-active-box {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  /* TON DNS Banner on Mobile */
  .rental-dns-guide-banner {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 14px;
  }
  .rental-dns-title {
    font-size: 13px;
  }
  .rental-dns-sub {
    font-size: 11px;
  }
  .rental-dns-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  /* Category Tabs on Mobile */
  .rental-category-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    margin-bottom: 10px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .rental-category-tabs::-webkit-scrollbar {
    display: none;
  }
  .rental-cat-tab {
    flex: 1;
    min-width: 0;
    padding: 7px 4px;
    font-size: 11.5px;
    gap: 4px;
    border-radius: 10px;
  }
  .rental-cat-tab svg {
    width: 13.5px;
    height: 13.5px;
    flex-shrink: 0;
  }
  .rental-cat-tab span {
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 700;
  }
  .rental-tab-label-full {
    display: inline !important;
  }
  .rental-tab-label-short {
    display: none !important;
  }

  /* Filters Ribbon */
  .ios-filters-container {
    padding-bottom: 10px !important;
  }
  .ios-chip-btn {
    padding: 6px 11px;
    font-size: 12px;
  }

  /* Tokens Grid on Mobile */
  .rental-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-bottom: 24px;
  }

  /* Product Card on Mobile */
  .rental-card {
    padding: 8px;
    border-radius: 16px;
  }
  .rental-card-img-wrap {
    border-radius: 12px;
    margin-bottom: 6px;
  }
  .rental-card-img {
    border-radius: 12px;
  }
  .card-num-overlay {
    bottom: 5px;
    right: 5px;
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 5px;
  }
  .rental-card-col-label {
    font-size: 10px;
    margin-bottom: 1px;
  }
  .rental-card-title {
    font-size: 12.5px;
    line-height: 1.25;
  }
  .rental-card-submeta {
    font-size: 10px;
    gap: 4px;
    margin-top: 2px;
  }
  .rental-card-price-row {
    padding-top: 6px;
    margin-bottom: 6px;
  }
  .rental-price-val {
    font-size: 14.5px;
  }
  .rental-price-unit {
    font-size: 10px;
  }
  .rental-discount-pill {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 4px;
  }
  .rental-card-btn-action {
    height: 34px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 10px;
    gap: 4px;
  }

  /* Anonymous Numbers & Usernames previews on Mobile */
  .rental-number-preview,
  .rental-username-preview {
    border-radius: 12px !important;
  }
  .rental-num-text {
    font-size: 13.5px !important;
  }
  .rental-num-sim-chip {
    width: 24px !important;
    height: 18px !important;
  }
  .rental-usr-name {
    font-size: 12.5px !important;
  }
  .rental-usr-at {
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
  }

  /* Modal Backdrop & Container on Mobile */
  .rental-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .rental-modal-container {
    border-radius: 28px 28px 0 0;
    max-width: 100%;
    max-height: 90vh;
    padding: 0 16px calc(40px + env(safe-area-inset-bottom, 16px));
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0;
  }
  .rental-modal-backdrop.active .rental-modal-container {
    transform: translateY(0) !important;
  }
}

.rental-similar-card {
  flex: 0 0 110px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  user-select: none;
}

.rental-similar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.08);
}

.rental-similar-card:active {
  transform: scale(0.96);
}

.rental-similar-img {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
}

.rental-similar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.rental-similar-price {
  font-size: 11.5px;
  font-weight: 800;
  color: #38bdf8;
}

.rental-duration-sub {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.rental-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.rental-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

.rental-duration-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 6px 0 8px 0;
}

.rental-duration-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.rental-duration-btn.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: #0ea5e9;
}

.rental-duration-days {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
}

.rental-duration-price {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 2px;
}

.rental-duration-tag {
  position: absolute;
  top: -7px;
  right: 6px;
  background: #10b981;
  color: #0f172a;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
}

/* Custom Duration Stepper & Slider Component */
.rental-custom-duration-box {
  background: var(--bg-glass-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px 12px;
  margin: 6px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rental-custom-duration-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rental-custom-duration-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.rental-custom-discount-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.rental-custom-discount-badge.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.rental-custom-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card, rgba(0, 0, 0, 0.25));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  padding: 2px;
  gap: 4px;
}

.rental-stepper-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  user-select: none;
  line-height: 1;
}

.rental-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #38bdf8;
}

.rental-stepper-btn:active {
  transform: scale(0.92);
}

.rental-stepper-val-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
}

.rental-stepper-input {
  width: 38px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  font-family: inherit;
  outline: none;
  -moz-appearance: textfield;
}

.rental-stepper-input::-webkit-outer-spin-button,
.rental-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rental-stepper-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.rental-custom-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rental-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.rental-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0ea5e9;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.5);
  cursor: pointer;
  transition: transform 0.15s;
}

.rental-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.rental-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0ea5e9;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.5);
  cursor: pointer;
}

.rental-slider-ticks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.rental-tick {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.15s;
}

.rental-tick:hover,
.rental-tick.active {
  color: #38bdf8;
  font-weight: 800;
}

.rental-btn-gift-friend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #ec4899;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  border-radius: 12px;
  box-sizing: border-box;
}

.rental-btn-gift-friend svg {
  color: #ec4899;
  transition: transform 0.2s ease;
}

.rental-btn-gift-friend:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.45);
  color: #f472b6;
  transform: translateY(-1px);
}

.rental-btn-gift-friend:hover svg {
  transform: scale(1.15);
}

.rental-btn-gift-friend:active {
  transform: scale(0.97);
}

[data-theme="light"] .rental-btn-gift-friend {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #db2777;
}

[data-theme="light"] .rental-btn-gift-friend svg {
  color: #db2777;
}

.rental-gift-share-card {
  background: rgba(236, 72, 153, 0.08);
  border: 1px dashed rgba(236, 72, 153, 0.4);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  text-align: left;
}

.rental-gift-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.rental-gift-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
}

.rental-gift-copy-btn {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.rental-gift-copy-btn:hover {
  background: #ec4899;
  color: #ffffff;
}

.rental-connect-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}

.rental-connect-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 8px;
  box-sizing: border-box;
}

.rental-connect-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.rental-btn-rent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.2px;
  box-sizing: border-box;
}

.rental-btn-rent:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.rental-btn-rent:active {
  transform: scale(0.98);
}

.rental-btn-rent:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rental-btn-rent.need-topup {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.rental-btn-rent.need-topup:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.rental-spinner {
  animation: rentalSpin 1s linear infinite;
}

@keyframes rentalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   THEME-AWARE FILTER MODAL & CHECKBOX STYLES
   ========================================================================== */

.filter-item-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-item-checkbox:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.25);
}

.filter-item-checkbox.selected {
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: #0ea5e9 !important;
}

.filter-item-checkbox .filter-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-item-checkbox .filter-item-sub {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  margin-top: 2px;
}

.filter-checkbox-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.filter-item-checkbox.selected .filter-checkbox-icon {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
}

/* ==========================================================================
   LIGHT MODE THEME OVERRIDES (Full Compatibility)
   ========================================================================== */

[data-theme="light"] .rental-hero-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .rental-hero-title {
  color: #0f172a;
}

[data-theme="light"] .rental-hero-subtitle {
  color: #334155;
  text-shadow: none;
}

[data-theme="light"] .rental-step-item {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .rental-step-text {
  color: #1e293b;
}

[data-theme="light"] .rental-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .rental-card:hover {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rental-card-img-wrap {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

[data-theme="light"] .rental-card-col-label {
  color: #64748b;
}

[data-theme="light"] .rental-card-title {
  color: #0f172a;
}

[data-theme="light"] .rental-card-submeta {
  color: #64748b;
}

[data-theme="light"] .rental-card-price-row {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .rental-price-val {
  color: #0f172a;
}

[data-theme="light"] .rental-price-unit {
  color: #64748b;
}

[data-theme="light"] .card-num-overlay {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rental-card-btn-action {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

[data-theme="light"] .rental-card:hover .rental-card-btn-action {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

/* Light Mode Filter Modal Items */
[data-theme="light"] .filter-item-checkbox {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .filter-item-checkbox:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
}

[data-theme="light"] .filter-item-checkbox.selected {
  background: rgba(14, 165, 233, 0.14) !important;
  border-color: #0ea5e9 !important;
}

[data-theme="light"] .filter-item-checkbox .filter-item-name {
  color: #0f172a !important;
}

[data-theme="light"] .filter-item-checkbox .filter-item-sub {
  color: #64748b !important;
}

[data-theme="light"] .filter-checkbox-icon {
  border-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .filter-item-checkbox.selected .filter-checkbox-icon {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
}

/* Light Mode Rental Checkout Modal */
[data-theme="light"] .rental-modal-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  color: #0f172a;
}

[data-theme="light"] .rental-modal-close {
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
}

[data-theme="light"] .rental-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="light"] .rental-duration-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rental-duration-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .rental-duration-btn.active {
  background: rgba(14, 165, 233, 0.1);
  border-color: #0ea5e9;
}

[data-theme="light"] .rental-duration-days {
  color: #0f172a;
}

[data-theme="light"] .rental-duration-btn.active .rental-duration-days {
  color: #0284c7;
}

[data-theme="light"] .rental-duration-price {
  color: #0284c7;
}

[data-theme="light"] .rental-connect-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(14, 165, 233, 0.4);
}

[data-theme="light"] .rental-btn-rent {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .rental-btn-rent.need-topup {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .rental-similar-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rental-similar-card:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: #0ea5e9;
}

[data-theme="light"] .rental-duration-sub {
  color: #64748b;
}

[data-theme="light"] .rental-connect-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #0f172a;
}

/* ==========================================================================
   RENTAL SUB-CATEGORY TABS (Подарки | Номера (+888) | Юзернеймы)
   ========================================================================== */

.rental-category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-glass-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

.rental-category-tabs::-webkit-scrollbar {
  display: none;
}

.rental-cat-tab {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 8px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.rental-cat-tab svg {
  width: 14.5px;
  height: 14.5px;
  flex-shrink: 0;
  stroke: currentColor;
}

.rental-cat-tab:hover {
  color: var(--text-primary, #ffffff);
  background: rgba(255, 255, 255, 0.05);
}

.rental-cat-tab.active {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

/* ==========================================================================
   SPECIALIZED ART FOR NUMBER & USERNAME CARDS
   ========================================================================== */

.rental-number-preview,
.rental-username-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(14, 165, 233, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  position: relative;
  overflow: hidden;
}

.rental-num-chip-badge,
.rental-usr-chip-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  z-index: 3;
}

.rental-num-visual,
.rental-usr-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  padding: 0 8px;
}

.rental-num-sim-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(56, 189, 248, 0.08));
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  margin-bottom: 2px;
}

.rental-num-sim-chip svg {
  width: 24px;
  height: 24px;
  stroke: #38bdf8;
}

.rental-num-text {
  font-family: var(--font-mono, monospace);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.rental-usr-at {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.45);
}

.rental-usr-name {
  font-family: var(--font-headline, sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Light Theme Overrides for Tabs, Numbers and Usernames */
[data-theme="light"] .rental-category-tabs {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rental-cat-tab {
  color: #64748b;
}

[data-theme="light"] .rental-cat-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .rental-cat-tab.active {
  background: #0ea5e9;
  color: #ffffff;
}

[data-theme="light"] .rental-active-box {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .rental-active-card {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .rental-active-name {
  color: #0f172a;
}

[data-theme="light"] .rental-active-timer {
  color: #0284c7;
}

[data-theme="light"] .rental-number-preview,
[data-theme="light"] .rental-username-preview {
  background: radial-gradient(circle at 50% 35%, #e0f2fe 0%, #f0f9ff 100%);
  border-color: rgba(14, 165, 233, 0.25);
}

[data-theme="light"] .rental-num-chip-badge,
[data-theme="light"] .rental-usr-chip-badge {
  background: #0ea5e9;
  color: #ffffff;
  border: none;
}

[data-theme="light"] .rental-num-text {
  color: #0f172a;
  text-shadow: none;
}

[data-theme="light"] .rental-usr-name {
  color: #0284c7;
}

[data-theme="light"] .rental-num-sim-chip {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.12);
}

[data-theme="light"] .rental-num-sim-chip svg {
  stroke: #0284c7;
}

[data-theme="light"] .card-num-overlay {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   TON DNS DOMAIN GUIDE BANNER & MODAL
   ========================================================================== */

.rental-dns-guide-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rental-dns-guide-banner:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.15));
  transform: translateY(-1px);
}

.rental-dns-guide-content {
  min-width: 0;
  flex: 1;
}

.rental-dns-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  margin-bottom: 4px;
}

.rental-dns-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  line-height: 1.3;
  margin-bottom: 3px;
}

.rental-dns-sub {
  font-size: 12.5px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.35;
}

.rental-dns-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rental-dns-btn:hover {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
}

/* Step 3 Hint Box */
.rental-dns-step3-hint {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  transition: all 0.2s ease;
}

.rental-dns-step3-hint:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.16);
}

/* DNS Guide Modal Specifics */
.dns-guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.dns-guide-step-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.dns-guide-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.dns-guide-step-body {
  flex: 1;
  min-width: 0;
}

.dns-guide-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 3px;
  line-height: 1.3;
}

.dns-guide-step-desc {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
}

.dns-guide-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.dns-guide-alert-text {
  font-size: 12px;
  color: #fbbf24;
  line-height: 1.45;
  font-weight: 600;
}

/* Light Theme Overrides */
[data-theme="light"] .rental-dns-guide-banner {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: rgba(14, 165, 233, 0.3);
}

[data-theme="light"] .rental-dns-guide-banner:hover {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

[data-theme="light"] .rental-dns-title {
  color: #0f172a;
}

[data-theme="light"] .rental-dns-sub {
  color: #475569;
}

[data-theme="light"] .rental-dns-btn {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
}

[data-theme="light"] .dns-guide-step-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dns-guide-step-title {
  color: #0f172a;
}

[data-theme="light"] .dns-guide-step-desc {
  color: #475569;
}

[data-theme="light"] .dns-guide-alert {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="light"] .dns-guide-alert-text {
  color: #b45309;
}

[data-theme="light"] .rental-dns-step3-hint {
  background: #f0f9ff;
  border-color: rgba(14, 165, 233, 0.3);
  color: #0f172a;
}

[data-theme="light"] .rental-connect-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rental-connect-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="light"] .rental-gift-share-card {
  background: #fdf2f8;
  border-color: rgba(236, 72, 153, 0.25);
}

[data-theme="light"] .rental-gift-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="light"] .rental-modal-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .rental-duration-btn {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rental-duration-btn.active {
  background: #f0f9ff;
  border-color: #0284c7;
}

[data-theme="light"] .rental-duration-days {
  color: #0f172a;
}

[data-theme="light"] .rental-duration-price {
  color: #0284c7;
}

[data-theme="light"] .rental-custom-duration-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rental-custom-duration-label {
  color: #0f172a;
}

[data-theme="light"] .rental-stepper-input {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .rental-stepper-btn {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .rental-tick {
  color: #64748b;
}

[data-theme="light"] .rental-tick.active,
[data-theme="light"] .rental-tick:hover {
  color: #0284c7;
}

[data-theme="light"] .rental-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .rental-card-title {
  color: #0f172a;
}

[data-theme="light"] .rental-card-col-label {
  color: #64748b;
}

[data-theme="light"] .rental-price-val {
  color: #0f172a;
}

[data-theme="light"] .rental-badge--instant {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .rental-badge--shield {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.3);
}

[data-theme="light"] .rental-active-box {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .rental-active-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .rental-active-name {
  color: #0f172a;
}

[data-theme="light"] .rental-active-timer {
  color: #0284c7;
}

/* =========================================================================
   1-CLICK RENTAL EXTENSION UI & DURATION SELECTOR
   ========================================================================= */
.btn-rental-extend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-rental-extend:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  transform: translateY(-1px);
}
.btn-rental-extend:active {
  transform: scale(0.96);
}

.extend-term-card {
  position: relative;
  background: var(--bg-glass-subtle, rgba(255, 255, 255, 0.04));
  border: 1.5px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.extend-term-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.06);
}
.extend-term-card.active {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}
.extend-term-card.featured {
  border-color: rgba(16, 185, 129, 0.35);
}
.extend-term-card .term-days {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.extend-term-card .term-rate {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
}
.extend-term-card.active .term-rate {
  color: #10b981;
}
.term-discount-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.term-discount-badge.best {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="light"] .btn-rental-extend {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="light"] .extend-term-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .extend-term-card .term-days {
  color: #0f172a;
}
[data-theme="light"] .extend-term-card.active {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: #059669 !important;
}

/* Premium Attribute Cards in Rental Checkout Modal */
.attrs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.attr-card {
  background: var(--bg-glass-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.attr-card-k {
  font-size: 10px;
  color: var(--text-tertiary, #94a3b8);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.attr-card-v {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.attr-card-r {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  margin-top: 1px;
}

/* Light Mode Overrides for Premium Modal Text */
[data-theme="light"] .attr-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .attr-card-k {
  color: #64748b;
}

[data-theme="light"] .attr-card-v {
  color: #0f172a;
}

[data-theme="light"] .sheet-title {
  color: #0f172a !important;
}

[data-theme="light"] .sheet-subtitle {
  color: #64748b !important;
}

[data-theme="light"] #rentalModalDailyRate {
  color: #007aff !important;
}

[data-theme="light"] #rentalModalTotalPrice {
  color: #0f172a !important;
}

[data-theme="light"] #rentalModalUserBal {
  color: #10b981 !important;
}


