:root {
  --ink: #606270;
  --ink-strong: #1e293b;
  --heading: #2c3e50;
  --muted: #64748b;
  --line: #d2d2d2;
  --white: #ffffff;
  --bg: #ffffff;
  --blue: #095b92;
  --blue-dark: #054474;
  --blue-mid: #0d5b90;
  --blue-soft: #eaf4fa;
  --blue-soft-2: #ebf4fa;
  --blue-border: #97c3db;
  --hero-1: #1d5b96;
  --hero-2: #165e96;
  --hero-3: #116baa;
  --peach: #ffa268;
  --peach-bg: #fffaf5;
  --ok: #0d7a45;
  --ok-bg: #e8f7ef;
  --warn: #9a6b00;
  --warn-bg: #fff6df;
  --bad: #b42318;
  --bad-bg: #fdeceb;
  --radius: 12px;
  --radius-lg: 15px;
  --font: "Didact Gothic", "Segoe UI", sans-serif;
  --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 16px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; }
code, .code-copy {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  color: var(--ink-strong);
}

.wrap { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(440px, calc(100% - 2rem)); }

/* —— autentificare în stil hub.mai —— */
.auth-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.25rem 0.75rem 2.5rem;
  background: #f5f7fa;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 78px);
  box-sizing: border-box;
}
.auth-panel.panel {
  width: min(460px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #fff;
  min-width: 0;
}
.auth-panel-wide.panel {
  width: min(560px, 100%);
}
.auth-banner {
  background-image: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  color: #fff;
  padding: 1.1rem 1.1rem 1.15rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.auth-banner-org {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.9;
}
.auth-banner-title {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.auth-banner-sub {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  opacity: 0.88;
  line-height: 1.4;
}
.auth-body {
  padding: 1.15rem 1.1rem 1.35rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.auth-panel .page-title {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 600;
  color: #263b5e;
  border: 0;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}
.auth-kicker { display: none; }
.auth-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}
.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-width: 0;
}
.auth-field-row > * { min-width: 0; }
.auth-back {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}
.auth-back a { font-weight: 600; }
.auth-resend { margin-top: 0.55rem; }
.btn-block { width: 100%; justify-content: center; }
.otp-input {
  letter-spacing: 0.28em;
  font-weight: 700;
  text-align: center;
  font-size: 1.3rem !important;
}
.section-lead { margin: -0.35rem 0 1.1rem; }
.programs-board {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}
.programs-heading {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-mid);
}
.programs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.programs-list li {
  display: grid;
  gap: 0.1rem;
}
.programs-code {
  font-weight: 700;
  color: var(--heading);
  font-size: 1.02rem;
}
.programs-name {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}
.portal-links-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 800px) {
  .programs-board,
  .portal-links-3,
  .auth-field-row {
    grid-template-columns: 1fr;
  }
}

/* —— navbar tip hub —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-nav);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.35rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 30%, #f2c14e 0 5px, transparent 6px),
    radial-gradient(circle at 72% 28%, #e35d5b 0 4px, transparent 5px),
    radial-gradient(circle at 62% 68%, #5bb8e8 0 4px, transparent 5px),
    conic-gradient(from 200deg, #0d5b90, #9dc2db, #054474, #1d5b96, #0d5b90);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #d2d2d2;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-size: 1.65rem;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.site-nav > a {
  color: #333;
  text-decoration: none;
  font-size: 1.05rem;
  position: relative;
}
.site-nav > a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s;
}
.site-nav > a:hover { color: #000; text-decoration: none; }
.site-nav > a:hover::after { width: 100%; }
.nav-user {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
a.nav-user:hover {
  color: var(--blue);
  text-decoration: none;
  border-bottom-color: var(--blue);
}
.nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 0 !important;
}
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-soft);
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--blue-border);
  letter-spacing: 0.02em;
}
.avatar-lg.avatar-fallback { font-size: 1.6rem; }
.profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.profile-meta {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.profile-meta dt {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.profile-meta dd {
  margin: 0.15rem 0 0;
  color: var(--ink-strong);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: var(--white);
  padding: 9px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 1px;
}

/* —— hero tip hub —— */
.hero {
  padding: 1.75rem 0 0.5rem;
  background: var(--white);
}
.hero-card {
  background-image: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 50%, var(--hero-3) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) 1.5rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 91, 144, 0.22);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.08) 0 1.5px, transparent 3px),
    radial-gradient(circle at 30% 75%, rgba(255,255,255,0.1) 0 2px, transparent 3px);
  pointer-events: none;
}
.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
  position: relative;
}
.hero-card h1 {
  margin: 0 auto 1rem;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 22ch;
  color: #fff;
  position: relative;
}
.lead {
  margin: 0 auto 1.35rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  position: relative;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 1.25rem;
}
.hero-search {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  align-items: center;
  gap: 0.5rem;
}
.hero-search input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  color: var(--ink-strong);
  background: transparent;
  min-width: 0;
  padding: 0.55rem 0;
}
.hero-search button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hero-search button:hover { background: var(--blue-dark); }
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.92rem;
  opacity: 0.9;
  position: relative;
}

