:root {
  --cc-primary: #151880;
  --cc-primary-mid: #1A228F;
  --cc-primary-deep: #2434A8;
  --cc-accent: #3D4FBF;
  --cc-gold: #FFD700;
  --cc-surface: #F4F5FA;
  --cc-surface-2: #EEF0F8;
  --cc-text: #111111;
  --cc-text-secondary: #6B6B8A;
  --cc-white: #ffffff;
  --cc-border: rgba(21, 24, 128, 0.08);
  --cc-shadow: 0 4px 16px rgba(21, 24, 128, 0.06);
  --cc-shadow-lg: 0 8px 28px rgba(21, 24, 128, 0.10);
  --cc-radius: 18px;
  --cc-radius-sm: 14px;
  --cc-gradient: linear-gradient(135deg, #151880 0%, #1A228F 50%, #2434A8 100%);
  --cc-shell: 1340px;
  --cc-gutter: 16px;
  --badge-grade-bg: #EEF4FF;
  --badge-grade-text: #151880;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cc-surface);
  color: var(--cc-text);
  -webkit-font-smoothing: antialiased;
}

.site-header { position: sticky; top: 0; z-index: 100; }

.header-bar {
  background: var(--cc-gradient);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.header-container {
  position: relative;
  max-width: var(--cc-shell);
  margin: 0 auto;
  padding: 14px var(--cc-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

body {
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  margin: 0 auto;
}

.brand-logo {
  height: 64px;
  width: auto;
  max-width: min(340px, 72vw);
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.search-panel {
  margin: 0 0 12px;
}

.search-input {
  width: 100%;
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  padding: 16px 18px;
  min-height: 54px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--cc-text);
  outline: none;
  box-shadow: var(--cc-shadow);
  transition: box-shadow .2s, border-color .2s;
}

.search-input:focus {
  border-color: rgba(21, 24, 128, 0.28);
  box-shadow: 0 0 0 3px rgba(21, 24, 128, 0.10);
}

.btn-main-site { display: none; }

.main-wrap {
  max-width: var(--cc-shell);
  margin: 0 auto;
  padding: 12px var(--cc-gutter) 48px;
}

/* Курсы как на coin-club.ru */
.cc-rates {
  max-width: 100%;
  margin: 4px 0 14px;
  padding: 0;
}

.cc-rates__inner {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--cc-shadow);
}

.cc-rates__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: var(--cc-surface);
  min-width: 0;
  transition: transform .15s ease, background .15s ease;
}

.cc-rates__item:hover {
  background: #E8ECFF;
  transform: translateY(-1px);
}

.cc-rates__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--cc-text-secondary);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.cc-rates__value {
  font-size: 14px;
  font-weight: 800;
  color: var(--cc-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-rates__change {
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 14px;
}

.cc-rates__change.is-up { color: #1B8A4A; }
.cc-rates__change.is-down { color: #C62828; }
.cc-rates__change.is-flat { color: var(--cc-text-secondary); font-weight: 600; }

.cc-rates.is-loading .cc-rates__value { color: var(--cc-text-secondary); opacity: 0.55; }
.cc-rates.is-loading .cc-rates__change { opacity: 0; }

.ad-banner-wide {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: var(--cc-radius-sm);
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--cc-shadow);
}

.ad-banner-link {
  display: block;
  line-height: 0;
}

.ad-banner-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--cc-radius-sm);
}

.ad-banner-wide > .ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  margin: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.ad-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cc-text-secondary);
  background: var(--cc-surface);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.ad-cta {
  background: var(--cc-primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  color: var(--cc-text);
  padding: 7px 14px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.tab.active {
  background: var(--cc-primary);
  color: #fff;
  border-color: var(--cc-primary);
}

.select-box {
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--cc-text);
  outline: none;
}

.lots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.lot-card {
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--cc-shadow);
}

.lot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-lg);
}

.lot-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.lot-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cc-surface-2);
  overflow: hidden;
}

.lot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lot-media-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.badge-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(21, 24, 128, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}

.badge-photos {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(21, 24, 128, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

.lot-content {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lot-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--cc-primary);
  margin-bottom: 4px;
}

.lot-grade {
  display: inline-block;
  background: var(--badge-grade-bg);
  color: var(--badge-grade-text);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lot-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--cc-text);
  line-height: 1.35;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--cc-text-secondary);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--cc-primary);
  text-decoration: none;
  font-weight: 600;
}

.item-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--cc-shadow);
}

.item-gallery {
  background: #E8ECF8;
  border-radius: 16px;
  overflow: hidden;
}

