:root {
    --bg: #f7f9fc;
    --white: #ffffff;
    --text: #172033;
    --muted: #607089;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --soft: #eaf1ff;
    --border: #dbe4f0;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    max-width: 850px;
}

.center {
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: white;
    font-size: 15px;
    box-shadow: var(--shadow);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 16px;
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--soft);
    color: var(--primary);
    font-size: 24px;
    border-radius: 12px;
    padding: 8px 12px;
}

.hero {
    padding: 90px 0 70px;
    background:
        radial-gradient(circle at top left, #dbeafe, transparent 35%),
        radial-gradient(circle at bottom right, #e0f2fe, transparent 35%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 42px;
    align-items: center;
}

.badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    margin: 0 0 22px;
    letter-spacing: -1.8px;
}

.hero p {
    font-size: 19px;
    color: var(--muted);
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn.secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn.large {
    min-height: 56px;
    padding: 0 30px;
}

.hero-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.hero-card h3 {
    margin-top: 0;
}

.hero-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.hero-card li {
    margin: 10px 0;
}

.section {
    padding: 78px 0;
}

.section.alt {
    background: white;
}

.section h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 24px;
    letter-spacing: -1px;
}

.section p {
    color: var(--muted);
    font-size: 17px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.card h3 {
    margin-top: 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.feature {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.05);
}

.feature span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 14px;
}

.feature h3 {
    margin: 0 0 10px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.timeline-item {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.timeline-item h3 {
    margin-top: 0;
}

.cta-section {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.86);
}

.cta-section .btn.primary {
    background: white;
    color: var(--primary);
}

.site-footer {
    background: #101827;
    color: white;
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    margin-top: 38px;
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 920px) {
    .hero-grid,
    .cards,
    .feature-list,
    .timeline,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        padding-top: 60px;
    }
}
.subscribe-form {
    margin-top: 32px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: var(--radius);
    padding: 28px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 700;
    color: white;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 16px;
    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: white;
}

.notice {
    margin: 24px 0;
    padding: 15px 18px;
    border-radius: 14px;
    font-weight: 700;
}

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

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

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table th {
    background: var(--soft);
    color: var(--primary);
}

/* Auth oldalak javítása: login / register */
.section .subscribe-form {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section .subscribe-form .form-field label {
    color: var(--text);
}

.section .subscribe-form input,
.section .subscribe-form select,
.section .subscribe-form textarea {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
}

.section .subscribe-form input::placeholder,
.section .subscribe-form textarea::placeholder {
    color: var(--muted);
}

.section .subscribe-form input:focus,
.section .subscribe-form select:focus,
.section .subscribe-form textarea:focus {
    border-color: var(--primary);
}
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0;
}

.notice.info {
    background: #dbeafe;
    color: #1e40af;
}

.mt-30 {
    margin-top: 30px;
}

.card + .dashboard-actions {
    margin-top: 24px;
}

.notice.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge.success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}
.finance-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.finance-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.finance-card span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.finance-card strong {
    display: block;
    font-size: 28px;
    color: var(--text);
}

@media (max-width: 760px) {
    .finance-cards {
        grid-template-columns: 1fr;
    }
}
.status-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

.audit-filter-form {
    margin-bottom: 28px;
}
.btn.danger {
    background: #dc2626;
    color: #ffffff;
}

.btn.danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.danger-link {
    color: #dc2626;
    font-weight: 800;
}

.danger-link:hover {
    color: #991b1b;
}
.status-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}
.error-section {
    min-height: 62vh;
    display: flex;
    align-items: center;
}

.error-container {
    display: flex;
    justify-content: center;
}

.error-card {
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 46px;
    text-align: center;
}

.error-icon-wrap {
    position: relative;
    width: 150px;
    height: 130px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon-wrap::before {
    content: "";
    position: absolute;
    width: 135px;
    height: 105px;
    background: #fee2e2;
    border-radius: 45% 55% 50% 50%;
    opacity: .9;
}

.error-lock {
    position: relative;
    z-index: 2;
    font-size: 76px;
}

.error-x {
    position: absolute;
    right: 20px;
    bottom: 22px;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    font-size: 36px;
    font-weight: 900;
    line-height: 42px;
    border: 4px solid #ffffff;
}

.error-card h1 {
    margin-bottom: 12px;
}

.error-message {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 24px;
}

.error-help {
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    color: var(--text);
    margin: 24px 0;
}

.error-actions {
    justify-content: center;
}

.legal-page {
    max-width: 980px;
}

.legal-page h1 {
    margin-bottom: 20px;
}

.legal-page h2 {
    margin-top: 34px;
    margin-bottom: 14px;
}

.legal-page h3 {
    margin-top: 22px;
    margin-bottom: 10px;
}

.legal-page p,
.legal-page li {
    line-height: 1.75;
}

.legal-page ul {
    margin: 12px 0 18px 24px;
}
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.dashboard-hero h1 {
    margin-bottom: 8px;
}

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

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.dashboard-stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.dashboard-stat-card span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-stat-card strong {
    font-size: 34px;
    color: var(--primary);
}

@media (max-width: 900px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}

.group-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.group-hero h1 {
    margin-bottom: 8px;
}

.group-hero-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.group-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.group-overview-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.group-overview-card span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.group-overview-card strong {
    font-size: 34px;
    color: var(--primary);
}

.progress-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin: 28px 0;
}

.progress-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.progress-panel-header strong {
    font-size: 18px;
}

.progress-panel-header span {
    font-weight: 900;
    color: var(--primary);
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    border-radius: 999px;
}

@media (max-width: 900px) {
    .group-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .group-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .group-overview-grid {
        grid-template-columns: 1fr;
    }
}