/* =========================================================================
   KoPeOn - Auth oldalak stílusai (a projekt design rendszeréhez illesztve)
   Login, Register, Profile (tab rendszer)
   ========================================================================= */

body.auth-page,
body.profile-page {
    background: var(--app-bg, radial-gradient(ellipse at top left, #ffffff 0%, #f1f5f9 50%, #e8ecf4 100%));
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* ─── Auth oldalak háttér effektjei (orb-ok mint a landingpage-en) ────── */

.auth-page {
    position: relative;
    overflow-x: hidden;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.auth-page::before {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
    top: -120px;
    left: -120px;
    animation: orbFloat 18s ease-in-out infinite;
}

.auth-page::after {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
    bottom: -160px;
    right: -160px;
    animation: orbFloat 22s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

[data-theme="dark"] .auth-page::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
}

[data-theme="dark"] .auth-page::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
}

/* ─── Auth layout (login / register) ──────────────────────────────────── */

.auth-page .auth-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 40px 32px;
}

@media (max-width: 900px) {
    .auth-page .auth-wrap {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
}

.auth-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-main);
}

.auth-info__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.auth-info__brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.auth-info__tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    width: fit-content;
}

.auth-info__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 4.4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.auth-info__title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-info__desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0 0 32px;
    max-width: 460px;
}

.auth-info__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-info__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.auth-info__features li i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ─── Auth card (jobb oldal) ──────────────────────────────────────────── */

.auth-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    align-self: center;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.9;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .auth-form__row {
        grid-template-columns: 1fr;
    }
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.auth-field__label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-field__label i {
    color: var(--primary-color);
    font-size: 11px;
}

.auth-field__label--required::after {
    content: "*";
    color: var(--danger-color);
    margin-left: 2px;
}

.auth-field__input,
.auth-field__textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-sizing: border-box;
}

.auth-field__input:focus,
.auth-field__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px var(--primary-glare);
}

.auth-field__input::placeholder,
.auth-field__textarea::placeholder {
    color: var(--text-muted);
}

.auth-field__textarea {
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
}

.auth-field__hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.auth-field__error {
    font-size: 12px;
    color: var(--danger-color);
    margin-top: 2px;
    display: none;
    font-weight: 500;
}

.auth-field--invalid .auth-field__input,
.auth-field--invalid .auth-field__textarea {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.04);
}

.auth-field--invalid .auth-field__error {
    display: block;
}

.auth-field__icon-left {
    position: absolute;
    left: 14px;
    top: 36px;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 14px;
}

.auth-field__input--with-icon {
    padding-left: 40px;
}

.auth-field__toggle {
    position: absolute;
    right: 10px;
    top: 32px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    transition: var(--transition-fast);
}

.auth-field__toggle:hover {
    color: var(--primary-color);
    background: var(--primary-subtle);
}

.auth-button {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.auth-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
    opacity: 0;
    transition: var(--transition);
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(99, 102, 241, 0.5);
}

.auth-button:hover:not(:disabled)::after {
    opacity: 1;
}

.auth-button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-button--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--border-strong);
    box-shadow: none;
}

.auth-button--secondary:hover:not(:disabled) {
    background: var(--primary-subtle);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 16px var(--primary-glare);
    transform: translateY(-1px);
}

.auth-button--secondary::after {
    display: none;
}

.auth-button--danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.3);
}

.auth-button--danger:hover:not(:disabled) {
    box-shadow: 0 10px 32px rgba(239, 68, 68, 0.45);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ─── Email Confirmation Box ─────────────────────────────────────────────── */
.auth-confirm-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
}
.auth-confirm-box--warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}
.auth-confirm-box__icon {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 12px;
}
.auth-confirm-box--warning .auth-confirm-box__icon {
    color: #f59e0b;
}
.auth-confirm-box__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
}
.auth-confirm-box__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 6px;
    line-height: 1.5;
}
.auth-confirm-box__desc strong {
    color: var(--text-main);
    word-break: break-all;
}
.auth-confirm-box__hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Social Login Buttons ───────────────────────────────────────────────── */
.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg, #fff);
    color: var(--text-main);
}
.auth-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.auth-social-btn--google:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.04);
}
.auth-social-btn--github {
    background: #24292f;
    color: #fff;
    border-color: #24292f;
}
.auth-social-btn--github:hover {
    background: #1b1f23;
    border-color: #1b1f23;
    box-shadow: 0 4px 16px rgba(36, 41, 47, 0.3);
}
[data-theme="dark"] .auth-social-btn--github {
    background: #f0f0f0;
    color: #24292f;
    border-color: #f0f0f0;
}
[data-theme="dark"] .auth-social-btn--github:hover {
    background: #fff;
    border-color: #fff;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    display: none;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    border: 1px solid;
    animation: alertSlide 0.3s ease;
}

@keyframes alertSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-alert--show {
    display: flex;
}

.auth-alert--error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
}

.auth-alert--success {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}

