/* OTV coins (nova-coins.js): the wallet and the "În curând" window, from
   otv.today's DesktopSidebar.tsx. */
.sidebar-wallet { padding: 0 0 8px; }
/* The phone menu lays its footer out in two columns; the wallet takes the whole row. */
.sidebar-footer .sidebar-wallet { grid-column: 1 / -1; }
@media (max-width: 768px) { .sidebar-wallet { padding: 0; } }
.ncoin-wallet {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 11px; border: 1px solid var(--border-light); border-radius: 16px;
  background: var(--bg-hover);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: filter .2s;
}
.ncoin-wallet:hover { filter: brightness(1.1); }
.ncoin-wallet-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%); color: #000; }
.ncoin-toast-icon { display: inline-grid; width: 26px; height: 26px; margin-inline-end: 10px; vertical-align: middle; font-size: 14px; }
.ncoin-wallet-text { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.ncoin-wallet-text small { color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 600; }
.ncoin-wallet-text b { overflow: hidden; color: var(--otv-gold-text); font-size: var(--fs-md); text-overflow: ellipsis; white-space: nowrap; }
.ncoin-wallet-plus { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--border-light); border-radius: 50%; color: var(--text-primary); font-size: var(--fs-xs); }
html.dark .ncoin-wallet-plus { border: 0; background: rgba(250, 204, 21, .2); color: var(--otv-gold-text); }
html.dark .ncoin-wallet { border-color: rgba(250, 204, 21, .25); background: linear-gradient(135deg, rgba(250, 204, 21, .15) 0%, rgba(245, 158, 11, .08) 100%); }

/* Own profile: the balance chip beside "Editează profilul" */
.ncoin-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 999px; background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #111827; font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; white-space: nowrap;
}

/* Phones: no room beside "Editează profilul", so the balance joins the details row. */
.ncoin-meta { display: none; padding: 0; border: 0; background: none; color: var(--otv-gold-text); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 768px) {
  .community-profile-actions .ncoin-chip { display: none; }
  .ncoin-meta { display: inline-flex; align-items: center; gap: 4px; }
}

/* The window */
.ncoin-modal { position: fixed; inset: 0; z-index: 10060; display: grid; place-items: center; padding: 16px; }
.ncoin-scrim { position: absolute; inset: 0; background: var(--window-scrim); -webkit-backdrop-filter: var(--window-scrim-filter); backdrop-filter: var(--window-scrim-filter); }
.ncoin-card {
  position: relative; width: 100%; max-width: 24rem; padding: 24px;
  border: 1px solid rgba(250, 204, 21, .25); border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, .18), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, .14), transparent 60%),
    var(--window-glass);
  -webkit-backdrop-filter: var(--window-glass-filter); backdrop-filter: var(--window-glass-filter);
  box-shadow: var(--shadow-xl); color: var(--text-primary);
  animation: ncoin-pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
.ncoin-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-hover); color: var(--text-primary); cursor: pointer; }
.ncoin-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 36px; }
.ncoin-badge { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; background: linear-gradient(135deg, #fde047, #fde68a 50%, #fed7aa); color: #000; font-size: var(--fs-lg); box-shadow: var(--shadow-lg, 0 8px 20px rgba(0,0,0,.2)); }
.ncoin-card header small { color: var(--otv-gold-text); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ncoin-card h2 { margin: 0; font-size: var(--fs-xl); font-weight: 700; }
.ncoin-balance { margin: 0 0 12px; color: var(--text-secondary); font-size: var(--fs-sm); }
.ncoin-balance b { color: var(--otv-gold-text); }
.ncoin-earn { padding: 14px 16px; border: 1px solid rgba(234, 179, 8, .2); border-radius: 12px; background: linear-gradient(90deg, rgba(234, 179, 8, .1), rgba(249, 115, 22, .1)); }
.ncoin-earn p { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 600; }
.ncoin-earn ul { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.8; }
.ncoin-note { margin: 14px 0 18px; color: var(--text-secondary); font-size: var(--fs-sm); text-align: center; }
.ncoin-cta { display: block; margin: 0 auto; padding: 10px 18px; border: 0; border-radius: 12px; background: linear-gradient(90deg, #facc15, #fbbf24, #fb923c); box-shadow: 0 8px 20px rgba(250, 204, 21, .3); color: #000; font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
@keyframes ncoin-pop { from { opacity: 0; transform: scale(.85); } }

/* The balance, first in the sidebar account menu; it opens "Monedele tale". */
.account-menu-coins i {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%); color: #000; font-size: 11px;
}
.account-menu-coins b { margin-left: auto; color: var(--otv-gold-text); font-weight: 700; white-space: nowrap; }

/* The account card: a larger photo, name and handle. */
.sidebar-account .user-card .otv-user-avatar { width: 46px; height: 46px; font-size: var(--fs-sm); }
.sidebar-account .user-card .user-name { font-size: var(--fs-md); font-weight: 700; }
.sidebar-account .user-card .user-role { margin-top: 1px; font-size: var(--fs-sm); }
.sidebar-account .user-card .user-info > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-coins span { white-space: nowrap; }
.account-menu-coins { gap: 10px; }

/* Signed out, the card holds only "Conectare": a smaller avatar leaves it room to fit whole. */
.sidebar-account .account-signin { gap: 10px; }
.sidebar-account .account-signin .otv-user-avatar { width: 28px; height: 28px; flex: none; font-size: var(--fs-xs); }
.sidebar-account .account-signin .user-info > div { overflow: visible; text-overflow: clip; }

/* Signed in: the photo near the left edge, name and handle close to it, "…" near the right edge. */
.sidebar-account .user-card:not(.account-signin) { gap: 8px; padding: 10px 4px 10px 8px; }
/* The balance itself is the label of the coins row. */
.account-menu-coins b { margin-left: 0; }
