* {
    box-sizing: border-box;
}

:root {
    --bg-main: #050814;
    --bg-panel: #0b1020;
    --bg-card: #111827;
    --accent-red: #f97373;
    --accent-red-strong: #ef4444;
    --accent-soft: #4b5563;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
}

/* ======== ALAP BODY (login/reg) ======== */

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2933 0, #050814 55%, #020617 100%);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 16px;
}

.shell {
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.13), transparent 55%) no-repeat,
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 60%) no-repeat,
                var(--bg-panel);
    border-radius: 28px;
    box-shadow: 0 26px 80px rgba(0,0,0,0.85), 0 0 40px rgba(239, 68, 68, 0.35);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

@media (max-width: 880px) {
    .shell {
        grid-template-columns: 1fr;
    }
}

/* LEFT – logo + flavor */
.side-left {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: radial-gradient(circle at top, rgba(239, 68, 68, 0.2), transparent 55%),
                linear-gradient(145deg, #020617 0, #020617 30%, #020617 100%);
    position: relative;
}

.side-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.04), transparent 65%);
    pointer-events: none;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1;
}

.brand-logo-wrap {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.3), rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.65);
    overflow: hidden;
}

.brand-logo-wrap img {
    max-width: 85%;
    max-height: 85%;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: "Oswald", system-ui;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-family: "Oswald", system-ui;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #f9fafb;
}

