/* nowake.ir: the account's picture and its purchases (nw-profile.js).
   Colours from the site's own theme variables (--raw-*), light and dark. */

/* the picture over a letter circle */
.nwp-av-host {
  position: relative;
  overflow: hidden;
}
.nwp-av {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}
.nwp-av.nwp-round {
  border-radius: 50%;
}

/* "Purchases & plans" under the profile */
.nwp-buys {
  box-sizing: border-box;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--raw-ink, #fff) 8%, transparent);
  background: color-mix(in srgb, var(--raw-surface, #0e0e16) 70%, transparent);
  color: var(--raw-ink, #fff);
}
.nwp-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.nwp-sub {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--raw-ink, #fff) 50%, transparent);
}
.nwp-plan {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--raw-ink, #fff) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--raw-ink, #fff) 8%, transparent);
}
.nwp-plan.nwp-on {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(37, 99, 235, 0.12));
  border-color: rgba(56, 189, 248, 0.45);
}
.nwp-plan-label {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--raw-ink, #fff) 55%, transparent);
}
.nwp-plan-name {
  font-size: 1.1rem;
  font-weight: 800;
}
.nwp-plan.nwp-on .nwp-plan-name {
  color: #38bdf8;
}
.nwp-plan-until {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--raw-ink, #fff) 55%, transparent);
}
.nwp-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nwp-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--raw-ink, #fff) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--raw-ink, #fff) 6%, transparent);
}
.nwp-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}
.nwp-dot.nwp-off {
  background: color-mix(in srgb, var(--raw-ink, #fff) 30%, transparent);
  box-shadow: none;
}
.nwp-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.nwp-row-main b {
  font-size: 0.9rem;
  font-weight: 700;
}
.nwp-row-main small {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--raw-ink, #fff) 55%, transparent);
}
.nwp-date {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--raw-ink, #fff) 50%, transparent);
}
.nwp-none,
.nwp-error {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--raw-ink, #fff) 55%, transparent);
}
.nwp-error {
  color: #f87171;
}
.nwp-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}
.nwp-btn.nwp-soft {
  color: var(--raw-ink, #fff);
  background: color-mix(in srgb, var(--raw-ink, #fff) 6%, transparent);
  box-shadow: none;
}
.nwp-wait {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 0;
}
.nwp-wait i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--raw-ink, #fff) 40%, transparent);
  animation: nwp-wait 1s ease-in-out infinite;
}
.nwp-wait i:nth-child(2) { animation-delay: 0.15s; }
.nwp-wait i:nth-child(3) { animation-delay: 0.3s; }
@keyframes nwp-wait {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
