/* ==========================================================================
   Reclame Critic — frontend (înregistrare, coș, panou client, spații)
   Paletă preluată din identitatea criticarad.ro.
   ========================================================================== */

.rc-wrap {
  --rc-paper: #ffffff;
  --rc-panel: #f7f6f2;
  --rc-line: #e3e0d6;
  --rc-ink: #1a1a1a;
  --rc-muted: #8a8a86;
  --rc-red: #de484f;
  --rc-link: #52799b;
  --rc-link-hover: #38536b;
  --rc-gold: #c9a24a;
  --rc-gold-soft: #fbf5e6;
  --rc-ok: #2e7d54;
  --rc-warn: #a5761b;
  --rc-bad: #c0392b;

  color: var(--rc-ink);
  font-size: 15px;
  line-height: 1.55;
  max-width: 1200px;
  margin: 0 auto;
}

.rc-wrap *, .rc-wrap *::before, .rc-wrap *::after { box-sizing: border-box; }

/* ---------- Pagina cont: login sus, înregistrare jos ---------- */
.rc-account-gate { max-width: 640px; }
.rc-account-gate-sep {
  display: flex; align-items: center; gap: 14px;
  margin: 34px 0; color: var(--rc-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
}
.rc-account-gate-sep::before, .rc-account-gate-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--rc-line);
}

/* ---------- Tipografie ---------- */
.rc-h2 { font-size: 24px; font-weight: 700; margin: 0 0 10px; line-height: 1.25; }
.rc-h3 { font-size: 17px; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.rc-lead { color: #4a4a46; margin: 0 0 16px; }
.rc-hint { font-size: 12.5px; color: var(--rc-muted); margin: 6px 0 0; }
.rc-muted { color: var(--rc-muted); }
.rc-req { color: var(--rc-red); }
.rc-bad { color: var(--rc-bad); font-weight: 600; }
.rc-warn { color: var(--rc-warn); font-weight: 600; }

.rc-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--rc-line);
  color: #8a6a17;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ---------- Panouri ---------- */
.rc-panel {
  background: var(--rc-paper);
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 0 0 20px;
}
.rc-panel--narrow { max-width: 520px; margin-left: auto; margin-right: auto; }

.rc-panel-head {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px;
}
.rc-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Mesaje ---------- */
.rc-notice {
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 18px;
  border-left: 4px solid var(--rc-line);
  background: var(--rc-panel);
}
.rc-notice ul { margin: 0; padding-left: 18px; }
.rc-notice p:last-child, .rc-notice ul:last-child { margin-bottom: 0; }
.rc-notice--error { border-left-color: var(--rc-bad); background: #fdf1f0; }
.rc-notice--ok { border-left-color: var(--rc-ok); background: #f0f8f3; }
.rc-notice--info { border-left-color: var(--rc-link); background: #f1f5f9; }

/* ---------- Formulare ---------- */
.rc-form { margin: 0; }
.rc-grid { display: grid; gap: 4px 20px; }
.rc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rc-field { margin: 0 0 16px; }
.rc-field > label {
  display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px;
}
.rc-field input[type="text"],
.rc-field input[type="email"],
.rc-field input[type="url"],
.rc-field input[type="tel"],
.rc-field input[type="password"],
.rc-field input[type="number"],
.rc-field input[type="file"],
.rc-field select,
.rc-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--rc-line);
  border-radius: 7px;
  background: #fff;
  color: var(--rc-ink);
  font: inherit;
  font-size: 14px;
}
.rc-field input:focus, .rc-field select:focus, .rc-field textarea:focus {
  outline: none;
  border-color: var(--rc-link);
  box-shadow: 0 0 0 3px rgba(82, 121, 155, .15);
}
.rc-field input:disabled, .rc-field select:disabled { background: var(--rc-panel); color: var(--rc-muted); }

.rc-field--check > label {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; font-size: 13.5px; line-height: 1.5;
}
.rc-field--check input[type="checkbox"] { margin-top: 3px; flex: none; }

/* ---------- Butoane ---------- */
.rc-btn {
  display: inline-block;
  background: var(--rc-red);
  color: #fff !important;
  border: 1px solid var(--rc-red);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}
.rc-btn:hover { opacity: .88; color: #fff !important; }
.rc-btn:disabled { opacity: .45; cursor: not-allowed; }
.rc-btn--lg { padding: 13px 30px; font-size: 15px; }
.rc-btn--sm { padding: 6px 14px; font-size: 12.5px; }
.rc-btn--ghost {
  background: transparent;
  color: var(--rc-ink) !important;
  border-color: var(--rc-line);
}
.rc-btn--ghost:hover { border-color: #c9c6ba; color: var(--rc-ink) !important; }

.rc-x {
  background: none; border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--rc-muted); padding: 4px 8px;
}
.rc-x:hover { color: var(--rc-bad); }

/* ---------- Taburi ---------- */
.rc-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  border-bottom: 1px solid var(--rc-line);
  margin-bottom: 22px;
}
.rc-tab {
  display: inline-block;
  padding: 11px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--rc-muted);
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.rc-tab:hover { color: var(--rc-ink); }
.rc-tab.is-active { color: var(--rc-ink); border-bottom-color: var(--rc-red); }
.rc-badge {
  display: inline-block; background: var(--rc-red); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px;
  min-width: 18px; padding: 1px 6px; text-align: center; margin-left: 4px;
}

/* ---------- Tabele ---------- */
.rc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rc-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  margin: 0 0 16px;
}
.rc-table th, .rc-table td {
  text-align: left; padding: 11px 12px;
  border-bottom: 1px solid var(--rc-line); vertical-align: top;
}
.rc-table thead th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--rc-muted); font-weight: 700;
  border-bottom-width: 2px; white-space: nowrap;
}
.rc-table .rc-num { text-align: right; white-space: nowrap; }
.rc-table tbody tr:hover { background: #fbfaf7; }
.rc-table--kv th { width: 34%; color: var(--rc-muted); font-weight: 600; }
.rc-row-bad { background: #fdf1f0; }
.rc-row-soon { opacity: .55; }

/* ---------- Sumar coș ---------- */
.rc-summary {
  background: var(--rc-panel);
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  padding: 16px 20px;
  max-width: 420px;
  margin: 0 0 20px auto;
}
.rc-summary-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 6px 0; font-size: 14px;
}
.rc-summary-row--save { color: var(--rc-ok); }
.rc-summary-row--total {
  border-top: 1px solid var(--rc-line);
  margin-top: 6px; padding-top: 12px;
  font-size: 17px; font-weight: 700;
}

/* ---------- KPI-uri ---------- */
.rc-kpis {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 0 0 8px;
}
.rc-kpi {
  background: var(--rc-panel);
  border: 1px solid var(--rc-line);
  border-radius: 9px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.rc-kpi-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--rc-muted); font-weight: 700; }