.hero-main {
    font-size: 1.05rem;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.hero-highlight {
    color: var(--accent-red-strong);
    font-weight: 500;
}

.hero-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hero-chip {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

.side-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* RIGHT – auth card */

.side-right {
    padding: 28px 28px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 65%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, #020617 0, #020617 45%, #020617 100%);
    border-radius: 22px;
    padding: 22px 22px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.85);
    border: 1px solid rgba(55, 65, 81, 0.9);
    position: relative;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(248, 113, 113, 0.8), rgba(59, 130, 246, 0.4), rgba(45, 212, 191, 0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.35;
    pointer-events: none;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.auth-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-title {
    font-family: "Oswald", system-ui;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f9fafb;
}

.auth-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6, 78, 59, 0.35);
    font-size: 0.75rem;
    color: #a7f3d0;
}

.dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

/* error banner */
.error-banner {
    background: rgba(248, 113, 113, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fecaca;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* tabs (login/reg) */
.tabs {
    display: flex;
    border-radius: 999px;
    background: #020617;
    padding: 3px;
    margin-bottom: 18px;
}

.tab {
    flex: 1;
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    transition: color 0.15s ease-out, transform 0.1s ease-out;
}

.tab.active {
    color: #020617;
    transform: translateY(-1px);
}

.tab::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background: linear-gradient(135deg, #f97373, #facc15);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: -1;
}

.tab.active::before {
    opacity: 1;
}

/* forms */
.form-container {
    position: relative;
    min-height: 250px;
}

/* Csak auth formok */
.auth-card .form-container form {
    display: none;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.18s ease-out;
}

.auth-card .form-container form.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field-row {
    position: relative;
}

input {
    width: 100%;
    padding: 10px 10px 10px 12px;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #020617;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border 0.16s ease-out, box-shadow 0.16s ease-out, background 0.16s ease-out;
}

input::placeholder {
    color: #6b7280;
}

input:focus {
    border-color: var(--accent-red-strong);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.7);
}

/* BUTTONOK */

.btn-primary {
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    color: #020617;
    background: linear-gradient(135deg, #f97373, #fb923c);
    box-shadow: 0 14px 32px rgba(248, 113, 113, 0.45);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, filter 0.1s ease-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(248, 113, 113, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(248, 113, 113, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: linear-gradient(135deg, #111827, #020617);
    color: #e5e7eb;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
    transition: background 0.12s ease-out, border-color 0.12s ease-out, transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.btn-secondary.small-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1f2937, #020617);
    border-color: rgba(248, 113, 113, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.95);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    font-size: 0.8rem;
    font-weight: 500;
    background: linear-gradient(135deg, #f97373, #b91c1c);
    color: #f9fafb;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0,0,0,0.9);
}

/* helper */

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.helper-link {
    color: var(--accent-red);
    text-decoration: none;
}

.helper-link:hover {
    text-decoration: underline;
}

.small-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========= DASHBOARD ========= */

.dashboard-body {
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
    display: block;
    margin: 0;
    min-height: 100vh;
}

.dashboard-wrapper {
    max-width: 1100px;
    margin: 0 auto 32px;
    padding: 0 16px 32px;
    color: var(--text-main);
    font-family: "Roboto", system-ui;
}

/* FELSŐ STICKY RÉSZ: header + tabs */

.dash-top {
    position: relative;        /* NE legyen sticky/fixed */
    z-index: 1;                /* alacsony réteg, a modal alatt */
    padding-top: 16px;
    padding-bottom: 8px;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
}





.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 16px 50px rgba(0,0,0,0.8);
}

.dash-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.dash-title {
    font-family: "Oswald", system-ui;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.dash-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.dash-logout {
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    color: #020617;
    background: linear-gradient(135deg, #f97373, #fb923c);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Tabs a dashboardon */

.dash-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.dash-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    text-decoration: none;
}

.dash-tab.active {
    background: linear-gradient(135deg, #f97373, #fb923c);
    color: #020617;
}

.dash-tab:link,
.dash-tab:visited {
    text-decoration: none;
}

.dash-main {
    margin-top: 12px;
}

.dash-tab-panel {
    display: none;
}

.dash-tab-panel.active {
    display: block;
}

.dash-card {
    padding: 20px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 16px 50px rgba(0,0,0,0.8);
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

.dash-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-form label {
    margin-top: 4px;
}

.dash-form input,
.dash-form select,
.dash-form textarea {
    margin-bottom: 6px;
    width: 100%;
}

.small-btn {
    margin-top: 10px;
}

/* Globális kereső */

.search-wrapper {
    position: relative;
    margin-right: 8px;
}

#global-search {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    font-size: 0.85rem;
    width: 220px;
}

.search-suggestions {
    position: absolute;
    top: 120%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    padding: 6px 0;
    display: none;
    z-index: 50;
    max-height: 320px;
    overflow-y: auto;
}

.suggest-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 4px 10px;
}

.suggest-item {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggest-item:hover {
    background: rgba(31, 41, 55, 0.9);
}

.suggest-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-empty {
    padding: 6px 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.suggest-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggest-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggest-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: radial-gradient(circle at top, #f97373, #111827);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Link a profilhoz */

.dash-search-link {
    font-size: 0.8rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.9);
}

/* Barátlista */

.list-friends {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.friend-item-link {
    text-decoration: none;
    color: inherit;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.friend-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: radial-gradient(circle at top, #f97373, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 0.9rem;
    font-weight: 600;
}

.friend-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.friend-username {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Eseménylista */

.list-events {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-events li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(31, 41, 55, 0.8);
}

.event-title {
    font-weight: 500;
}

.event-time,
.event-location,
.event-group,
.event-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== ÉRTESÍTÉSEK ===== */

.notif-wrapper {
    position: relative;
    margin-right: 8px;
}

.notif-button {
    position: relative;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notif-button:hover {
    border-color: rgba(248, 113, 113, 0.8);
}

.notif-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97373, #fb7185);
    color: #f9fafb;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-dropdown {
    position: absolute;
    top: 115%;
    right: 0;
    width: 280px;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 22px 64px rgba(0,0,0,0.95);
    padding: 6px 0;
    display: none;
    z-index: 60;
}

.notif-dropdown.open {
    display: block;
}

.notif-empty {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.notif-item {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-title {
    font-size: 0.83rem;
}

.notif-time {
    font-size: 0.7rem;
    color: #9ca3af;
}

.notif-actions {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

/* Mini gombok értesítésekben */

.btn-primary.tiny-btn,
.btn-secondary.tiny-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 999px;
    min-width: 70px;
    box-shadow: none;
}

/* ===== CSOPORT KÁRTYÁK / BOARDGAME KÁRTYÁK ===== */

.group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1100px) {
    .group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .group-grid {
        grid-template-columns: 1fr;
    }
}

.group-card-link {
    text-decoration: none;
    color: inherit;
}

.group-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(31, 41, 55, 0.95);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
    padding: 12px 12px 10px;
    height: 100%;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out, background 0.12s ease-out;
}

.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.95);
    border-color: rgba(248, 113, 113, 0.7);
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.18), rgba(15, 23, 42, 0.98));
}

.group-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.group-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-card-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: radial-gradient(circle at top, #f97373, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Új csoport / új társas kártya */

.group-card-create {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    cursor: pointer;
}

.group-card-create .group-card-inner {
    align-items: flex-start;
}

.group-card-create .group-card-avatar.create-avatar {
    border-radius: 999px;
    background: radial-gradient(circle at top, #22c55e, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-card-create .group-card-avatar.create-avatar span {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ecfdf5;
}

.group-card-create:hover {
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.2), rgba(15, 23, 42, 0.98));
    border-color: rgba(52, 211, 153, 0.8);
}

.group-card-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.group-card-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    min-height: 42px;
}

.group-card-meta {
    margin-top: 2px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.group-card-hint {
    font-size: 0.78rem;
    color: #a5b4fc;
}

/* Üres grid szöveg */

.group-empty-text {
    font-size: 0.9rem;
    color: #9ca3af;
    align-self: center;
}

/* Boardgame kategória pill-ek a modalban */
.boardgame-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
    margin-bottom: 4px;
}

.boardgame-owner-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.boardgame-rating-meta {
    font-size: 0.8rem;
    margin-left: auto;
}

.boardgame-rating-empty {
    color: var(--text-muted);
}

.boardgame-rating-count {
    color: var(--text-muted);
    margin-left: 2px;
}

.boardgame-meta-tags {
    margin-top: 2px;
}
.boardgame-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.boardgame-image-wrap {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at top, #f97373, #111827);
}

.boardgame-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boardgame-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #f9fafb;
}

.boardgame-main-info {
    flex: 1;
    min-width: 0;
}

.boardgame-title {
    margin: 0 0 4px;
}

.boardgame-owner {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.boardgame-cats {
    margin-top: 6px;
}

.boardgame-rating-summary {
    margin-top: 6px;
    font-size: 0.9rem;
}

.boardgame-rating-summary .boardgame-rating-count {
    margin-left: 4px;
    color: var(--text-muted);
}

.boardgame-rating-empty {
    color: var(--text-muted);
}

.boardgame-reviews {
    margin-top: 12px;
}

.boardgame-review-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 1.4rem;
    cursor: pointer;
    color: #4b5563;
    transition: color 0.12s ease-out;
}

/* hover + választás */
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #facc15;
}

.rating-stars input[type="radio"]:checked ~ label {
    color: #facc15;
}

.review-rating-stars {
    margin-right: 6px;
    letter-spacing: 1px;
}

.review-rating-value {
    font-size: 0.8rem;
    opacity: 0.8;
}

.boardgame-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boardgame-review-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.review-author {
    font-weight: 500;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-rating {
    margin-left: auto;
    font-size: 0.9rem;
}

.review-comment {
    margin-top: 4px;
    font-size: 0.9rem;
}



.boardgame-categories-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.boardgame-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.8);
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.78rem;
    cursor: pointer;
}

.boardgame-cat-pill input[type="checkbox"] {
    accent-color: #f97373;
}

.boardgame-cat-pill span {
    font-size: 0.78rem;
}

/* Boardgame címkék a kártyán */

.boardgame-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 0.72rem;
    margin-right: 4px;
}

/* ===== MODALOK ===== */

.hidden {
    display: none;
}

/* háttér overlay */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 900;              /* a headernél SOKKAL nagyobb */
}
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;             /* minden felett */
}

.modal.hidden {
    display: none;
}
.modal-backdrop.hidden {
    display: none;
}


.modal-card {
    width: 100%;
    max-width: 480px;
    background: #020617;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 26px 80px rgba(0,0,0,0.95);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #f97373;
}

.modal-subtext {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0;
    margin-bottom: 10px;
}

/* textarea stílus */

.input-like-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.85);
    border-radius: 10px;
    padding: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    resize: none;
    height: 110px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.25);
}

