/*
 * TCE Promo — Audit & Notar Pages CSS
 * Pagini: /audit-extragere/ + /notar/
 * v2.5.1 — Canny Agency (consolidat din v2.4.0 + v2.5.0, -167 linii)
 */

/* ─────────────────────────────────────────────────────────────────────────────
   Reset local + variabile
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-page,
.tce-notar-page {
    --tce-audit-blue:   #1d4ed8;
    --tce-audit-green:  #15803d;
    --tce-audit-red:    #b91c1c;
    --tce-audit-amber:  #b45309;
    --tce-audit-gray:   #374151;
    --tce-audit-gray-l: #f3f4f6;
    --tce-audit-border: #e5e7eb;
    --tce-audit-mono:   'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --tce-audit-radius: 8px;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tce-audit-gray);
    line-height: 1.6;
    background-color: var(--tce-cream, #f6f4ef);
    min-height: 100vh;
    padding-bottom: 4rem;
    box-sizing: border-box;
}
.tce-audit-page *,
.tce-notar-page *,
.tce-audit-page *::before,
.tce-notar-page *::before,
.tce-audit-page *::after,
.tce-notar-page *::after {
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Skip link accesibilitate
   ───────────────────────────────────────────────────────────────────────────── */
.tce-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.tce-skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    background: #1d4ed8;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Container
   ───────────────────────────────────────────────────────────────────────────── */
.tce-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.tce-container--narrow {
    max-width: 640px;
}

.tce-audit-page .tce-container,
.tce-notar-page .tce-container {
    max-width: 1100px;
    padding: clamp(1rem, 3vw, 2rem);
    margin-inline: auto;
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Fix aliniere header plugin in contextul temei WP (is-layout-constrained)
   ───────────────────────────────────────────────────────────────────────────── */
.tce-header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.tce-section__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tce-audit-blue);
    margin: 0 0 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero — gradient navy modern
   Fix v2.4.3: margin auto centreaza, padding interior pastrat
   ───────────────────────────────────────────────────────────────────────────── */
body.tce-fullwidth .tce-audit-hero,
body.tce-fullwidth .tce-notar-hero,
body.tce-promo-page .tce-audit-hero,
body.tce-promo-page .tce-notar-hero {
    margin-left: auto !important;
    margin-right: auto !important;
}

.tce-audit-hero,
.tce-notar-hero {
    background: linear-gradient(135deg, #1c2940 0%, #2c3e5e 100%);
    color: #fff;
    border-radius: 16px;
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
    margin-bottom: 2.5rem;
    border: 0;
    box-shadow: 0 10px 30px rgba(28, 41, 64, 0.15);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}
.tce-audit-hero__title,
.tce-notar-hero__title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
.tce-audit-hero__lead,
.tce-notar-hero__lead {
    max-width: 64ch !important;
    margin-inline: auto !important;
}
.tce-audit-hero .tce-section__eyebrow,
.tce-notar-hero .tce-section__eyebrow {
    text-align: center;
}

.tce-audit-hero .tce-section__eyebrow,
.tce-notar-hero .tce-section__eyebrow {
    color: #e6a817;
    margin-bottom: 0.75rem;
}

.tce-audit-hero__title,
.tce-notar-hero__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
    font-family: Georgia, serif;
}

.tce-audit-hero__lead,
.tce-notar-hero__lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 100%;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   H2 secțiuni — accent gold
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-page h2,
.tce-notar-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1c2940;
    font-family: Georgia, serif;
    margin: 2.5rem 0 1.25rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-left: 4px solid #e6a817;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Secțiuni audit
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-section {
    background: #fff;
    border: 1px solid var(--tce-audit-border);
    border-radius: var(--tce-audit-radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.tce-audit-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem;
}

.tce-audit-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--tce-audit-blue);
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tce-audit-section__desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Meta grid
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.tce-audit-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tce-audit-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.tce-audit-meta-value {
    font-size: 1rem;
    color: #111827;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Badge-uri
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f3f4f6;
    color: #374151;
}

.tce-audit-badge--ok {
    background: #dcfce7;
    color: var(--tce-audit-green);
}

.tce-audit-badge--warn {
    background: #fef3c7;
    color: var(--tce-audit-amber);
}

.tce-audit-badge--fail {
    background: #fee2e2;
    color: var(--tce-audit-red);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hash block
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-hash-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: var(--tce-audit-gray-l);
    border-radius: var(--tce-audit-radius);
    padding: 0.875rem 1rem;
}

