:root {
    --color-navy: #0f2d52;
    --color-navy-light: #1a4a6e;
    --color-green: #1f6b4f;
    --color-green-hover: #3cb371;
    --color-accent: #3cb371;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(15, 45, 82, 0.08);
    --font: "Plus Jakarta Sans", system-ui, sans-serif;
    --site-max-width: 1280px;
    --site-padding-x: 32px;
    --navbar-height: 72px;
}

@media (min-width: 1400px) {
    :root {
        --site-max-width: 1360px;
    }
}

@media (max-width: 768px) {
    :root {
        --site-padding-x: 20px;
    }
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--color-text);
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
    min-height: 100vh;
}

.site-container,
.nav-container,
.article-hero-inner,
.article-page-container,
.article-layout {
    width: 100%;
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-padding-x);
    padding-right: var(--site-padding-x);
    box-sizing: border-box;
}

main.flex-grow-1 {
    margin: 0;
    padding: 0;
}

/* —— Prémium navbar —— */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(15, 45, 82, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-navbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

.site-navbar .nav-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 0.75rem 1rem;
}

.site-navbar .navbar-collapse {
    flex-grow: 1;
}

.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.site-navbar .navbar-brand:hover {
    color: #fff !important;
    opacity: 0.92;
}

.site-navbar .brand-icon {
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.site-navbar .brand-text {
    line-height: 1.1;
}

.site-navbar__toggler {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px;
    padding: 0.4rem 0.55rem;
}

.site-navbar__toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(60, 179, 113, 0.35);
}

.site-navbar .navbar-nav--main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.site-navbar .navbar-nav--user {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin: 0 0 0 auto;
    padding: 0;
}

.site-navbar .nav-link {
    position: relative;
    padding: 0.35rem 0 !important;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78) !important;
    transition: color 0.25s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: #fff !important;
}

.site-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background: #3cb371;
    transition: width 0.25s ease;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
    width: 100%;
}

.site-navbar .nav-link.active {
    color: #fff !important;
}

.site-navbar .admin-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px !important;
    border-radius: 999px;
    background: rgba(60, 179, 113, 0.15);
    color: #76e2a2 !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-navbar .nav-link--profile::after,
.site-navbar .nav-profile-link::after {
    display: none;
}

.site-navbar .nav-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem !important;
    position: relative;
}

.site-navbar .nav-profile-avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    object-fit: cover;
    background: #fff;
    overflow: hidden;
}

.site-navbar .admin-link::after {
    display: none;
}

.site-navbar .admin-link:hover {
    background: rgba(60, 179, 113, 0.28);
    color: #9ef0c0 !important;
}

.site-navbar .admin-link--active {
    background: rgba(60, 179, 113, 0.32);
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(118, 226, 162, 0.45);
}

.site-navbar .logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: transparent;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.25s ease;
}

.site-navbar .logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
}

.site-navbar .register-btn {
    min-height: 40px;
    padding: 0.45rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .site-navbar .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .site-navbar .navbar-nav--main {
        margin-left: 2rem;
    }
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        padding: 1rem 0 0.5rem;
    }

    .site-navbar .navbar-nav--main,
    .site-navbar .navbar-nav--user {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        width: 100%;
    }

    .site-navbar .navbar-nav--user {
        margin: 0.75rem 0 0;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-navbar .nav-item {
        width: 100%;
    }

    .site-navbar .nav-link {
        display: block;
        width: 100%;
        padding: 0.65rem 0 !important;
    }

    .site-navbar .nav-link::after {
        bottom: 0.35rem;
    }

    .site-navbar .admin-link {
        width: auto;
    }

    .site-navbar .logout-btn,
    .site-navbar .register-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.35rem;
    }
}