.input-like-textarea:focus {
    outline: none;
    border-color: rgba(255, 140, 120, 0.9);
    box-shadow: 0 0 10px rgba(255, 140, 120, 0.4);
}

/* PRIVACY TOGGLE */

.privacy-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.privacy-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
    border: 1px solid rgba(75, 85, 99, 0.7);
    background: rgba(15, 23, 42, 0.8);
    color: #d1d5db;
    cursor: pointer;
    transition: 0.15s ease;
}

.privacy-btn:hover {
    background: rgba(30, 41, 59, 0.9);
}

.privacy-btn.active {
    background: linear-gradient(90deg, #ec6f5c, #ff8f72);
    border-color: #ff8f72;
    color: white;
    box-shadow: 0 0 10px rgba(255, 140, 120, 0.4);
}

/* ===== BLUR, amikor modal nyitva van ===== */

body.modal-open .dash-top,
body.modal-open .dash-main {
    filter: blur(4px);
    pointer-events: none;
    transition: filter 0.15s ease-out;
}

body.modal-open {
    overflow: hidden;
}

/* ===== RESPONSIVE / TOUCH ===== */

.btn-primary,
.btn-secondary,
.dash-tab,
.notif-button,
.dash-logout,
.dash-search-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* tiny gombok is normálisak legyenek mobilon */
.btn-primary.tiny-btn,
.btn-secondary.tiny-btn {
    min-height: 32px;
    padding-inline: 10px;
}

/* 1024px alatt */

@media (max-width: 1024px) {
    .dashboard-wrapper {
        margin: 16px auto 24px;
        padding: 0 12px 24px;
    }

    .dash-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .dash-left {
        margin-bottom: 4px;
    }

    .dash-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .search-wrapper {
        width: 100%;
        order: 1;
    }

    #global-search {
        width: 100%;
    }

    .notif-wrapper {
        order: 2;
    }

    .dash-search-link,
    .dash-logout {
        order: 3;
    }

    .dash-tabs {
        flex-wrap: wrap;
    }

    .dash-tab {
        flex: 1 1 48%;
        justify-content: center;
        text-align: center;
    }
}