.section { padding: 1.75rem 0; }
.section-title, .page-title {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 1rem;
}
.page-title { font-size: 1.65rem; color: #263b5e; }
.h-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.5rem;
}

/* carduri tip popular-services */
.service-grid,
.portal-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.service-card,
.portal-links a,
.static-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
a.service-card:hover,
.portal-links a:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--blue-mid);
  text-decoration: none;
  color: inherit;
}
.service-card.highlight,
.portal-links a.highlight {
  background: var(--peach-bg);
  border: 2px solid var(--peach);
}
.service-card.highlight:hover,
.portal-links a.highlight:hover {
  border-color: var(--peach);
}
.service-card h3,
.portal-links h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-strong);
}
.service-card p,
.portal-links p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.price {
  font-weight: 700;
  color: var(--blue-mid);
  margin: 0.65rem 0 !important;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.form-panel { margin-bottom: 1.1rem; }
.form-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.form { display: grid; gap: 0.85rem; min-width: 0; }
.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--heading);
  min-width: 0;
  max-width: 100%;
}
.form input:not([type="radio"]):not([type="checkbox"]),
.form select,
.form textarea {
  font: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-strong);
}
.form input[type="radio"],
.form input[type="checkbox"] {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.form input:not([type="radio"]):not([type="checkbox"]):focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9, 91, 146, 0.15);
}
.grid-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}
.form-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.4rem 0;
  grid-column: 1 / -1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.9rem; }
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
}
.btn-ghost {
  background: #fff;
  border-color: #d6d6d6;
  color: #000;
}
.btn-ghost:hover { background: #f7f7f7; color: #000; }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-google {
  display: flex;
  width: 100%;
  background: #fff;
  border: 1px solid #dadce0;
  color: #3c4043;
  margin: 0.75rem 0 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}
