/* v0.70 – Premium Client Portal UI */

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(212,175,55,0.14), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(255,255,255,0.06), transparent 28%),
    #070707 !important;
}

/* Remove old duplicate/floating logout that overlaps logo */
.cv-client-logout-fixed {
  display: none !important;
}

/* Hide obvious old demo controls */
button,
a {
  transition: all .18s ease;
}

body .cv-premium-client-hidden {
  display: none !important;
}

/* Premium shell injected by JS */
.cv-client-premium-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 22px;
  border: 1px solid rgba(212,175,55,0.22);
  background:
    radial-gradient(circle at 8% 0%, rgba(212,175,55,0.11), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.48);
  backdrop-filter: blur(18px);
  color: #f5f1e8;
}

.cv-client-premium-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.cv-client-premium-brand {
  display: grid;
  gap: 6px;
}

.cv-client-premium-kicker {
  color: #f2d675;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 950;
}

.cv-client-premium-title {
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 0;
  font-weight: 950;
}

.cv-client-premium-subtitle {
  color: rgba(245,241,232,.65);
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
  font-size: 14px;
}

.cv-client-premium-userbox {
  display: grid;
  justify-items: end;
  gap: 9px;
  min-width: 240px;
}

.cv-client-premium-badge {
  border: 1px solid rgba(212,175,55,0.32);
  background: rgba(212,175,55,0.08);
  color: #f2d675;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 950;
  max-width: 320px;
  overflow-wrap: anywhere;
}

.cv-client-premium-logout {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.065);
  color: rgba(245,241,232,.88);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.cv-client-premium-logout:hover {
  border-color: rgba(212,175,55,0.40);
  background: rgba(212,175,55,0.10);
  color: #f2d675;
}

.cv-client-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}

.cv-client-premium-card {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.24);
  border-radius: 18px;
  padding: 16px;
}

.cv-client-premium-card span {
  display: block;
  color: rgba(242,214,117,.85);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 950;
  margin-bottom: 8px;
}

.cv-client-premium-card strong {
  color: #f5f1e8;
  font-size: 15px;
}

.cv-client-premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cv-client-premium-action {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(245,241,232,.86);
  border-radius: 999px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
}

.cv-client-premium-action.gold {
  border-color: rgba(212,175,55,0.42);
  background: linear-gradient(135deg,#d4af37,#8f6f16);
  color: #080808;
}

/* Improve old portal cards without breaking structure */
main,
section,
article {
  scroll-margin-top: 20px;
}

body > header,
body > nav,
body > main > section,
body main section,
body main article {
  border-color: rgba(212,175,55,0.22) !important;
}

/* Old page cleanup: remove demo/review buttons by visual text via JS, CSS supports hidden class */
.cv-client-clean-card {
  border-radius: 24px !important;
}

/* Keep secure messages button clean */
.cv-client-msg-open {
  left: 18px !important;
  right: auto !important;
  bottom: 18px !important;
  z-index: 9997 !important;
}

/* Old content spacing after new shell */
.cv-client-premium-shell + * {
  margin-top: 18px !important;
}

@media(max-width: 900px) {
  .cv-client-premium-top {
    display: grid;
  }

  .cv-client-premium-userbox {
    justify-items: start;
    min-width: 0;
  }

  .cv-client-premium-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media(max-width: 620px) {
  .cv-client-premium-shell {
    width: calc(100% - 18px);
    margin-top: 14px;
    border-radius: 20px;
    padding: 17px;
  }

  .cv-client-premium-grid {
    grid-template-columns: 1fr;
  }

  .cv-client-premium-title {
    font-size: 36px;
  }

  .cv-client-msg-open {
    left: 12px !important;
    bottom: 12px !important;
  }
}