/* 768px alatt */

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding-top: 12px;
    }

    .page-wrapper {
        max-width: 100%;
        padding: 8px;
    }

    .side-left,
    .side-right {
        padding: 20px 18px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-main {
        font-size: 0.95rem;
    }

    .auth-card {
        max-width: 100%;
        padding: 18px 16px 16px;
    }

    .dash-header {
        padding: 10px 10px;
    }

    .dash-logo {
        width: 34px;
        height: 34px;
    }

    .dash-title {
        font-size: 0.8rem;
    }

    .dash-main {
        margin-top: 4px;
    }

    .dash-card {
        padding: 16px 14px;
    }

    .group-grid {
        grid-template-columns: 1fr;
    }

    .notif-dropdown {
        right: 0;
        width: min(280px, 90vw);
    }

    .dash-tabs {
        gap: 6px;
    }

    .dash-tab {
        font-size: 0.75rem;
        padding: 7px 10px;
    }

    .group-card {
        padding: 10px 10px 8px;
    }

    .group-card-avatar {
        width: 42px;
        height: 42px;
    }

    .group-card-title {
        font-size: 0.9rem;
    }

    .group-card-desc {
        font-size: 0.82rem;
    }

    .group-card-meta {
        font-size: 0.78rem;
    }

    .modal-card {
        max-width: 100%;
        margin: 0 12px;
        padding: 16px 14px 14px;
    }
}

/* 480px alatt */

@media (max-width: 480px) {
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .dash-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-wrapper {
        margin-right: 0;
    }

    .notif-wrapper {
        margin-right: 0;
    }

    .dash-search-link,
    .dash-logout {
        padding-inline: 10px;
        font-size: 0.72rem;
    }

    .auth-title {
        font-size: 1.05rem;
    }

    .tabs {
        margin-bottom: 14px;
    }

    .tab {
        font-size: 0.75rem;
        padding: 7px 0;
    }
}

/* ===========================
   NAPTÁR
   =========================== */

.calendar-root {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.calendar-current {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.calendar-nav-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(148, 163, 184, 0.18);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s ease, transform 0.05s ease;
}

.calendar-nav-btn:hover {
    background: rgba(148, 163, 184, 0.35);
}

.calendar-nav-btn:active {
    transform: translateY(1px);
}

.calendar-legend {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: #9ca3af;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.legend-dot-today {
    border: 2px solid rgba(251, 146, 60, 0.9);
}

.legend-dot-event {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(244, 114, 182, 0.8));
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-cell {
    min-height: 90px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.calendar-cell-header {
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    min-height: auto;
}

.calendar-cell-empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

.calendar-cell-day {
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.calendar-cell-day:hover {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.calendar-cell-today {
    border-color: rgba(251, 146, 60, 0.9);
    box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.4);
}

.calendar-cell-has-event {
    background: radial-gradient(circle at top left,
        rgba(59, 130, 246, 0.4),
        rgba(15, 23, 42, 0.98));
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.calendar-event {
    display: block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-time {
    opacity: 0.8;
}

.calendar-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-more {
    margin-top: 2px;
    font-size: 0.7rem;
    opacity: 0.8;
}

.event-category-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.event-cat-pill input {
    display: none;
}

.event-cat-pill span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid transparent;
    cursor: pointer;
}

.event-cat-pill input:checked + span {
    border-color: rgba(251, 146, 60, 0.9);
    background: linear-gradient(90deg, #f97316, #fb7185);
}

.event-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.event-invitees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.invitee-pill input {
    display: none;
}

.invitee-pill span {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    background: rgba(30, 64, 175, 0.35);
    cursor: pointer;
}

.invitee-pill span small {
    opacity: 0.7;
    font-size: 0.75rem;
}

.invitee-pill input:checked + span {
    background: rgba(59, 130, 246, 0.9);
}

.event-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.event-rsvp-section {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.event-rsvp-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-rsvp-buttons label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    font-size: 0.85rem;
}

.event-rsvp-buttons input {
    display: none;
}

.event-rsvp-buttons input:checked + span {
    color: #0f172a;
    background: #fbbf24;
}

.event-rsvp-overview {
    font-size: 0.8rem;
    color: #e5e7eb;
    display: grid;
    gap: 0.25rem;
}

.calendar-event {
    display: block;
    padding: 0.15rem 0.4rem;
    margin-top: 0.15rem;
    border-radius: 999px;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.event-color-0 { background: rgba(96, 165, 250, 0.85); }
.event-color-1 { background: rgba(129, 140, 248, 0.85); }
.event-color-2 { background: rgba(244, 114, 182, 0.85); }
.event-color-3 { background: rgba(52, 211, 153, 0.85); }
.event-color-4 { background: rgba(251, 146, 60, 0.85); }
