/* =====================================================
   CLEAR NOTE — Dark Profile Pages
   Used by personal profile & business profile pages.
   Preserves the TikTok-style dark profile design.
   ===================================================== */

/* Dark profile body */
body.cn-dark-profile {
  background:
    radial-gradient(circle at top left, rgba(184, 156, 94, 0.08), transparent 30%),
    linear-gradient(135deg, #020202 0%, #060606 45%, #010101 100%);
  color: #f2ead8;
  font-family: var(--cn-font);
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Hide light-theme mobile bottom nav on dark profiles */
body.cn-dark-profile .cn-bottomnav {
  display: none;
}

/* Profile header (TikTok style) */
.cn-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

/* Section spacing for a more polished profile flow. */
body.cn-dark-profile main section + section,
body.cn-dark-profile main .cn-glass + .cn-glass,
body.cn-dark-profile main .cn-glass + div,
body.cn-dark-profile main .cn-glass + section {
  margin-top: 1rem;
}

.cn-profile-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.cn-profile-section-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(5,5,5,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  box-shadow: 0 24px 56px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.cn-profile-section-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 30px 64px rgba(0,0,0,0.54), inset 0 1px 0 rgba(255,255,255,0.05);
  border-color: rgba(184, 156, 94, 0.22);
}

.cn-section-subtitle {
  font-size: 0.76rem;
  color: var(--cn-gray-500);
  margin-top: 0.15rem;
  line-height: 1.45;
}

.cn-profile-info-pill {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(8,8,8,0.88);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cn-profile-info-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 156, 94, 0.2);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}

.cn-profile-why-list {
  display: grid;
  gap: 0.75rem;
}

.cn-profile-why-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cn-profile-why-item:last-child {
  border-bottom: 0;
}

.cn-profile-why-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 156, 94, 0.16);
  color: #caa96a;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.cn-profile-accordion-item {
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(8,8,8,0.9);
  border-radius: 0.95rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cn-profile-accordion-item:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 156, 94, 0.2);
  box-shadow: 0 16px 34px rgba(0,0,0,0.3);
}

.cn-profile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.cn-profile-accordion-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(184, 156, 94, 0.16);
  color: #caa96a;
  font-size: 1rem;
  font-weight: 700;
}

.cn-profile-accordion-panel {
  padding: 0 1rem 1rem;
}