.tce-audit-hash {
    font-family: var(--tce-audit-mono);
    font-size: 0.8125rem;
    color: #1e3a5f;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Integritate banner
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-integrity {
    margin-top: 1rem;
}

.tce-audit-integrity-badge {
    padding: 0.75rem 1rem;
    border-radius: var(--tce-audit-radius);
    font-size: 0.875rem;
    font-weight: 600;
    border-left: 4px solid transparent;
}

.tce-audit-integrity-badge--ok {
    background: #dcfce7;
    border-color: var(--tce-audit-green);
    color: var(--tce-audit-green);
}

.tce-audit-integrity-badge--fail {
    background: #fee2e2;
    border-color: var(--tce-audit-red);
    color: var(--tce-audit-red);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Coduri hash-uite
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-codes-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tce-audit-codes-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.tce-audit-codes-list {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--tce-audit-border);
    border-radius: var(--tce-audit-radius);
    background: #fafafa;
}

.tce-audit-code-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--tce-audit-border);
    font-size: 0.8rem;
}

.tce-audit-code-row:last-child {
    border-bottom: none;
}

.tce-audit-code-idx {
    color: #9ca3af;
    min-width: 40px;
    text-align: right;
    font-size: 0.75rem;
}

.tce-audit-code-hash {
    font-family: var(--tce-audit-mono);
    color: #1e3a5f;
    word-break: break-all;
}

/* ─────────────────────────────────────────────────────────────────────────────
   JSON block
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-json-wrap {
    background: #0d1117;
    border-radius: var(--tce-audit-radius);
    overflow: hidden;
}

.tce-audit-json-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.tce-audit-json {
    font-family: var(--tce-audit-mono);
    font-size: 0.8125rem;
    color: #e6edf3;
    padding: 1.25rem;
    margin: 0;
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Indecși câștigători
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-indexes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tce-audit-index-item {
    background: var(--tce-audit-gray-l);
    border-radius: var(--tce-audit-radius);
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 130px;
}

.tce-audit-index-pos {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.tce-audit-index-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tce-audit-blue);
    font-family: var(--tce-audit-mono);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Câștigători (hash-uri)
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tce-audit-winner-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--tce-audit-gray-l);
    border-radius: var(--tce-audit-radius);
}

.tce-audit-winner-pos {
    font-weight: 800;
    color: var(--tce-audit-blue);
    min-width: 28px;
    font-family: var(--tce-audit-mono);
}

.tce-audit-winner-hash {
    font-family: var(--tce-audit-mono);
    font-size: 0.8125rem;
    color: #1e3a5f;
    word-break: break-all;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Semnătură ECDSA
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-sig-grid {
    display: grid;
    gap: 1rem;
}

.tce-audit-sig-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    display: block;
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA verificare Random.org
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--tce-audit-blue);
    color: #fff;
    border-radius: var(--tce-audit-radius);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.tce-audit-verify-btn:hover {
    background: #1e40af;
    color: #fff;
}

.tce-audit-verify-steps {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Audit trail
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-trail {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.tce-audit-trail::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tce-audit-border);
}

.tce-audit-trail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--tce-audit-border);
}

.tce-audit-trail-item:last-child {
    border-bottom: none;
}

.tce-audit-trail-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 1.1rem;
    width: 14px;
    height: 14px;
    background: var(--tce-audit-blue);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--tce-audit-border);
}

.tce-audit-trail-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.tce-audit-trail-ts {
    font-family: var(--tce-audit-mono);
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Butoane utilitare
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-copy-btn,
.tce-audit-btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tce-audit-blue);
    background: transparent;
    border: 1.5px solid var(--tce-audit-blue);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.tce-audit-copy-btn:hover,
.tce-audit-btn-sm:hover {
    background: var(--tce-audit-blue);
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Loader / eroare / utilitare
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-loading,
.tce-audit-loader {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.tce-audit-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--tce-audit-blue);
    border-radius: 50%;
    animation: tce-spin 0.7s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes tce-spin {
    to { transform: rotate(360deg); }
}

.tce-audit-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    color: #991b1b;
    margin: 0 0 1.5rem;
    font-weight: 600;
}

.tce-audit-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.tce-hidden {
    display: none !important;
}

.tce-mt-8 {
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Tabel audit (folosit și în notar.php)
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tce-audit-table th,
.tce-audit-table td {
    text-align: left;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--tce-audit-border);
}

.tce-audit-table th {
    font-weight: 700;
    color: #374151;
    background: var(--tce-audit-gray-l);
    white-space: nowrap;
}

.tce-audit-table code {
    font-family: var(--tce-audit-mono);
    font-size: 0.8125rem;
    color: #1e3a5f;
    word-break: break-all;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DL — audit info
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.tce-audit-dl dt {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.tce-audit-dl dd {
    margin: 0;
    color: #111827;
    word-break: break-all;
}

.tce-audit-pre {
    background: #0d1117;
    color: #e6edf3;
    font-family: var(--tce-audit-mono);
    font-size: 0.8125rem;
    padding: 1.25rem;
    border-radius: var(--tce-audit-radius);
    overflow: auto;
    max-height: 400px;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

.tce-audit-list {
    margin: 0;
    padding-left: 1.5rem;
}

.tce-audit-list li {
    margin-bottom: 0.4rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Notar — formular acces
   ───────────────────────────────────────────────────────────────────────────── */