.btn-accent {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-accent:hover {
    background: var(--color-green-hover);
    border-color: var(--color-green-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary {
    --bs-btn-bg: #1f6b4f;
    --bs-btn-border-color: #1f6b4f;
    --bs-btn-hover-bg: #3cb371;
    --bs-btn-hover-border-color: #3cb371;
    --bs-btn-active-bg: #185a42;
    --bs-btn-active-border-color: #185a42;
    --bs-btn-disabled-bg: #1f6b4f;
    --bs-btn-disabled-border-color: #1f6b4f;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 700;
}

.btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.85);
    --bs-btn-hover-color: #0f2d52;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
}

.link-accent {
    color: var(--color-green);
    font-weight: 600;
    text-decoration: none;
}

.link-accent:hover {
    color: var(--color-green-hover);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 55%, #1a4d3e 100%);
    color: #fff;
    padding: 4rem 0 5rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.hero-values li {
    padding: 0.65rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-icon {
    font-size: 1.25rem;
}

.bg-surface {
    background: var(--color-surface);
}

.cta-section {
    background: var(--color-navy);
}

/* Cards */
.content-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(12, 35, 64, 0.12);
}

.card-img-cover {
    height: 160px;
    object-fit: cover;
}

.card-img-placeholder {
    height: 160px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.drill-placeholder {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.category-badge {
    background: rgba(26, 143, 92, 0.12);
    color: var(--color-green);
    font-weight: 600;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--color-surface);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.tag-pill-link {
    text-decoration: none;
}

.tag-pill-link:hover {
    background: #e2e8f0;
    color: var(--color-navy);
}

/* Page */
.page-header {
    background: var(--color-surface);
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.filter-bar {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

/* Article detail */
.article-page .article-hero {
    height: auto;
    background-size: unset;
    background-position: unset;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

.content-prose p {
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* Rich text (Quill admin + publikus HTML) */
.rich-editor {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.rich-editor .ql-toolbar {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border-color: #dee2e6;
    font-family: var(--font);
}

.rich-editor .ql-container {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    border-color: #dee2e6;
    font-family: var(--font);
    font-size: 1rem;
}

.rich-editor--summary .ql-container {
    min-height: 140px;
}

.rich-editor--adaptation .ql-container {
    min-height: 420px;
}

.rich-editor--drill-desc .ql-container {
    min-height: 220px;
}

.rich-editor--drill-bullet .ql-container {
    min-height: 120px;
}

.rich-editor--summary .ql-toolbar,
.rich-editor--adaptation .ql-toolbar,
.rich-editor--drill-desc .ql-toolbar {
    position: sticky;
    top: 4.5rem;
    z-index: 10;
    background: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
}

.admin-source-notice {
    background: #f0f9f4;
    border: 1px solid rgba(31, 107, 79, 0.25);
    border-left: 4px solid #3cb371;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    color: #334155;
}

.admin-card--source .admin-card__head {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9f4 100%) !important;
}

.rich-content {
    line-height: 1.75;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--color-navy);
}

.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.25rem; }
.rich-content h4 { font-size: 1.1rem; }

.rich-content ul,
.rich-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.rich-content blockquote {
    border-left: 4px solid var(--color-green);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--color-muted);
    font-style: italic;
}

.rich-content a {
    color: var(--color-green);
    text-decoration-underline;
}

.rich-content a:hover {
    color: var(--color-green-hover);
}

.rich-content--summary {
    font-size: 1.125rem;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.rich-editor .ql-editor video.article-html-video,
.rich-editor .ql-editor iframe.ql-video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0.75rem 0;
    border-radius: 12px;
    background: #020617;
}

.rich-editor .ql-editor iframe.ql-video {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 220px;
    border: 0;
}

.rich-editor .ql-editor video.article-html-video {
    max-height: 420px;
}

.source-block {
    background: var(--color-surface);
    border-left: 4px solid var(--color-green);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
}

.source-block-title {
    color: var(--color-navy);
    font-weight: 700;
}

.source-list li {
    margin-bottom: 0.35rem;
}

/* Drill */
.drill-main-image,
.drill-image-placeholder {
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    background: var(--color-surface);
}

.drill-specs dt {
    color: var(--color-muted);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Auth */
.auth-card {
    border: none;
    border-radius: var(--radius);
}

.profile-card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

/* Admin */
.admin-page {
    max-width: 1200px;
}

.admin-page__header .admin-page__back:hover {
    color: var(--color-navy) !important;
}

.admin-card {
    border-radius: var(--radius) !important;
}

.admin-card__head {
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}

.admin-card .card-body {
    padding: 1.25rem;
}

.admin-sidebar-sticky {
    position: sticky;
    top: 5.5rem;
}

.admin-form--article .form-label {
    margin-bottom: 0.35rem;
}

.admin-form__actions .btn-lg {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

/* Tag input (admin) */
.tag-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.45rem 0.65rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--radius);
    cursor: text;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tag-input:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.tag-input__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem 0.2rem 0.65rem;
    background: rgba(26, 143, 92, 0.12);
    color: var(--color-green);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.tag-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-green);
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.75;
}

.tag-chip__remove:hover {
    opacity: 1;
    background: rgba(26, 143, 92, 0.2);
}

.tag-input__field {
    flex: 1 1 120px;
    min-width: 100px;
    border: none;
    outline: none;
    padding: 0.2rem 0.1rem;
    font-size: 0.95rem;
    background: transparent;
}

.admin-layout .admin-table {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-actions {
    white-space: nowrap;
}

.admin-actions form {
    display: inline;
}

.stat-card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

/* Footer */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
}

.site-footer .site-container {
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
}

.footer-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

.site-footer p.text-muted {
    color: rgba(255, 255, 255, 0.68) !important;
    line-height: 1.65;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3cb371;
}

.site-footer h6 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.site-footer .small.text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Flash toast – fix overlay, nem tolja a tartalmat */
.flash-toast-stack {
    position: fixed;
    top: calc(var(--navbar-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: min(520px, calc(100% - 2 * var(--site-padding-x)));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.flash-toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 45, 82, 0.1);
    box-shadow:
        0 20px 50px rgba(15, 45, 82, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    animation: flash-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.flash-toast.flash-toast--hiding {
    animation: flash-toast-out 0.28s ease forwards;
}

@keyframes flash-toast-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flash-toast-out {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

.flash-toast__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.flash-toast--success .flash-toast__icon {
    background: rgba(60, 179, 113, 0.15);
    color: #1f6b4f;
}

.flash-toast--success {
    border-left: 4px solid #3cb371;
}

.flash-toast--error .flash-toast__icon {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.flash-toast--error {
    border-left: 4px solid #dc2626;
}

.flash-toast--warning .flash-toast__icon {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.flash-toast--warning {
    border-left: 4px solid #f59e0b;
}

.flash-toast--info .flash-toast__icon {
    background: rgba(15, 45, 82, 0.1);
    color: #0f2d52;
}

.flash-toast--info {
    border-left: 4px solid #0f2d52;
}

.flash-toast__content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.flash-toast__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 2px;
}

.flash-toast__message {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: #0f2d52;
}

.flash-toast__close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin: -4px -6px 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.flash-toast__close:hover {
    background: rgba(15, 45, 82, 0.06);
    color: #0f2d52;
}

/* Rating / comments */
.rating-section {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.comments-section {
    margin-top: 0;
    padding-top: 0;
}

.comments-section__toolbar-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    min-height: 1.25rem;
}

.comments-section__count {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}

.comments-form {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 45, 82, 0.06);
    border-radius: 16px;
}

.comments-form__field {
    margin-bottom: 1rem;
}

.comments-form__textarea {
    border-radius: 12px;
    border-color: rgba(15, 45, 82, 0.12);
    resize: vertical;
    min-height: 100px;
}

.comments-form__textarea:focus {
    border-color: #3cb371;
    box-shadow: 0 0 0 0.2rem rgba(60, 179, 113, 0.2);
}

.comments-form__submit {
    min-height: 44px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.comments-guest-notice {
    margin-bottom: 1.25rem;
}

.comments-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid rgba(15, 45, 82, 0.08);
    border-radius: 14px;
}

.comments-toolbar__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 160px;
}

.comments-toolbar__label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0;
}

.comments-toolbar__select {
    min-width: 160px;
    border-radius: 10px;
    border-color: rgba(15, 45, 82, 0.15);
}

/* —— Reddit-stílusú comment thread —— */
.comments-thread-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-thread-root {
    position: relative;
}

.comment-thread-root--highlight .comment-root,
.comment-branch--highlight .comment-reply {
    box-shadow: 0 0 0 2px rgba(60, 179, 113, 0.28);
}

.comment-root {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 45, 82, 0.08);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 45, 82, 0.05);
    transition: background 0.2s ease;
}

.comment-root:hover {
    background: #fff;
}

.comment-root--deleted {
    background: #f8fafc;
    border-style: dashed;
}

.comment-reply {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.comment-reply:hover {
    background: rgba(15, 45, 82, 0.025);
}

.comment-reply--deleted .comment-body {
    color: #94a3b8;
    font-style: italic;
}

.comment-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-avatar--img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: 0 0 auto;
    object-fit: cover;
    background: #f1f5f9;
    overflow: hidden;
}

.comment-avatar--fallback {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f2d52;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    line-height: 1.3;
}

.comment-meta__author {
    font-weight: 800;
    color: #0f2d52;
}

.comment-meta__sep {
    color: #94a3b8;
    font-weight: 700;
}

.comment-meta__time {
    color: #64748b;
    font-weight: 500;
    cursor: default;
}

.comment-meta__points {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.82rem;
}

.comment-reply-to {
    margin: 0 0 0.5rem 48px;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

.comment-reply-to strong {
    color: #64748b;
    font-weight: 700;
}

.comment-reply-to__icon {
    color: #3cb371;
}

.comment-body {
    margin: 0 0 0.65rem;
    line-height: 1.65;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
}

.comment-body--deleted {
    color: #94a3b8;
    font-style: italic;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    margin-top: 0.25rem;
}

.comment-ball-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 45, 82, 0.12);
    background: #fff;
    color: #0f2d52;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
}

.comment-ball-btn--static {
    cursor: default;
}

a.comment-ball-btn {
    text-decoration: none;
}

a.comment-ball-btn:hover {
    border-color: rgba(60, 179, 113, 0.45);
    background: rgba(60, 179, 113, 0.08);
    color: #0f2d52;
}

button.comment-ball-btn:hover {
    border-color: rgba(60, 179, 113, 0.45);
    background: rgba(60, 179, 113, 0.08);
    transform: translateY(-1px);
}

.comment-ball-btn.is-voted {
    background: rgba(60, 179, 113, 0.14);
    border-color: rgba(60, 179, 113, 0.5);
    color: #1f6b4f;
}

.comment-action-btn {
    border: none;
    background: none;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.comment-action-btn--reply:hover {
    color: #1f6b4f;
}

.comment-action-btn--delete:hover {
    color: #ef4444;
}

.comment-delete-form {
    display: inline;
    margin: 0;
}

.comment-reply-slot {
    margin-top: 0.75rem;
}

.comment-reply-form {
    padding: 0.85rem 0 0;
    background: transparent;
    border: none;
}

.comment-reply-form__textarea {
    margin-bottom: 0.65rem;
    border-radius: 10px;
    border-color: rgba(15, 45, 82, 0.12);
    resize: vertical;
    min-height: 72px;
    font-size: 0.92rem;
}

.comment-reply-form__textarea:focus {
    border-color: #3cb371;
    box-shadow: 0 0 0 0.15rem rgba(60, 179, 113, 0.2);
}

.comment-reply-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.comment-reply-form__cancel {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.comment-reply-form__cancel:hover {
    color: #0f2d52;
}

.comment-children {
    margin-top: 0.25rem;
    margin-left: 28px;
    padding-left: 18px;
    border-left: 2px solid rgba(15, 45, 82, 0.12);
}

.comment-children.depth-1 {
    border-left-color: #3cb371;
}

.comment-children.depth-2 {
    border-left-color: #0f2d52;
}

.comment-children.depth-3 {
    border-left-color: #f59e0b;
}

.comment-children.depth-4 {
    border-left-color: #ef4444;
}

.comment-children--cap {
    margin-left: 0;
}

.comment-branch {
    position: relative;
}

@media (max-width: 575.98px) {
    .comment-root {
        padding: 18px 16px;
    }

    .comment-children {
        margin-left: 16px;
        padding-left: 12px;
    }

    .comment-children--cap {
        margin-left: 0;
    }

    .comment-reply-to {
        margin-left: 0;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.72rem;
    }
}

.comments-empty {
    margin: 0;
}

.comments-pagination {
    margin-top: 1.5rem;
}

.comments-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.comments-pagination__btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0 0.75rem;
    border: 1px solid rgba(15, 45, 82, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #0f2d52;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.comments-pagination__btn:hover:not(:disabled) {
    background: rgba(31, 107, 79, 0.08);
    border-color: rgba(31, 107, 79, 0.35);
    color: #1f6b4f;
}

.comments-pagination__btn--active {
    background: #1f6b4f;
    border-color: #1f6b4f;
    color: #fff;
}

.comments-pagination__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.comments-pagination__ellipsis {
    padding: 0 0.25rem;
    color: #94a3b8;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2.5rem 0 3rem;
    }

    .admin-actions .btn {
        margin-bottom: 0.25rem;
    }
}

/* —— Profil megtekintés (/auth/profil) —— */
.auth-page-wrap--profile {
    padding: 0;
    background: #eef2f7;
}

.profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 32px;
}

.profile-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 45, 82, 0.1);
    border: 1px solid rgba(15, 45, 82, 0.08);
}

.profile-cover {
    position: relative;
    height: 240px;
    background:
        radial-gradient(circle at 20% 25%, rgba(60, 179, 113, 0.35), transparent 28%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.12), transparent 26%),
        linear-gradient(135deg, #0f2d52 0%, #144272 45%, #1f6b4f 100%);
}

.profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.18;
    pointer-events: none;
}

