:root {
    --bg: #eef2f8;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #1e3a8a;
    --primary-2: #1d4ed8;
    --gold: #b68a2c;
    --border: #d7deea;
    --soft: #f8fafc;
    --danger: #b91c1c;
    --shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(30, 58, 138, .12), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.62;
}

a {
    color: inherit;
}

.topbar {
    background: linear-gradient(90deg, #12245c 0%, #1e3a8a 60%, #263f88 100%);
    color: #fff;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 27px;
    letter-spacing: .8px;
    font-family: Arial, Helvetica, sans-serif;
}

.topbar nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
}

.topbar nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    opacity: .96;
}

.topbar nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.container {
    max-width: 1420px;
    margin: 28px auto;
    padding: 0 20px;
}

.doctoral-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(241, 245, 249, .94)),
        repeating-linear-gradient(45deg, rgba(30, 58, 138, .04) 0 12px, transparent 12px 24px);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 34px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.2px;
    font-family: Arial, Helvetica, sans-serif;
}

.doctoral-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
    color: #111827;
}

.hero-subtitle {
    max-width: 860px;
    font-size: 18px;
    color: #334155;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.hero-metrics div {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--gold);
    border-radius: 16px;
    padding: 16px;
}

.hero-metrics strong {
    display: block;
    font-size: 34px;
    color: var(--primary);
    font-family: Arial, Helvetica, sans-serif;
}

.hero-metrics span {
    color: var(--muted);
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
}

.doctoral-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.publication-main,
.domain-sidebar {
    min-width: 0;
}

.section-heading {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.section-heading h2 {
    margin: 0;
    font-size: 30px;
}

.small-link {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--primary-2);
    font-weight: 800;
    text-decoration: none;
}

.publication-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.publication-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .11);
}

.publication-cover {
    display: flex;
    width: 150px;
    min-height: 210px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f1f5f9;
    text-decoration: none;
}

.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-cover {
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(160deg, #1e3a8a 0%, #0f172a 100%);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
}

.publication-content h3 {
    margin: 10px 0 6px;
    font-size: 25px;
    line-height: 1.25;
}

.publication-content h3 a {
    text-decoration: none;
    color: #111827;
}

.publication-content h3 a:hover {
    color: var(--primary-2);
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 900;
    font-family: Arial, Helvetica, sans-serif;
}

.badge-muted {
    background: #f1f5f9;
    color: #334155;
}

.author-line {
    color: #334155;
    margin: 4px 0 10px;
    font-size: 15px;
}

.abstract-preview {
    color: #334155;
    margin: 0 0 14px;
}

.publication-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
}

.domain-sidebar {
    position: sticky;
    top: 18px;
}

.side-card,
.card,
.hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.side-card h3,
.card h2,
.card h1 {
    margin-top: 0;
}

.domain-filter {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    margin-bottom: 9px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.domain-filter span {
    color: #1f2937;
}

.domain-filter strong {
    background: #eef2ff;
    color: var(--primary);
    min-width: 34px;
    text-align: center;
    padding: 3px 8px;
    border-radius: 999px;
}

.domain-filter:hover,
.domain-filter.active {
    border-color: var(--primary-2);
    background: #eff6ff;
}

.editorial-note ol {
    margin-bottom: 0;
    padding-left: 20px;
}

.muted {
    color: var(--muted);
}

.empty-state {
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
}

label {
    display: block;
    font-weight: 800;
    margin: 12px 0 6px;
    font-family: Arial, Helvetica, sans-serif;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 16px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button,
.btn {
    display: inline-block;
    border: 0;
    background: var(--primary-2);
    color: #fff;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    margin-top: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.btn:hover {
    filter: brightness(.96);
}

.btn-secondary {
    background: #475569;
}

.btn-danger {
    background: var(--danger);
}

.btn-small {
    padding: 8px 12px;
    margin-top: 0;
    font-size: 14px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.table th,
.table td {
    border-bottom: 1px solid var(--border);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.flash {
    max-width: 1420px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
}

.flash.success {
    background: #dcfce7;
    color: #166534;
}

.flash.error {
    background: #fee2e2;
    color: #991b1b;
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 1100px) {
    .doctoral-hero,
    .doctoral-layout {
        grid-template-columns: 1fr;
    }

    .domain-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 12px;
    }

    .doctoral-hero {
        padding: 22px;
    }

    .publication-card {
        grid-template-columns: 1fr;
    }

    .publication-cover {
        width: 100%;
        max-width: 260px;
        min-height: 330px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

.profile-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.author-profile-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    border: 1px solid var(--border);
    border-top: 5px solid var(--gold);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.author-avatar-large {
    width: 148px;
    height: 148px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ffffff;
    outline: 2px solid var(--gold);
    background: linear-gradient(135deg, var(--primary), #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 54px;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(15,23,42,.18);
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-card h1,
.author-profile-card h2 {
    margin: 10px 0 8px;
    line-height: 1.18;
}

.profile-specialization {
    color: var(--primary);
    font-weight: 900;
    font-family: Arial, Helvetica, sans-serif;
}

.profile-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
}

.profile-links a {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
}

.profile-stat-grid div {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.profile-stat-grid strong {
    display: block;
    font-size: 26px;
    color: var(--primary);
    font-family: Arial, Helvetica, sans-serif;
}

.profile-stat-grid span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
}

.publication-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

.publication-author-box {
    position: sticky;
    top: 18px;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 12px;
}

.author-mini-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, var(--primary), #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    flex: 0 0 54px;
}

.author-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-line {
    margin: 0;
}

.author-line a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

.author-affiliation {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.table-responsive {
    overflow-x: auto;
}

.compact-card {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .profile-layout,
    .publication-page-layout {
        grid-template-columns: 1fr;
    }

    .publication-author-box {
        position: static;
    }
}

.isbn-line {
    margin: 6px 0 10px;
    color: #1e3a8a;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== PATCH: eliminare statistici + copertă încadrată perfect ===== */

.hero-metrics {
    display: none !important;
}

.doctoral-hero {
    grid-template-columns: 1fr !important;
}

.publication-card {
    grid-template-columns: 190px minmax(0, 1fr) !important;
    align-items: stretch;
}

.publication-cover {
    width: 190px !important;
    min-height: unset !important;
    height: auto !important;
    aspect-ratio: 2 / 3;
    padding: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center;
    border-radius: 10px;
    background: #ffffff;
}

.placeholder-cover {
    padding: 0 !important;
}

.book-cover-frame {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 2 / 3;
    min-height: 420px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center;
    border-radius: 10px;
    background: #ffffff;
}

@media (max-width: 700px) {
    .publication-card {
        grid-template-columns: 1fr !important;
    }

    .publication-cover {
        width: 100% !important;
        max-width: 260px;
        margin: 0 auto;
    }

    .book-cover-frame {
        max-width: 280px;
        min-height: 360px;
    }
}

.inline-payment-form {
    margin: 0;
    display: inline-block;
}

.inline-payment-form button {
    margin-top: 0;
}