.tce-notar-app {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tce-notar-step {
    background: #fff;
    border: 1px solid var(--tce-audit-border);
    border-radius: var(--tce-audit-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.tce-notar-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.tce-notar-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.tce-notar-form input[type="text"] {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
}

.tce-form__input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: var(--tce-audit-mono);
    font-size: 0.875rem;
    border: 1.5px solid var(--tce-audit-border);
    border-radius: 6px;
    color: #111827;
    background: #fafafa;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.tce-form__input:focus {
    outline: none;
    border-color: var(--tce-audit-blue);
    background: #fff;
}

.tce-notar-success {
    background: #dcfce7;
    color: #166534;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #86efac;
    font-weight: 700;
    margin: 0 0 2rem;
}

.tce-notar-error {
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.tce-notar-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Butoane generale
   ───────────────────────────────────────────────────────────────────────────── */
.tce-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.tce-btn--primary {
    background: var(--tce-audit-blue);
    color: #fff;
}

.tce-btn--primary:hover {
    background: #1e40af;
    color: #fff;
}

.tce-btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid var(--tce-audit-border);
}

.tce-btn--secondary:hover {
    background: #e5e7eb;
}

/* Container butoane verificare publică */
.tce-audit-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    border: 1px solid #f59e0b;
}

.tce-audit-page .tce-btn,
.tce-notar-page .tce-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    line-height: 1.2;
}

.tce-audit-page .tce-btn--primary,
.tce-notar-page .tce-btn--primary {
    background: #1c2940;
    color: #fff;
}

.tce-audit-page .tce-btn--primary:hover,
.tce-notar-page .tce-btn--primary:hover {
    background: #2c3e5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 41, 64, 0.25);
}

.tce-audit-page .tce-btn--secondary,
.tce-notar-page .tce-btn--secondary {
    background: #fff;
    color: #1c2940;
    border: 1px solid #d1d5db;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DL key-value (template-uri direct)
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-page dl,
.tce-notar-page dl {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 0.75rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tce-audit-page dl dt,
.tce-notar-page dl dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: center;
}

.tce-audit-page dl dd,
.tce-notar-page dl dd {
    margin: 0;
    color: #111827;
    font-size: 0.95rem;
    word-break: break-all;
}

.tce-audit-page dl dd code,
.tce-notar-page dl dd code {
    background: #f3f4f6;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
    color: #1d4ed8;
    word-break: break-all;
    display: inline-block;
}

/* PRE blocks (Random.org JSON) */
.tce-audit-page pre,
.tce-notar-page pre {
    background: #1e293b;
    color: #cbd5e1;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-height: 400px;
    border: 1px solid #334155;
}

/* Liste numerotate coduri */
.tce-audit-page ol {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    margin: 0 0 1.5rem;
    max-height: 360px;
    overflow-y: auto;
}

.tce-audit-page ol li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.825rem;
    color: #1d4ed8;
    word-break: break-all;
}

/* Tabele */
.tce-audit-page table,
.tce-notar-page table {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 0 1.5rem;
}

.tce-audit-page table th,
.tce-notar-page table th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tce-audit-page table td,
.tce-notar-page table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    font-size: 0.9rem;
}

/* Winners indexes paragraph */
.tce-audit-page #tce-audit-winner-indexes {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-family: Consolas, Monaco, monospace;
    color: #1d4ed8;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Noscript
   ───────────────────────────────────────────────────────────────────────────── */
.tce-audit-noscript {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 1rem;
}