.profile-card-body {
    padding: 0 40px 42px;
}

.profile-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: -70px;
    position: relative;
    z-index: 1;
}

.profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    min-width: 0;
}

.profile-avatar-large {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    border: 6px solid #fff;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 45, 82, 0.22);
    flex-shrink: 0;
    object-fit: cover;
}

.profile-identity__meta {
    min-width: 0;
    padding-bottom: 6px;
    margin-top: -44px;
}

.profile-display-name {
    margin: 0 0 4px;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.12;
    text-shadow:
        0 1px 2px rgba(15, 45, 82, 0.35),
        0 2px 14px rgba(15, 45, 82, 0.28);
}

.profile-card .profile-username {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #475569;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-badge-admin {
    background: rgba(60, 179, 113, 0.14);
    color: #1f6b4f;
    border: 1px solid rgba(60, 179, 113, 0.28);
}

.profile-badge-muted {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.profile-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: #1f6b4f;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(31, 107, 79, 0.22);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-btn:hover {
    background: #0f2d52;
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 45, 82, 0.2);
}

.profile-bio {
    max-width: 760px;
    margin: 18px 0 0;
    padding-left: 162px;
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
    white-space: pre-wrap;
}

.profile-bio--empty {
    color: #94a3b8;
    font-style: italic;
}