.cn-dark-profile .cn-btn-primary {
  background: linear-gradient(135deg, #d8b978 0%, #b08d45 100%);
  color: #111;
  border: 1px solid rgba(255, 240, 205, 0.28);
  box-shadow: 0 10px 24px rgba(184, 156, 94, 0.22);
}

.cn-dark-profile .cn-btn-dark {
  background: rgba(10, 10, 10, 0.95);
  color: #f5ebd9;
  border: 1px solid rgba(184, 156, 94, 0.24);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

/* Profile content container with a wider, more spacious feel. */
.cn-profile-shell {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body.cn-dark-profile main {
  padding-bottom: 2rem;
  padding-left: 0;
  padding-right: 0;
}

/* Optional wider variant for business profiles where more content is displayed. */
.cn-profile-shell--wide {
  max-width: 48rem;
}

/* Catalog section can widen independently without changing the overall profile column. */
.cn-catalog-bleed {
  margin-left: calc(-1 * 1rem);
  margin-right: calc(-1 * 1rem);
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Keep the catalog track aligned with the card width so the carousel feels more consistent. */
.cn-catalog-bleed .cn-catalog-wrapper {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.cn-catalog-bleed .cn-catalog-track {
  padding-right: 0;
}

/* Smaller, cleaner star ratings for profile cards and review lists. */
body.cn-dark-profile .cn-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  line-height: 1;
}
body.cn-dark-profile .cn-stars .cn-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8rem;
  height: 0.8rem;
}
body.cn-dark-profile .cn-stars .cn-star svg {
  width: 100%;
  height: 100%;
}

/* Name row with verified badge inline */
.cn-name-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.cn-profile-name {
  font-size: 1.095rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

@media (min-width: 1024px) {
  .cn-profile-name { font-size: 1.5rem; }
}

/* Avatar ring */
.cn-avatar-ring {
  padding: 2px;
  background: linear-gradient(135deg, #d8b978, #8b6b2f 55%, #f4e4b8);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 10px 28px rgba(184, 156, 94, 0.24);
}
.cn-avatar-ring img {
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

/* Social icon circular buttons */
.cn-social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #111;
  border: 1px solid #222;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cn-gray-400);
  transition: all 0.25s ease;
}
.cn-social-icon:hover {
  background: rgba(184, 156, 94, 0.16);
  border-color: rgba(184, 156, 94, 0.32);
  transform: translateY(-2px);
  color: #d7b977;
}
.cn-social-icon svg { width: 1rem; height: 1rem; }

/* Link pill */
.cn-link-pill {
  display: block;
  background: #0f0f0f;
  border: 1px solid #1a1a1a;
  font-size: 0.875rem;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
}
.cn-link-pill:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(184, 156, 94, 0.3);
}

.cn-connect-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.cn-connect-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--cn-gray-300);
  text-decoration: none;
  transition: all 0.2s ease;
}
.cn-connect-pill i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: inherit;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.cn-connect-pill:hover {
  background: rgba(184, 156, 94, 0.15);
  border-color: rgba(184, 156, 94, 0.32);
  color: #d9b774;
  transform: translateY(-1px);
}

/* Side alert (luxury accent) */
.cn-side-alert {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 60px;
  background: linear-gradient(180deg, transparent, #caa96a, transparent);
  border-radius: 4px 0 0 4px;
  box-shadow: 0 0 20px rgba(202, 169, 106, 0.28);
  animation: cn-pulse 2.5s infinite;
  z-index: 100;
}
.cn-side-alert-link {
  position: fixed;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.85rem;
  border-radius: 999px 0 0 999px;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(184, 156, 94, 0.28);
  color: #f8ebd2;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.28);
  z-index: 101;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cn-side-alert-link.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.cn-side-alert-link:hover {
  background: rgba(184, 156, 94, 0.14);
  color: #d8b978;
  border-color: rgba(184, 156, 94, 0.34);
}

/* Catalog auto-scroll with a more immersive edge-to-edge feel. */
.cn-catalog-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(-1 * clamp(0.75rem, 2.8vw, 1.25rem));
  padding-inline: clamp(0.75rem, 2.8vw, 1.25rem);
  padding-bottom: 0.25rem;
}

/* Stronger catalog heading treatment for better visual hierarchy. */
.cn-catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cn-catalog-heading h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cn-catalog-heading span {
  font-size: 0.72rem;
  color: var(--cn-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cn-catalog-wrapper::-webkit-scrollbar { display: none; }
.cn-catalog-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding-right: clamp(0.75rem, 2.8vw, 1.25rem);
  animation: cn-scroll 30s linear infinite;
}
.cn-catalog-track:hover { animation-play-state: paused; }
.cn-catalog-item {
  scroll-snap-align: start;
  flex: 0 0 min(82vw, 18rem);
}

/* Product card */
.cn-product-card {
  background: rgba(12, 12, 12, 0.86);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.cn-product-card:hover {
  border-color: rgba(184, 156, 94, 0.32);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.cn-product-card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

/* Review card (dark) */
.cn-review-card {
  background: var(--cn-near-black);
  border: 1px solid var(--cn-border);
}

/* Glass card */
.cn-glass {
  background: rgba(6, 6, 6, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 14px 34px rgba(0,0,0,0.36);
}
.cn-glass-sm { border-radius: 0.75rem; }

/* Primary button (luxury bronze) for dark profiles */
.cn-dark-profile .cn-btn-primary {
  background: linear-gradient(135deg, #d8b978 0%, #a57f35 100%);
  color: #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cn-dark-profile .cn-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(184, 156, 94, 0.16);
}
.cn-dark-profile .cn-btn-dark {
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
}
.cn-dark-profile .cn-btn-dark:hover { border-color: rgba(184, 156, 94, 0.28); }

/* Floating WhatsApp button */
.cn-whatsapp-float {
  position: fixed;
  bottom: 76px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #d8b978 0%, #a57f35 100%);
  color: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.2s;
}
.cn-whatsapp-float:hover { transform: scale(1.08); background: linear-gradient(135deg, #e8c988 0%, #b6843a 100%); }
.cn-whatsapp-float i { font-size: 1.5rem; }
@media (min-width: 768px) { .cn-whatsapp-float { bottom: 20px; right: 20px; } }

/* Profile type cards on the public Profiles landing page. */
.cn-profile-type-card { padding:1.5rem; border:1px solid var(--cn-border); border-radius:1rem; }
.cn-profile-type-title { font-weight:700; font-size:1.25rem; color:var(--cn-white); }
.cn-profile-type-sub { color:var(--cn-gray-400); font-size:.875rem; margin-top:.5rem; }
.cn-profile-type-list { margin-top:1rem; display:flex; flex-direction:column; gap:.5rem; font-size:.875rem; }