.item-gallery-stage {
  min-height: 360px;
}

.item-main-photo {
  cursor: zoom-in;
}

.item-info {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 8px 4px;
}

.item-category {
  font-size: 13px;
  color: var(--cc-text-secondary);
  margin: 0 0 10px;
}

.item-back {
  margin-top: 16px;
  font-size: 13px;
}

.item-back a {
  color: var(--cc-primary);
  font-weight: 600;
  text-decoration: none;
}


.lot-footer {
  font-size: 11px;
  color: var(--cc-text-secondary);
  border-top: 1px solid #EEF0F8;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-grid-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F5FF 100%);
  border: 1px dashed #A8B6F0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.ad-grid-card h4 {
  font-size: 14px;
  margin: 8px 0 6px;
  line-height: 1.3;
  color: var(--cc-primary);
}

.ad-grid-card p {
  font-size: 12px;
  color: var(--cc-text-secondary);
  margin-bottom: 12px;
}

.grid-status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--cc-text-secondary);
  font-size: 14px;
}

.grid-status.error { color: #C62828; }

.load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.btn-load-more {
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  color: var(--cc-primary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
}

.btn-load-more:disabled { opacity: 0.5; cursor: default; }

/* Модалка / галерея */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 48, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 12px;
}

.modal-overlay.active { display: flex; }

.modal-card {
  background: var(--cc-white);
  border-radius: 20px;
  max-width: 980px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  position: relative;
  box-shadow: 0 24px 64px rgba(21, 24, 128, 0.28);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(21, 24, 128, 0.08);
  color: var(--cc-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.modal-gallery {
  background: #E8ECF8;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.gallery-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 48px 16px;
  min-height: 320px;
  user-select: none;
  touch-action: pan-y;
}

.modal-photo {
  max-width: 100%;
  max-height: 52vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 24, 128, 0.12);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.modal-photo.zoom {
  transform: scale(1.45);
  cursor: zoom-out;
  z-index: 2;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cc-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21, 24, 128, 0.15);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(21, 24, 128, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
  padding: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active {
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 2px rgba(21, 24, 128, 0.18);
}

.gallery-thumbs:empty,
.gallery-nav.is-hidden,
.gallery-counter.is-hidden,
.gallery-loading.is-hidden {
  display: none;
}

.gallery-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 236, 248, 0.72);
  color: var(--cc-primary);
  font-size: 13px;
  font-weight: 700;
  z-index: 4;
}

.modal-right {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--cc-primary);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.modal-right .lot-grade { margin-bottom: 10px; }

.modal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.modal-desc {
  font-size: 14px;
  color: #2C353D;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
  white-space: pre-wrap;
}

.modal-meta-box {
  background: var(--cc-surface);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--cc-text-secondary);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.btn-go-portal {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--cc-gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  transition: filter 0.2s, transform 0.15s;
}

.btn-go-portal:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.modal-note {
  text-align: center;
  font-size: 11px;
  color: var(--cc-text-secondary);
  margin-top: 8px;
}

.site-footer {
  max-width: var(--cc-shell);
  margin: 0 auto;
  padding: 0 var(--cc-gutter) 32px;
  font-size: 12px;
  color: var(--cc-text-secondary);
  text-align: center;
}

.site-footer a {
  color: var(--cc-primary);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .cc-rates__inner { grid-template-columns: repeat(5, minmax(110px, 1fr)); }
  .lots-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .cc-rates { margin: 8px 0 12px; }
  .cc-rates__inner {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 8px;
    scrollbar-width: none;
  }
  .cc-rates__inner::-webkit-scrollbar { display: none; }
  .cc-rates__item { flex: 0 0 112px; }

  .lots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .header-container { min-height: 60px; padding: 10px var(--cc-gutter); }
  .brand-logo { height: 48px; max-width: min(260px, 58vw); }
  .btn-main-site { width: 40px; height: 40px; }
  .search-panel { margin-bottom: 10px; }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }

  .gallery-stage {
    min-height: 260px;
    padding: 20px 44px 14px;
  }

  .modal-photo { max-height: 42vh; }
  .modal-right { padding: 18px 16px 20px; }

  .item-layout {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .item-gallery-stage {
    min-height: 280px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .lots-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Кнопка наверх */
.btn-to-top {
  position: fixed;
  right: 16px;
  bottom: 22px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--cc-gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(21, 24, 128, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}

.btn-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Полноэкранный просмотр фото */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 8, 28, 0.96);
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  touch-action: none;
}

.lightbox.active {
  display: flex;
}

.lightbox-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-nav.is-hidden,
.lightbox-counter.is-hidden {
  display: none;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: max(56px, calc(env(safe-area-inset-bottom) + 48px));
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.lightbox-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 5;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  padding: 0 16px;
  pointer-events: none;
}

/* ——— View modes / social / bottom nav ——— */
.sub-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.view-toggle__btn {
  width: 38px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--cc-muted, #6B6B8A);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-toggle__btn.is-on {
  background: var(--cc-primary);
  color: #fff;
}

.lots-grid.is-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.lots-grid.is-list .lot-card {
  flex-direction: row;
  min-height: 120px;
}

.lots-grid.is-list .lot-card-link {
  flex-direction: row;
  align-items: stretch;
}

.lots-grid.is-list .lot-media {
  width: 132px;
  min-width: 132px;
  aspect-ratio: auto;
  height: auto;
  align-self: stretch;
}

.lots-grid.is-list .lot-content {
  flex: 1;
  padding: 12px 14px;
}

.lot-card {
  position: relative;
}

.btn-like {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #6B6B8A;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-like.is-on {
  color: #c62828;
}

.btn-like__heart { font-size: 13px; line-height: 1; }

.modal-like {
  position: static;
  margin: 0 0 12px;
  width: fit-content;
}

.period-subscribe-card {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--cc-shadow);
}

.period-subscribe-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--cc-primary);
  margin-bottom: 4px;
}