.profile-rank {
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: #475569;
}

.profile-rank__label {
    font-weight: 700;
    color: #64748b;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.profile-stats div {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(15, 45, 82, 0.08);
}

.profile-stats strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f2d52;
    line-height: 1.1;
    margin-bottom: 4px;
}

.profile-stats span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.profile-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.profile-section h2 {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1f6b4f;
    margin: 0 0 20px;
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 42px;
    margin: 0;
}

.profile-data-grid div {
    min-width: 0;
}

.profile-data-grid dt {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
}

.profile-data-grid dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2d52;
    line-height: 1.4;
}

.profile-data-grid__empty {
    color: #94a3b8;
    font-weight: 600;
}

.profile-section--account h2 {
    color: #64748b;
    font-size: 0.82rem;
}

.profile-account-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
    margin: 0;
}

.profile-account-list dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.profile-account-list dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

@media (max-width: 768px) {
    .profile-page {
        padding: 28px 18px;
    }

    .profile-cover {
        height: 190px;
    }

    .profile-card-body {
        padding: 0 22px 30px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -60px;
    }

    .profile-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .profile-avatar-large {
        width: 118px;
        height: 118px;
    }

    .profile-identity__meta {
        margin-top: 0;
    }

    .profile-display-name {
        color: #0f2d52;
        text-shadow: none;
    }

    .profile-card .profile-username {
        color: #64748b;
        text-shadow: none;
    }

    .profile-bio {
        padding-left: 0;
        margin-top: 14px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-data-grid,
    .profile-account-list {
        grid-template-columns: 1fr;
    }

    .profile-edit-btn {
        width: 100%;
    }
}