.rc-kpi-value { font-size: 26px; font-weight: 700; line-height: 1.15; }
.rc-kpi-sub { font-size: 12px; color: var(--rc-muted); }

/* ---------- Campanii ---------- */
.rc-campaign-head {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-start; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--rc-line);
}
.rc-campaign-head .rc-h3 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }

.rc-state {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.rc-state--ok { background: #e8f5ee; color: var(--rc-ok); }
.rc-state--warn { background: var(--rc-gold-soft); color: var(--rc-warn); }
.rc-state--bad { background: #fdf1f0; color: var(--rc-bad); }
.rc-state--muted { background: var(--rc-panel); color: var(--rc-muted); }

.rc-campaign-body { display: grid; gap: 24px; grid-template-columns: 300px 1fr; align-items: start; }
.rc-preview-img { max-width: 100%; height: auto; border: 1px solid var(--rc-line); border-radius: 6px; display: block; }
.rc-preview-empty {
  border: 2px dashed var(--rc-line); border-radius: 8px;
  background: var(--rc-panel); color: var(--rc-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; text-align: center; padding: 10px;
}
.rc-preview-empty--orizontal { aspect-ratio: 970 / 250; }
.rc-preview-empty--vertical { aspect-ratio: 160 / 600; max-height: 320px; margin: 0 auto; }
.rc-preview-empty--patrat { aspect-ratio: 336 / 280; }

.rc-specs {
  background: var(--rc-gold-soft);
  border: 1px solid #efe3c4;
  border-radius: 8px;
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: 13px;
}
.rc-specs ul { margin: 8px 0 0; padding-left: 18px; }
.rc-specs li { margin-bottom: 4px; }

/* ---------- Copiere link afiliere ---------- */
.rc-copyrow { display: flex; gap: 8px; align-items: stretch; }
.rc-copyinput { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.rc-copybtn { white-space: nowrap; }

/* ---------- Configurator spații ---------- */
.rc-configurator { border-color: var(--rc-gold); }
.rc-cat-groups { display: grid; gap: 16px; }
.rc-cat-group h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--rc-muted); margin: 0 0 8px; font-weight: 700;
}
.rc-cat-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rc-cat {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 400; cursor: pointer;
  padding: 4px 10px; border: 1px solid var(--rc-line); border-radius: 999px;
}
.rc-cat:hover { border-color: var(--rc-link); }
.rc-cat input { margin: 0; }

.rc-estimate {
  background: var(--rc-panel);
  border: 1px solid var(--rc-line);
  border-radius: 9px;
  padding: 14px 18px;
  margin: 4px 0 18px;
  max-width: 420px;
}
.rc-estimate-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14px; }
.rc-estimate-row--total { border-top: 1px solid var(--rc-line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 16px; }

/* ---------- Prețuri în machetă ---------- */
.rc-slot-price {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #8a6a17;
  margin-top: 3px;
  letter-spacing: .01em;
}
.rc-slot-price--soon { color: var(--rc-muted); font-weight: 600; font-style: italic; }
#rc-ad-showcase .rc-sky .rc-slot-price { margin-top: 0; margin-bottom: 4px; }

.rc-pricenotes { font-size: 13px; color: #4a4a46; margin-top: 16px; }
.rc-pricenotes p { margin: 0 0 16px; }
.rc-pricenotes ul { margin: 16px 0 0; padding-left: 18px; }
.rc-pricenotes li { margin-bottom: 4px; }

.rc-showcase-intro { border-left: 4px solid var(--rc-red); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .rc-grid--2 { grid-template-columns: 1fr; }
  .rc-campaign-body { grid-template-columns: 1fr; }
  .rc-summary { max-width: none; margin-left: 0; }
  .rc-panel { padding: 18px 16px; }
  .rc-h2 { font-size: 21px; }
  .rc-panel-head { flex-direction: column; align-items: stretch; }
}