.auth-alert__list {
    margin: 4px 0 0;
    padding-left: 18px;
}

.auth-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.auth-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-checkbox a:hover {
    text-decoration: underline;
}

.auth-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    height: 4px;
}

.auth-strength__seg {
    flex: 1;
    background: var(--border-color);
    border-radius: 2px;
    transition: var(--transition);
}

.auth-strength__seg--weak { background: #ef4444; }
.auth-strength__seg--medium { background: #f59e0b; }
.auth-strength__seg--strong { background: var(--success-color); }

.auth-strength__label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.auth-strength__label--weak { color: #ef4444; }
.auth-strength__label--medium { color: #f59e0b; }
.auth-strength__label--strong { color: var(--success-color); }

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px 9px 14px;
    color: var(--text-light);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.auth-back i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.auth-back:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-subtle);
    transform: translateX(-2px);
    box-shadow: 0 4px 14px var(--primary-glare);
}

.auth-back:hover i {
    transform: translateX(-2px);
}

/* ─── Profile oldal (tab rendszer) ────────────────────────────────────── */

.profile-page {
    padding: 0 0 80px;
}

.profile-wrap,
.admin-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    position: relative;
    z-index: 1;
}

.profile-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-glare), transparent);
    pointer-events: none;
}

[data-theme="dark"] .profile-header::before {
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    opacity: 0.4;
}

.profile-header > * {
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    border: 3px solid var(--card-bg);
}