.tce-audit-noscript code {
    display: block;
    margin-top: 0.5rem;
    font-family: Consolas, monospace;
    font-size: 0.8rem;
    word-break: break-all;
    color: #1d4ed8;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive — toate componentele
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tce-audit-hero,
    .tce-notar-hero {
        padding: 2rem 1.5rem;
    }

    .tce-audit-page dl,
    .tce-notar-page dl {
        grid-template-columns: 1fr;
    }

    .tce-audit-buttons {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .tce-audit-section {
        padding: 1.25rem;
    }

    .tce-audit-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tce-audit-trail-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tce-audit-hash-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .tce-audit-dl {
        grid-template-columns: 1fr;
    }

    .tce-audit-dl dt {
        white-space: normal;
    }

    .tce-notar-codes-list .tce-btn {
        width: 100%;
        justify-content: center;
    }

    .tce-uf-step {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tce-uf-cards {
        grid-template-columns: 1fr;
    }

    .tce-uf-verify-cta__inner {
        flex-direction: column;
    }

    .tce-uf-verify-cta__actions {
        width: 100%;
    }

    .tce-uf-verify-cta__actions .tce-btn {
        flex: 1;
        justify-content: center;
    }

    .tce-uf-tech__summary {
        padding: 1rem;
    }

    .tce-uf-tech__body {
        padding: 1rem;
    }

    .tce-uf-meta-list {
        grid-template-columns: 1fr;
    }

    .tce-uf-hash-block {
        flex-direction: column;
    }

    .tce-uf-hash-block .tce-audit-copy-btn {
        align-self: flex-start;
    }

    .tce-uf-winner-hash {
        font-size: 0.6875rem;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   USER-FRIENDLY AUDIT — v2.5.0
   Componente noi: tce-uf-* (explainer, steps, status cards, tech details)
   Nu suprascrie stiluri existente tce-audit-* / tce-notar-*
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── Loading state (alias pentru tce-audit-loading existent) ── */
.tce-uf-loading {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* ── Secțiune titluri comune ── */
.tce-uf-section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #1c2940;
    font-family: Georgia, serif;
    margin: 2.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tce-uf-drawing-badge {
    display: inline-block;
    background: #e6a817;
    color: #1c2940;
    font-size: 0.875rem;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    vertical-align: middle;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Explainer — Secțiunea 1
   ───────────────────────────────────────────────────────────────────────────── */
.tce-uf-explainer {
    margin-bottom: 2.5rem;
}

.tce-uf-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 1.75rem;
    max-width: 720px;
}

.tce-uf-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tce-uf-step {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow 0.2s ease;
}

.tce-uf-step:hover {
    box-shadow: 0 4px 16px rgba(28,41,64,.1);
}

.tce-uf-step__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #1c2940;
    color: #e6a817;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 2px;
}

.tce-uf-step__body {
    flex: 1;
}

.tce-uf-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1c2940;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.tce-uf-step__text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #6b7280;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Status Cards — Secțiunea 2
   ───────────────────────────────────────────────────────────────────────────── */
.tce-uf-status {
    margin-bottom: 2.5rem;
}

.tce-uf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tce-uf-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tce-uf-card--ok {
    border-color: #22c55e;
    background: #f0fdf4;
}

.tce-uf-card--warn {
    border-color: #f59e0b;
    background: #fffbeb;
}

.tce-uf-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.tce-uf-card__icon--pending {
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 1.1rem;
    line-height: 1;
}

.tce-uf-card__icon--ok {
    background: #22c55e;
}

.tce-uf-card__icon--warn {
    background: #f59e0b;
}

.tce-uf-icon-pending {
    font-size: 1.1rem;
    color: #9ca3af;
}

.tce-uf-card__body {
    flex: 1;
    min-width: 0;
}

.tce-uf-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1c2940;
    margin: 0 0 0.25rem;
}

.tce-uf-card__desc {
    font-size: 0.875rem;
    color: #374151;
    margin: 0 0 0.25rem;
    line-height: 1.5;
}

.tce-uf-card__meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* ── Câștigători simpli ── */
.tce-uf-winners {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tce-uf-winners__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1c2940;
    margin: 0 0 0.5rem;
}

.tce-uf-winners__note {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.tce-uf-winners-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tce-uf-winner-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 0.875rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.tce-uf-winner-pos {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #1c2940;
    color: #e6a817;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tce-uf-winner-hash {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.75rem;
    color: #1e3a5f;
    word-break: break-all;
    line-height: 1.5;
}

/* ── CTA Verificare ── */
.tce-uf-verify-cta {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tce-uf-verify-cta__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tce-uf-verify-cta__text {
    flex: 1;
    min-width: 220px;
}

.tce-uf-verify-cta__text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1c2940;
    margin: 0 0 0.4rem;
}

.tce-uf-verify-cta__text p {
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
    line-height: 1.55;
}

.tce-uf-verify-cta__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Detalii tehnice — Secțiunea 3 (details/summary)
   ───────────────────────────────────────────────────────────────────────────── */
.tce-uf-tech {
    margin-bottom: 3rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.tce-uf-tech__summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 1.5rem;
    background: #f9fafb;
    cursor: pointer;
    user-select: none;
    list-style: none;
    border-radius: 12px;
    transition: background 0.15s ease;
}

/* Ascunde triunghiul default al summary pe toate browserele */
.tce-uf-tech__summary::-webkit-details-marker { display: none; }
.tce-uf-tech__summary::marker { display: none; }

.tce-uf-tech[open] .tce-uf-tech__summary {
    background: #f3f4f6;
    border-radius: 12px 12px 0 0;
}

.tce-uf-tech__summary:hover {
    background: #ebebeb;
}

.tce-uf-tech__summary-label {
    font-weight: 700;
    color: #1c2940;
    font-size: 0.9375rem;
}

.tce-uf-tech__summary-hint {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 400;
}

.tce-uf-tech__chevron {
    margin-left: auto;
    width: 18px;
    height: 18px;
    border-right: 2.5px solid #6b7280;
    border-bottom: 2.5px solid #6b7280;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    position: relative;
    top: -3px;
}

.tce-uf-tech[open] .tce-uf-tech__chevron {
    transform: rotate(225deg);
    top: 3px;
}

.tce-uf-tech__body {
    padding: 1.5rem;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
}

.tce-uf-tech-row {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tce-uf-tech-row:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tce-uf-tech-row__label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1c2940;
    margin: 0 0 0.35rem;
}

.tce-uf-tech-row__note {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.875rem;
    line-height: 1.5;
}

.tce-uf-hash-block {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.875rem;
}

.tce-uf-hash {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.8125rem;
    color: #1e3a5f;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
    background: none;
    padding: 0;
}

.tce-uf-meta-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.25rem;
    font-size: 0.875rem;
    margin: 0;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.tce-uf-meta-list dt {
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.875rem;
    align-self: center;
}

.tce-uf-meta-list dd {
    margin: 0;
    color: #111827;
}

.tce-uf-indexes-raw {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9rem;
    color: #1d4ed8;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin: 0;
    word-break: break-all;
}

.tce-uf-tech__api-link {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 1.25rem 0 0;
}

.tce-uf-tech__api-link a {
    color: #1d4ed8;
    word-break: break-all;
}

/* ─────────────────────────────────────────────────────────────────────────
   Notar — Hash comparator side-by-side (P3-4)
   ───────────────────────────────────────────────────────────────────────── */
.tce-notar-hash-compare {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}
.tce-notar-hash-compare h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #1b4332;
}
.tce-notar-hash-help {
    margin: 0 0 0.875rem;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
}
.tce-notar-hash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}
@media (min-width: 768px) {
    .tce-notar-hash-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.tce-notar-hash-cell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.625rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.tce-notar-hash-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.tce-notar-hash-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    color: #1a1a1a;
    word-break: break-all;
    line-height: 1.4;
    background: transparent;
    padding: 0;
}
.tce-notar-hash-loading {
    color: #94a3b8;
    font-style: italic;
}
.tce-notar-hash-badge {
    padding: 0.625rem 0.875rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.4;
}
.tce-notar-hash-badge--pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}
.tce-notar-hash-badge--match {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #16a34a;
}
.tce-notar-hash-badge--mismatch {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
}
.tce-notar-hash-badge--mismatch small {
    display: block;
    margin-top: 0.5rem;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.5;
}
.tce-notar-hash-badge--mismatch code {
    background: rgba(0,0,0,0.05);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════════════════
 * Audit public simplificat — carduri stil Loto Romania (Wave 5)
 * ════════════════════════════════════════════════════════════ */

/* Grid 2 coloane pe desktop, 1 pe mobil */
.tce-uf-cards--simple {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
    .tce-uf-cards--simple {
        grid-template-columns: 1fr;
    }
}

/* Card simplu — border mai discret, fără animație de status */
.tce-uf-card--simple {
    border-color: #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    align-items: flex-start;
}

.tce-uf-card--simple:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Card audit notarial — accent neutru distinct */
.tce-uf-card--notarial {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* Icon neutru (gri slate) pentru card notarial */
.tce-uf-card__icon--neutral {
    background: #64748b;
}

/* Link inline în card */
.tce-uf-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1d6fa4;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tce-uf-card__link:hover,
.tce-uf-card__link:focus {
    color: #1558a0;
    text-decoration: underline;
}
