/* ═══════════════════════════════════════════════════════════
   TATARR — Portal Artist CSS v3.0
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Silver-primary palette (era gold inainte; user-ul a cerut alinierea cu tema site-ului) */
  --tp-gold:       #C8D0DC;  /* silver */
  --tp-gold-light: #F2F6FB;  /* silver-bright */
  --tp-bg:         rgba(255,255,255,.055);
  --tp-border:     rgba(255,255,255,.1);
  --tp-blur:       blur(22px);
  --tp-radius:     18px;
  --tp-transition: .22s cubic-bezier(.25,.46,.45,.94);
}

/* ── LOGIN ─────────────────────────────────────────────── */
.tp-login-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.tp-login-box {
  width: 100%;
  max-width: 420px;
  background: var(--tp-bg);
  backdrop-filter: var(--tp-blur);
  -webkit-backdrop-filter: var(--tp-blur);
  border: 1px solid var(--tp-border);
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
}

.tp-login-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 3px solid var(--tp-gold); }

.tp-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tp-login-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
}
.tp-login-sub {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin: 0 0 28px;
  line-height: 1.5;
}

.tp-login-footer { margin-top: 20px; }
.tp-login-footer a { font-size: 12px; color: rgba(255,255,255,.35); text-decoration: none; }
.tp-login-footer a:hover { color: var(--tp-gold); }

/* ── BRAND ─────────────────────────────────────────────── */
.tp-header-brand,
.tp-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
}
.tp-brand-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #9aa3b0, var(--tp-gold));
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #000;
  flex-shrink: 0;
}
.tp-brand-name {
  font-size: 18px; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(90deg, #9aa3b0, var(--tp-gold), var(--tp-gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── FORM ──────────────────────────────────────────────── */
.tp-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }

.tp-field { display: flex; flex-direction: column; gap: 5px; }
.tp-field label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }
.tp-field input,
.tp-field textarea,
.tp-field select {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  color: #fff;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--tp-transition);
  font-family: inherit;
}
.tp-field input::placeholder,
.tp-field textarea::placeholder { color: rgba(255,255,255,.25); }
.tp-field input:focus,
.tp-field textarea:focus,
.tp-field select:focus { border-color: var(--tp-gold); }
.tp-field small { font-size: 11px; color: rgba(255,255,255,.3); }

/* ── BUTTONS ───────────────────────────────────────────── */
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--tp-border);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: var(--tp-transition);
  font-family: inherit;
}
.tp-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }

.tp-btn-primary {
  background: linear-gradient(135deg, #9aa3b0, var(--tp-gold));
  color: #000; border-color: transparent; font-weight: 800;
}
.tp-btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.tp-btn-primary:disabled { opacity: .45; transform: none; cursor: default; }

.tp-btn-sm { padding: 6px 14px; font-size: 12px; }
.tp-btn-danger { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.25); color: #e00; }
.tp-btn-danger:hover { background: rgba(220,38,38,.22); }

.tp-form-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; background: rgba(255,255,255,.04); }
.tp-error { padding: 16px; background: rgba(220,38,38,.1); border: 1px solid rgba(220,38,38,.25); border-radius: 12px; color: #e00; font-size: 14px; }

/* ── PORTAL WRAP ───────────────────────────────────────── */
.tp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px 60px; }

/* ── HEADER ────────────────────────────────────────────── */
.tp-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--tp-bg);
  backdrop-filter: var(--tp-blur);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.tp-header-left { display: flex; align-items: center; gap: 14px; }
.tp-header-right { display: flex; align-items: center; gap: 12px; }

.tp-header-avatar {
  width: 54px; height: 54px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(200,208,220,.45);
}
.tp-header-avatar-ph {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 3px solid rgba(200,208,220,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: var(--tp-gold);
}
.tp-header-name { font-size: 18px; font-weight: 900; color: #fff; }
.tp-header-pkg  { display: flex; align-items: center; gap: 8px; margin-top: 3px; }

.tp-pkg-badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(200,208,220,.15); border: 1px solid rgba(200,208,220,.3);
  color: var(--tp-gold); padding: 2px 9px; border-radius: 50px;
}
.tp-trend-badge {
  font-size: 10px; font-weight: 800;
  background: rgba(255,0,0,.85); color: #fff;
  padding: 2px 9px; border-radius: 50px;
}

/* ── NAV TABS ──────────────────────────────────────────── */
.tp-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--tp-bg);
  backdrop-filter: var(--tp-blur);
  border: 1px solid var(--tp-border);
  border-radius: 14px; padding: 6px;
  margin-bottom: 14px;
}
.tp-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: var(--tp-transition);
  white-space: nowrap;
}
.tp-nav-item:hover { color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); }
.tp-nav-item.active { background: rgba(200,208,220,.15); border: 1px solid rgba(200,208,220,.25); color: var(--tp-gold); }