.profile-info__name {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.profile-info__username {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 6px;
    font-weight: 600;
}

.profile-info__email {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-info__email i {
    color: var(--primary-color);
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.profile-loading i {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.profile-loading p {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* ─── Tab rendszer (mint a landingpage-en) — egységes profil és admin ──── */

.profile-tabs,
.admin-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.profile-tab,
.admin-tab {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: calc(var(--radius-lg) - 6px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-tab i {
    font-size: 14px;
}

.profile-tab:hover {
    color: var(--text-main);
    background: var(--primary-subtle);
}

.profile-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.profile-tab.active[data-color="green"] {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.profile-tab.active[data-color="orange"] {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

/* ─── Tab panelek ─────────────────────────────────────────────────────── */

.profile-panel {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: panelFade 0.3s ease;
}

.profile-panel--active {
    display: block;
}

@keyframes panelFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.profile-panel__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.profile-panel__icon--green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.profile-panel__icon--orange {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.profile-panel__title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

.profile-panel__desc {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.profile-panel__divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

/* ─── Stat kártyák ────────────────────────────────────────────────────── */

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.profile-stat {
    padding: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.profile-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.profile-stat--green::before { background: linear-gradient(180deg, #10b981, #14b8a6); }
.profile-stat--orange::before { background: linear-gradient(180deg, #f59e0b, #f97316); }
.profile-stat--purple::before { background: linear-gradient(180deg, #8b5cf6, #a78bfa); }

.profile-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 12px;
}

.profile-stat--green .profile-stat__icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.profile-stat--orange .profile-stat__icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.profile-stat--purple .profile-stat__icon {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.profile-stat__value {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 2px;
    letter-spacing: -0.02em;
}

.profile-stat__label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* ─── Activity lista ──────────────────────────────────────────────────── */

.profile-activity {
    margin-top: 28px;
}

.profile-activity__title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-activity__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: var(--transition);
}

.profile-activity__item:hover {
    background: var(--primary-subtle);
    border-color: var(--primary-color);
}

.profile-activity__item-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.profile-activity__item-text {
    flex: 1;
    min-width: 0;
}

.profile-activity__item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.profile-activity__item-time {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.profile-activity__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--bg-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
}

.profile-activity__empty i {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-color);
    opacity: 0.5;
}

.profile-activity__empty p {
    margin: 0;
    font-size: 14px;
}

/* ─── Inline alert (panel-eken belül) ─────────────────────────────────── */

.profile-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    display: none;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    margin-bottom: 8px;
    border: 1px solid;
    animation: alertSlide 0.3s ease;
}

.profile-alert--show { display: flex; }
.profile-alert--error { background: rgba(239, 68, 68, 0.08); color: var(--danger-color); border-color: rgba(239, 68, 68, 0.3); }
.profile-alert--success { background: rgba(16, 185, 129, 0.08); color: var(--success-color); border-color: rgba(16, 185, 129, 0.3); }

/* ─── Reszponzív ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
    }

    .profile-avatar {
        margin: 0 auto;
    }

    .profile-info__email {
        justify-content: center;
    }

    .profile-panel {
        padding: 24px;
    }

    .profile-tab,
    .admin-tab {
        padding: 10px 12px;
        font-size: 13px;
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .profile-tabs,
    .admin-tabs {
        grid-template-columns: 1fr;
    }

    .profile-tab span,
    .admin-tab span {
        display: inline;
    }

    .profile-tab,
    .admin-tab {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
    }

    .auth-info {
        padding: 0 8px 24px;
        text-align: center;
        align-items: center;
    }

    .auth-info__features {
        text-align: left;
    }

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

/* ─── Spinner ─────────────────────────────────────────────────────────── */

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* =========================================================================
   AUTH GATE (védett oldalak: polccímke, vonalkód, árlista)
   ========================================================================= */

body.gate-pending .gate-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

body.gate-pending {
    overflow: hidden;
}

.auth-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: gateFade 0.3s ease;
}

body.gate-pending .auth-gate-overlay {
    display: flex;
}

@keyframes gateFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-gate-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
    animation: gateSlide 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes gateSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-gate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.auth-gate-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 22px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.auth-gate-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.auth-gate-card__desc {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 32px;
}

.auth-gate-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-gate-card__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 4px 0;
}

.auth-gate-card__divider::before,
.auth-gate-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* =========================================================================
   ADMIN OLDAL
   ========================================================================= */

body.admin-page {
    background: var(--app-bg, radial-gradient(ellipse at top left, #ffffff 0%, #f1f5f9 50%, #e8ecf4 100%));
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    margin: 0;
    position: relative;
}

body.admin-page::before {
    content: '';
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 70%);
    top: -120px;
    right: -120px;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.admin-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    position: relative;
    z-index: 1;
}

.admin-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent);
    pointer-events: none;
}

[data-theme="dark"] .admin-header::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent);
}

.admin-header > * { position: relative; z-index: 1; }

.admin-header__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.admin-header__title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.admin-header__subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.admin-header__actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-tab:hover { color: var(--text-main); background: var(--primary-subtle); }

.admin-tab.active {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.admin-tab.active[data-color="blue"] {
    background: var(--primary-gradient);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.admin-tab.active[data-color="green"] {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.admin-panel {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: panelFade 0.3s ease;
}

.admin-panel--active { display: block; }

.admin-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-panel__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.admin-panel__icon--blue { background: var(--primary-subtle); color: var(--primary-color); }
.admin-panel__icon--green { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.admin-panel__title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

.admin-panel__desc {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.admin-panel__toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-search {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px 10px 38px;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-main);
    font-family: inherit;
    position: relative;
    transition: var(--transition);
}

.admin-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glare);
}

.admin-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.admin-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.admin-filter {
    padding: 10px 14px;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-main);
    font-family: inherit;
    cursor: pointer;
}

/* Users table */
.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: var(--bg-color);
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
    background: var(--primary-subtle);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.admin-user-avatar--admin {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.admin-user-info__name {
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.admin-user-info__username {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-badge--admin {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

.admin-badge--user {
    background: var(--primary-subtle);
    color: var(--primary-color);
}

.admin-badge--active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.admin-badge--inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.admin-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition-fast);
}

.admin-icon-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-subtle);
}

.admin-icon-btn--danger:hover {
    color: var(--danger-color);
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.08);
}

.admin-icon-btn--success:hover {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.admin-table-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.admin-table-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Activity list */
.admin-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.admin-activity-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.admin-activity-item__icon--login { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.admin-activity-item__icon--register { background: rgba(99, 102, 241, 0.12); color: var(--primary-color); }
.admin-activity-item__icon--admin { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.admin-activity-item__icon--delete { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.admin-activity-item__text {
    flex: 1;
    min-width: 0;
}

.admin-activity-item__title {
    margin: 0;
    color: var(--text-main);
    font-weight: 500;
}

.admin-activity-item__time {
    color: var(--text-muted);
    font-size: 12px;
    margin: 2px 0 0;
}

/* Action modal */
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: gateFade 0.2s ease;
}

.admin-modal-backdrop--show {
    display: flex;
}

.admin-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
    animation: gateSlide 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.admin-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.admin-modal--danger::before {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.admin-modal--success::before {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.admin-modal__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-modal--danger .admin-modal__icon {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger-color);
}

.admin-modal--success .admin-modal__icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.admin-modal__title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: -0.02em;
}

.admin-modal__desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
    text-align: center;
}

.admin-modal__actions {
    display: flex;
    gap: 10px;
}

.admin-modal__actions .auth-button {
    flex: 1;
}

.admin-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.admin-toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: toastSlide 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.admin-toast--success { border-left-color: #10b981; }
.admin-toast--error { border-left-color: var(--danger-color); }
.admin-toast--warning { border-left-color: #f59e0b; }

.admin-toast__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.admin-toast--success .admin-toast__icon { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.admin-toast--error .admin-toast__icon { background: rgba(239, 68, 68, 0.12); color: var(--danger-color); }
.admin-toast--warning .admin-toast__icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.admin-toast__text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .admin-header__actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .admin-tab span { display: none; }
    .admin-tab { padding: 10px 14px; }
    .admin-panel { padding: 20px; }
    .admin-table { font-size: 13px; }
    .admin-table th, .admin-table td { padding: 10px 12px; }
}