.btn-google:hover {
  background: #f7f8f8;
  border-color: #095b92;
  color: #095b92;
  text-decoration: none;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.refund-ack {
  align-items: flex-start !important;
  background: #fffaf5;
  border: 1px solid #ffa268;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-strong);
}
.refund-ack input { margin-top: 0.2rem; }
.initials-box {
  margin: 0;
  padding: 0.75rem 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  min-width: 0;
  max-width: 100%;
}
.initials-box legend {
  padding: 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--heading);
}
.initials-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-width: 0;
}
.initials-row > * { min-width: 0; }
.initials-second { margin-top: 0.75rem; }
.initials-box input {
  width: 100%;
  box-sizing: border-box;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.initials-box input::placeholder {
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.4;
}
.match-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 1rem;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.match-list legend {
  padding: 0 0.35rem;
  font-weight: 600;
  color: var(--heading);
}
.form label.match-item,
label.match-item {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 400 !important;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.form label.match-item:last-child,
label.match-item:last-child { border-bottom: 0; }
.form label.match-item > input[type="radio"],
label.match-item > input[type="radio"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  align-self: flex-start;
}
.form label.match-item > span,
label.match-item > span {
  display: block;
  min-width: 0;
  flex: 1 1 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.form label.match-item > span strong,
label.match-item > span strong {
  display: block;
  color: var(--ink-strong);
}
.form label.match-item .muted.small,
label.match-item .muted.small {
  display: block;
  line-height: 1.4;
  margin-top: 0.15rem;
}

.flash {
  margin: 1rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.flash-ok { background: var(--ok-bg); border-color: #b7e0c8; color: var(--ok); }
.flash-bad { background: var(--bad-bg); border-color: #f0c2be; color: var(--bad); }
.flash-warn { background: #fff8e8; border-color: #f0d58a; color: #8a5a00; }
.inline-flash { margin: 0.5rem 0; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted { background: #eef2f6; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
}
.stat-label { color: var(--muted); font-size: 0.9rem; }

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--blue-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 600;
}
tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.inline-form { display: inline; }
.sef-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.sef-form select { max-width: 11rem; }
.reject-form { display: flex; gap: 0.35rem; align-items: center; }
.reject-form input {
  width: 120px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.panel-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.side-nav {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  display: grid;
  gap: 0.15rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.side-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0.15rem 0.55rem 0.4rem;
}
.side-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--ink-strong);
  text-decoration: none;
  font-weight: 500;
}
.side-nav a:hover, .side-nav a.active {
  background: var(--blue-soft);
  color: var(--blue-mid);
  text-decoration: none;
}

.tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tabs a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-strong);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.tabs a.active, .tabs a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  text-decoration: none;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.toolbar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.stack { display: grid; gap: 0.85rem; }
.announce {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.announce-important {
  background: var(--peach-bg);
  border: 2px solid var(--peach);
}
.announce-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}
.announce-head h2, .announce-head h3 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 600;
}
.iban-box { margin-bottom: 1.15rem; }
.iban-box h2 { color: var(--heading); font-size: 1.15rem; margin: 0 0 0.55rem; }
.order-card { margin-bottom: 0.2rem; }
.order-sum { text-align: right; display: grid; gap: 0.35rem; justify-items: end; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.rate-timeline {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.rate-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: #fff;
}
.rate-confirmata { border-color: #9ed4b5; background: #f7fcf9; }
.rate-in_verificare { border-color: #ecd89a; background: #fffdf5; }
.rate-respinsa { border-color: #f0c2be; background: #fff8f7; }
.rate-locked { opacity: 0.75; background: #f7f8fa; }
.rate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.rate-amount { margin: 0.2rem 0 0.5rem; }
.transfer-code { display: grid; gap: 0.25rem; margin-bottom: 0.55rem; }
.rate-pay-form { margin-top: 0.35rem; }
.search-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1rem;
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: var(--blue-soft-2);
  border-left: 2px solid var(--blue-mid);
  border-right: 2px solid var(--blue-mid);
  border-radius: var(--radius-lg);
  margin: 0 0 1.25rem;
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid #ddd;
  background: #fafafa url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23e8e8e8' stroke-width='1'/%3E%3C/svg%3E");
  padding: 1.35rem 0 1.6rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}
.footer-inner strong { color: var(--heading); }
.footer-inner p { margin: 0.25rem 0 0; color: var(--muted); }
.footer-meta {
  display: grid;
  gap: 0.2rem;
  text-align: right;
  color: var(--muted);
}
.footer-meta a { color: var(--blue); }

@media (max-width: 860px) {
  .panel-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 78px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-card);
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .footer-meta { text-align: left; }
  .search-bar { grid-template-columns: 1fr; }
  .hero-card { text-align: left; }
  .hero-actions, .hero-meta { justify-content: flex-start; }
  .hero-card h1 { margin-left: 0; }
  .wrap { width: min(1140px, calc(100% - 1.25rem)); }
  .auth-shell { padding: 1rem 0.65rem 2rem; }
  .auth-body { padding: 1rem 0.9rem 1.2rem; }
  .auth-panel .page-title { font-size: 1.25rem; }
  .auth-lead { font-size: 0.92rem; }
  .form label { font-size: 0.92rem; }
  .grid-form { grid-template-columns: 1fr; }
  .toolbar, .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .page-actions { width: 100%; }
  .page-actions .btn { width: 100%; justify-content: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .code-copy {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .rate-timeline { padding-left: 0; }
  th, td { padding: 0.65rem 0.55rem; font-size: 0.88rem; }
  .sef-form { width: 100%; }
  .sef-form select { max-width: 100%; flex: 1; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .auth-banner-title { font-size: 1.2rem; }
}