.tp-unread-badge {
  background: #e00; color: #fff;
  font-size: 10px; font-weight: 900;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── CONTENT ───────────────────────────────────────────── */
.tp-content {
  background: var(--tp-bg);
  backdrop-filter: var(--tp-blur);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 24px 22px;
  min-height: 400px;
}

/* ── SECTION ───────────────────────────────────────────── */
.tp-section { margin-bottom: 28px; }
.tp-section:last-child { margin-bottom: 0; }
.tp-section-title {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--tp-gold);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(200,208,220,.15);
}

/* ── TIKTOK ENRICHED CARD + POSTS ──────────────────────── */
.tp-tt-substats {
  display: flex; gap: 8px; justify-content: center; margin-top: 8px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55);
}
.tp-tt-mini {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.tp-tt-mini-ico { color: var(--tp-gold); font-weight: 700; }
.tp-tt-posts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.tp-tt-post {
  display: flex; gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--tp-border);
  border-radius: 12px; padding: 10px;
  text-decoration: none; color: inherit;
  transition: var(--tp-transition);
}
.tp-tt-post:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--tp-gold);
  transform: translateY(-1px);
}
.tp-tt-post-cover {
  width: 60px; height: 80px;
  border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,.05);
}
.tp-tt-post-cover--ph {
  display: grid; place-items: center;
  font-size: 20px; color: var(--tp-gold);
}
.tp-tt-post-info {
  min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.tp-tt-post-song {
  font-size: 12px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.3;
}
.tp-tt-post-song--matched {
  color: var(--tp-gold);
}
.tp-tt-post-song--unknown {
  color: rgba(255,255,255,.3); font-weight: 500; font-style: italic;
}
.tp-tt-post-author {
  color: rgba(255,255,255,.45); font-weight: 500;
}
.tp-tt-post-stats {
  display: flex; gap: 10px; margin-top: 4px;
  font-size: 11px; color: rgba(255,255,255,.5); font-weight: 600;
}

[data-theme="light"] .tp-tt-mini { background: rgba(40,55,80,.05) !important; border-color: rgba(60,80,110,.18) !important; color: rgba(40,55,80,.65) !important; }
[data-theme="light"] .tp-tt-post { background: rgba(40,55,80,.03) !important; border-color: rgba(60,80,110,.15) !important; }
[data-theme="light"] .tp-tt-post:hover { background: rgba(40,55,80,.07) !important; }
[data-theme="light"] .tp-tt-post-song { color: var(--ink) !important; }
[data-theme="light"] .tp-tt-post-stats { color: rgba(40,55,80,.5) !important; }
[data-theme="light"] .tp-tt-post-author { color: rgba(40,55,80,.45) !important; }
[data-theme="light"] .tp-tt-substats { color: rgba(40,55,80,.55) !important; }

/* ── STATS GRID ────────────────────────────────────────── */
.tp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
}
.tp-stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--tp-border);
  border-radius: 12px; padding: 16px 12px;
  text-align: center;
  transition: var(--tp-transition);
}
.tp-stat-card:hover { border-color: rgba(200,208,220,.3); background: rgba(255,255,255,.07); }
.tp-stat-icon { font-size: 22px; margin-bottom: 6px; }
.tp-stat-val  { font-size: 22px; font-weight: 900; background: linear-gradient(90deg, var(--tp-gold), var(--tp-gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tp-stat-lbl  { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; }
.tp-stat-lbl span { display: block; font-size: 10px; opacity: .6; }

.tp-sync-info { font-size: 11px; color: rgba(255,255,255,.25); margin-top: 10px; text-align: right; }

/* ── TRENDING ALERT ────────────────────────────────────── */
.tp-trending-alert {
  background: rgba(255,0,0,.08);
  border: 1px solid rgba(255,0,0,.25);
  border-radius: 14px; padding: 18px 20px;
  margin-bottom: 20px;
}
.tp-trending-alert-inner { display: flex; align-items: center; gap: 16px; }
.tp-trending-flame { font-size: 36px; }
.tp-trending-title { font-size: 17px; font-weight: 900; color: #fff; }
.tp-trending-pos   { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 2px; }
.tp-trending-video { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 4px; }

/* ── CHART ─────────────────────────────────────────────── */
.tp-chart-wrap { position: relative; width: 100%; }
.tp-prediction {
  font-size: 13px; color: rgba(200,208,220,.75);
  background: rgba(200,208,220,.07);
  border: 1px solid rgba(200,208,220,.15);
  border-radius: 8px; padding: 8px 14px;
  margin-top: 12px; text-align: center;
}

/* ── STATS TABLE ───────────────────────────────────────── */
.tp-stats-table { display: flex; flex-direction: column; gap: 6px; }
.tp-stats-row-item {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
}
.tp-srow-label { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }
.tp-srow-val   { font-size: 15px; font-weight: 900; background: linear-gradient(90deg, var(--tp-gold), var(--tp-gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-align: right; }
.tp-srow-note  { font-size: 11px; color: rgba(255,255,255,.25); text-align: right; }

/* ── MESSAGES ──────────────────────────────────────────── */
.tp-messages-wrap { display: flex; flex-direction: column; gap: 14px; }
.tp-messages-list {
  max-height: 360px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 0;
}
.tp-no-messages { color: rgba(255,255,255,.3); font-size: 13px; text-align: center; padding: 30px 0; }

.tp-msg { display: flex; flex-direction: column; max-width: 75%; }
.tp-msg-admin  { align-self: flex-start; }
.tp-msg-artist { align-self: flex-end; }

.tp-msg-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5; color: #fff;
}
.tp-msg-admin .tp-msg-bubble {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-bottom-left-radius: 4px;
}
.tp-msg-artist .tp-msg-bubble {
  background: rgba(200,208,220,.15);
  border: 1px solid rgba(200,208,220,.25);
  border-bottom-right-radius: 4px;
}
.tp-msg-meta { font-size: 10px; color: rgba(255,255,255,.25); margin-top: 3px; padding: 0 4px; }
.tp-msg-admin .tp-msg-meta { text-align: left; }
.tp-msg-artist .tp-msg-meta { text-align: right; }

.tp-msg-form { display: flex; flex-direction: column; gap: 8px; }
.tp-msg-form textarea {
  background: rgba(255,255,255,.07); border: 1px solid var(--tp-border);
  border-radius: 12px; color: #fff; padding: 12px 14px;
  font-size: 14px; font-family: inherit; resize: vertical; outline: none;
  min-height: 80px; width: 100%; box-sizing: border-box;
}
.tp-msg-form textarea:focus { border-color: var(--tp-gold); }

/* ── CALENDAR LANSĂRI ──────────────────────────────────── */
.tp-launch-item {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; margin-bottom: 8px;
}
.tp-launch-info { flex: 1; }
.tp-launch-title { font-size: 15px; font-weight: 800; color: #fff; }
.tp-launch-date  { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 3px; display: flex; align-items: center; gap: 8px; }
.tp-launch-notes { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 4px; }
.tp-launch-public{ font-size: 10px; color: rgba(200,208,220,.6); margin-top: 4px; }
.tp-launch-countdown-mini { background: rgba(200,208,220,.1); border-radius: 50px; padding: 1px 8px; font-size: 11px; color: var(--tp-gold); }

/* ── CERTIFICATE ───────────────────────────────────────── */
.tp-cert-preview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px;
}
.tp-cert-preview-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,208,220,.2);
  border-radius: 14px; padding: 22px 18px; text-align: center;
}
.tp-cert-format-label { font-size: 15px; font-weight: 800; color: var(--tp-gold); margin-bottom: 4px; }
.tp-cert-format-dims  { font-size: 12px; color: rgba(255,255,255,.4); font-family: monospace; margin-bottom: 8px; }
.tp-cert-format-desc  { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.5; }
.tp-cert-stats-preview {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 16px 18px;
  font-size: 13px; color: rgba(255,255,255,.6); line-height: 2;
}

/* ── CONTRACT ──────────────────────────────────────────── */
.tp-contract-info { display: flex; flex-direction: column; gap: 8px; }
.tp-contract-row {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 12px; align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
}
.tp-contract-lbl { font-size: 13px; color: rgba(255,255,255,.5); font-weight: 600; }
.tp-contract-val { font-size: 14px; color: #fff; font-weight: 700; }

/* ── DASHBOARD ─────────────────────────────────────────── */
.tp-dashboard { display: flex; flex-direction: column; gap: 0; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 600px) {
  .tp-login-box { padding: 28px 20px; }
  .tp-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 16px 18px;
  }
  .tp-header-left {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .tp-header-right {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .tp-header-pkg { justify-content: center; flex-wrap: wrap; }
  .tp-header-name { text-align: center; }
  .tp-header-brand, .tp-login-brand { justify-content: center; }
  .tp-nav { gap: 2px; }
  .tp-nav-item { padding: 8px 12px; font-size: 12px; }
  .tp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-cert-preview-grid { grid-template-columns: 1fr; }
  .tp-contract-row { grid-template-columns: 1fr; }
  .tp-stats-row-item { grid-template-columns: 1fr; gap: 4px; }
  .tp-srow-val, .tp-srow-note { text-align: left; }
  .tp-msg { max-width: 90%; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES — text contrast pe fundal deschis
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --tp-bg:     rgba(40, 55, 80, 0.05);
  --tp-border: rgba(60, 80, 110, 0.20);
}

/* Header artist */
[data-theme="light"] .tp-header-name,
[data-theme="light"] .tp-trending-title,
[data-theme="light"] .tp-stat-val,
[data-theme="light"] .tp-section-title,
[data-theme="light"] .tp-stat-name,
[data-theme="light"] .tp-srow-val,
[data-theme="light"] .tp-cert-format-label,
[data-theme="light"] .tp-msg-text,
[data-theme="light"] .tp-msg-name,
[data-theme="light"] .tp-launch-title,
[data-theme="light"] .tp-contract-val,
[data-theme="light"] .tp-login-title { color: var(--ink) !important; }

/* Inputs */
[data-theme="light"] .tp-field input,
[data-theme="light"] .tp-field textarea,
[data-theme="light"] .tp-field select {
  background: rgba(40,55,80,.04) !important;
  color: var(--ink) !important;
  border-color: rgba(60,80,110,.25) !important;
}
[data-theme="light"] .tp-field input::placeholder,
[data-theme="light"] .tp-field textarea::placeholder { color: rgba(60,80,110,.4) !important; }
[data-theme="light"] .tp-field label,
[data-theme="light"] .tp-field small,
[data-theme="light"] .tp-login-sub,
[data-theme="light"] .tp-login-footer a { color: rgba(40,55,80,.6) !important; }

/* Nav tabs */
[data-theme="light"] .tp-nav-item { color: rgba(40,55,80,.55) !important; }
[data-theme="light"] .tp-nav-item:hover { color: rgba(40,55,80,.85) !important; background: rgba(40,55,80,.05) !important; }
[data-theme="light"] .tp-nav-item.active { color: var(--silver-bright) !important; background: rgba(40,55,80,.06) !important; }

/* Stat cards */
[data-theme="light"] .tp-stat-card {
  background: rgba(40,55,80,.04) !important;
  border-color: rgba(60,80,110,.18) !important;
}
[data-theme="light"] .tp-stat-card:hover { background: rgba(40,55,80,.07) !important; border-color: var(--silver) !important; }
[data-theme="light"] .tp-stat-lbl { color: rgba(40,55,80,.55) !important; }
[data-theme="light"] .tp-sync-info { color: rgba(40,55,80,.4) !important; }

/* Trending section */
[data-theme="light"] .tp-trending-pos { color: rgba(40,55,80,.65) !important; }
[data-theme="light"] .tp-trending-video { color: rgba(40,55,80,.5) !important; }

/* Buttons */
[data-theme="light"] .tp-btn {
  background: rgba(40,55,80,.05) !important;
  color: rgba(40,55,80,.85) !important;
  border-color: rgba(60,80,110,.2) !important;
}
[data-theme="light"] .tp-btn:hover { background: rgba(40,55,80,.1) !important; color: var(--ink) !important; }

/* Sections (cards mari de continut) */
[data-theme="light"] .tp-section {
  background: rgba(40,55,80,.03) !important;
  border-color: rgba(60,80,110,.15) !important;
}

/* Messages */
[data-theme="light"] .tp-msg { background: rgba(40,55,80,.05) !important; border-color: rgba(60,80,110,.15) !important; }
[data-theme="light"] .tp-msg-time { color: rgba(40,55,80,.4) !important; }

/* Form msg */
[data-theme="light"] .tp-form-msg { background: rgba(40,55,80,.05) !important; }

/* Generic muted text */
[data-theme="light"] .tp-section p,
[data-theme="light"] .tp-section span { color: var(--ink-muted); }