.period-subscribe-card__lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--cc-text-secondary);
  line-height: 1.45;
}

.period-subscribe-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.period-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--cc-text-secondary);
  min-width: 180px;
  flex: 1 1 180px;
}

.period-field em { color: #c62828; font-style: normal; }

.period-email,
.period-field .select-box {
  width: 100%;
  min-height: 40px;
}

.btn-subscribe {
  background: var(--cc-primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
}

.period-subscribe-msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.period-subscribe-msg.is-ok { color: #1b7a3d; }
.period-subscribe-msg.is-err { color: #c62828; }

.app-view[hidden] { display: none !important; }

.view-heading {
  margin: 4px 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--cc-primary);
}

.view-subheading {
  margin: 6px 0 10px;
  font-size: 16px;
  font-weight: 750;
  color: var(--cc-text);
}

.view-lead {
  margin: 0 0 14px;
  color: var(--cc-text-secondary);
  font-size: 14px;
}

.subs-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.subs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subs-item {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  box-shadow: var(--cc-shadow);
}

.subs-item__title { font-weight: 750; font-size: 14px; }
.subs-item__meta { font-size: 12px; color: var(--cc-text-secondary); margin-top: 2px; }

.btn-unsub {
  border: 1px solid var(--cc-border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #c62828;
}

.floating-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  pointer-events: none;
}

.floating-menu-box {
  pointer-events: auto;
  background: #fff;
  border-top: 1px solid rgba(21, 24, 128, 0.1);
  border-radius: 18px 18px 0 0;
  height: 64px;
  padding: 0 6px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -1px 0 rgba(21, 24, 128, 0.06);
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.floating-menu-box > a {
  color: #5C6078;
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none;
  border-radius: 14px;
  padding: 6px 2px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.floating-menu-box > a.is-active,
.floating-menu-box > a:hover {
  color: var(--cc-primary);
  background: rgba(21, 24, 128, 0.06);
}

.floating-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.floating-menu-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.floating-menu-icon-title {
  display: block;
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
  color: #6B6F86;
  line-height: 1.1;
}

.floating-menu-box > a.is-active .floating-menu-icon-title,
.floating-menu-box > a:hover .floating-menu-icon-title {
  color: var(--cc-primary);
  font-weight: 700;
}

.floating-menu-home {
  color: #fff !important;
  background: transparent !important;
}

.floating-menu-home .floating-menu-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  background: var(--cc-gradient, linear-gradient(135deg, #151880, #1E2A9F));
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(21, 24, 128, 0.28);
}

.floating-menu-home .floating-menu-icon svg {
  width: 22px !important;
  height: 22px !important;
  color: #fff !important;
}

.floating-menu-home .floating-menu-icon-title {
  display: none !important;
}

.floating-menu-home.is-active,
.floating-menu-home:hover {
  background: transparent !important;
  color: #fff !important;
}

.btn-to-top {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 768px) {
  .period-subscribe-card__row { flex-direction: column; align-items: stretch; }
  .btn-subscribe { width: 100%; }
  .lots-grid.is-list .lot-media { width: 108px; min-width: 108px; }
}
