.gf-fc2 {
    --fc2-bg: #1c1c24;
    --fc2-bg-2: #23232e;
    --fc2-bg-3: #2a2a36;
    --fc2-border: rgba(255,255,255,.06);
    --fc2-border-2: rgba(255,255,255,.10);
    --fc2-text: #e5e7eb;
    --fc2-muted: #9ca3af;
    --fc2-dim: #6b7280;
    --fc2-green: #22c55e;
    --fc2-blue: #60a5fa;
    --fc2-gold: #fbbf24;
    --fc2-rose: #f472b6;
    --fc2-violet: #a78bfa;
    --fc2-amber: #f59e0b;
    background: var(--fc2-bg);
    border: 1px solid var(--fc2-border);
    border-radius: 14px;
    padding: 14px;
    font-family: inherit;
    color: var(--fc2-text);
    display: flex; flex-direction: column; gap: 10px;
}
.gf-fc2 *, .gf-fc2 *::before, .gf-fc2 *::after { box-sizing: border-box; }
.gf-fc2 a { text-decoration: none; }

/* ===== Profile id-card (auth) ===== */
.gf-fc2__id {
    display: flex; flex-direction: column;
    border-radius: 10px;
    background:
        radial-gradient(120px 90px at calc(100% + 20px) -20px, rgba(34,197,94,.22), transparent 70%),
        linear-gradient(135deg, rgba(34,197,94,.10), rgba(34,197,94,.01)),
        var(--fc2-bg-2);
    border: 1px solid rgba(34,197,94,.24);
    padding: 14px;
    position: relative;
}
.gf-fc2__id-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.gf-fc2 .gf-fc2__ava {
    width: 54px; height: 54px;
    min-width: 54px; min-height: 54px;
    max-width: 54px; max-height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #374151, #1f2937);
    display: grid; place-items: center;
    font-size: 22px; line-height: 1;
    border: 2px solid rgba(34,197,94,.35);
    position: relative; flex-shrink: 0; flex-grow: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.30);
    overflow: hidden; color: #fff; font-weight: 800;
    text-decoration: none; padding: 0;
}
.gf-fc2 .gf-fc2__ava img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.gf-fc2__id-text { min-width: 0; flex: 1; }
.gf-fc2__nick { font-weight: 800; font-size: 15px; color: #fff; line-height: 1.2; word-break: break-word; }
.gf-fc2__nick a { color: #fff; }
.gf-fc2__lvl {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 6px;
    font-size: 10.5px; font-weight: 800; color: var(--fc2-gold);
    background: rgba(251,191,36,.10);
    padding: 3px 9px; border-radius: 999px;
    border: 1px solid rgba(251,191,36,.22);
    letter-spacing: .04em; text-transform: uppercase;
    line-height: 1.3;
}
.gf-fc2__id-stats {
    display: grid; grid-template-columns: 1fr auto;
    gap: 8px; align-items: center;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
    position: relative; z-index: 1;
}
.gf-fc2__fish { display: flex; align-items: center; gap: 10px; }
.gf-fc2__fish-num { font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: .02em; }
.gf-fc2__fish-lab { font-size: 9.5px; color: var(--fc2-muted); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; margin-top: 3px; }
.gf-fc2__fish-em { font-size: 18px; }
.gf-fc2__id-actions { display: flex; align-items: center; gap: 6px; }
.gf-fc2 .gf-fc2__icon-btn {
    width: 34px; height: 34px;
    min-width: 34px; min-height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--fc2-border-2);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--fc2-text);
    padding: 0; flex-shrink: 0; position: relative;
    transition: transform .15s, background .15s, color .15s;
    font-family: inherit;
}
.gf-fc2 .gf-fc2__icon-btn:hover { background: rgba(34,197,94,.12); color: var(--fc2-green); transform: translateY(-1px); }
.gf-fc2__icon-btn svg { width: 14px; height: 14px; }

.gf-fc2 .gf-bell-btn { position: relative; }
.gf-fc2 .gf-bell__badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--fc2-rose); color: #fff;
    font-size: 10px; font-weight: 800;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--fc2-bg-2);
    line-height: 1;
    box-sizing: border-box;
}
.gf-fc2__bell-wrap { position: relative; display: inline-block; }

/* ===== Guest hero (compact) ===== */
.gf-fc2__guest-hero {
    position: relative;
    border-radius: 10px;
    background:
        radial-gradient(140px 80px at 50% 0%, rgba(34,197,94,.18), transparent 70%),
        linear-gradient(180deg, rgba(34,197,94,.06), rgba(34,197,94,.01)),
        var(--fc2-bg-2);
    border: 1px solid rgba(34,197,94,.24);
    padding: 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.gf-fc2__guest-line {
    display: flex; align-items: center; gap: 10px;
    justify-content: center;
}
.gf-fc2__guest-cat {
    font-size: 26px; line-height: 1; flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(34,197,94,.28));
}
.gf-fc2__guest-lead {
    font-size: 12px; letter-spacing: .12em;
    color: #fff; text-transform: uppercase;
    font-weight: 800; line-height: 1.2;
}
.gf-fc2 .gf-fc2__guest-btn {
    width: 100%;
    padding: 10px 12px;
    background: var(--fc2-green); color: #0a0a0f;
    font-weight: 800; font-size: 13px;
    border: 0; border-radius: 8px;
    cursor: pointer; letter-spacing: .02em;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(34,197,94,.22);
    transition: transform .12s;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    line-height: 1.2;
}
.gf-fc2 .gf-fc2__guest-btn:hover { transform: translateY(-1px); color: #0a0a0f; }
.gf-fc2__guest-bonus {
    font-size: 11px; color: rgba(10,10,15,.65); font-weight: 700;
}

/* ===== Section title ===== */
.gf-fc2__title {
    font-size: 10px; letter-spacing: .26em;
    color: var(--fc2-dim); text-transform: uppercase;
    padding: 6px 4px 0;
    display: flex; align-items: center; gap: 10px;
    font-weight: 800;
}
.gf-fc2__title::after { content: ''; flex: 1; height: 1px; background: var(--fc2-border); }

/* ===== Quick grid ===== */
.gf-fc2__qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gf-fc2 .gf-fc2__qcell {
    border: 1px solid var(--fc2-border);
    background: var(--fc2-bg-2);
    border-radius: 8px;
    padding: 11px 6px 9px;
    display: flex; flex-direction: column; align-items: center;
    gap: 5px;
    color: var(--fc2-text); position: relative;
    transition: background .12s, border-color .12s, transform .12s;
    text-align: center;
    text-decoration: none;
}
.gf-fc2 .gf-fc2__qcell:hover { background: var(--fc2-bg-3); border-color: var(--fc2-border-2); transform: translateY(-1px); color: var(--fc2-text); }
.gf-fc2__qcell-em { font-size: 18px; line-height: 1; }
.gf-fc2__qcell-lab {
    font-size: 10.5px; font-weight: 800;
    letter-spacing: .04em; color: var(--fc2-muted);
    text-transform: uppercase;
    line-height: 1.2;
}
.gf-fc2__qcell:hover .gf-fc2__qcell-lab { color: var(--fc2-text); }
.gf-fc2__qbadge {
    position: absolute; top: -5px; right: -5px;
    background: var(--fc2-rose); color: #fff;
    font-size: 10px; font-weight: 800;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--fc2-bg);
    line-height: 1;
    box-sizing: border-box;
}
.gf-fc2__qbadge--green { background: var(--fc2-green); color: #0a0a0f; }

/* ===== Гильдия ===== */
.gf-fc2__guild {
    border-radius: 10px;
    border: 1px solid rgba(34,197,94,.20);
    background: linear-gradient(180deg, rgba(34,197,94,.05), transparent), var(--fc2-bg-2);
    padding: 12px;
}
.gf-fc2__guild-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.gf-fc2__guild-em { font-size: 16px; }
.gf-fc2__guild-ttl { font-weight: 800; font-size: 13px; color: #fff; letter-spacing: .02em; flex: 1; }
.gf-fc2__guild-cnt { font-size: 10.5px; color: var(--fc2-green); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.gf-fc2__rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 6px; }
.gf-fc2 .gf-fc2__room {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 8px; border-radius: 8px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--fc2-border);
    color: var(--fc2-text);
    transition: background .12s, border-color .12s, transform .12s;
    min-width: 0;
    text-decoration: none;
}
.gf-fc2 .gf-fc2__room:hover { transform: translateY(-1px); color: var(--fc2-text); }
.gf-fc2__room-em { font-size: 13px; flex-shrink: 0; line-height: 1; }
.gf-fc2__room-info { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; min-width: 0; flex: 1; }
.gf-fc2__room-name { font-size: 11.5px; font-weight: 800; color: var(--fc2-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-fc2__room-tier { font-size: 10px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--fc2-dim); white-space: nowrap; }
.gf-fc2__room--emerald { border-color: rgba(34,197,94,.22); }
.gf-fc2__room--emerald:hover { background: rgba(34,197,94,.08); }
.gf-fc2__room--emerald .gf-fc2__room-tier { color: rgba(34,197,94,.85); }
.gf-fc2__room--amber { border-color: rgba(245,158,11,.22); }
.gf-fc2__room--amber:hover { background: rgba(245,158,11,.08); }
.gf-fc2__room--amber .gf-fc2__room-tier { color: rgba(245,158,11,.85); }
.gf-fc2__room--rose { border-color: rgba(244,114,182,.22); }
.gf-fc2__room--rose:hover { background: rgba(244,114,182,.08); }
.gf-fc2__room--rose .gf-fc2__room-tier { color: rgba(244,114,182,.85); }
.gf-fc2__room--violet { border-color: rgba(167,139,250,.22); }
.gf-fc2__room--violet:hover { background: rgba(167,139,250,.08); }
.gf-fc2__room--violet .gf-fc2__room-tier { color: rgba(167,139,250,.85); }

.gf-fc2 .gf-fc2__glink {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 800;
    margin-top: 6px;
    transition: transform .12s;
    text-decoration: none;
}
.gf-fc2 .gf-fc2__glink:hover { transform: translateY(-1px); }
.gf-fc2__glink-em { font-size: 14px; flex-shrink: 0; }
.gf-fc2__glink-label { flex: 1; }
.gf-fc2 .gf-fc2__glink--council {
    background: linear-gradient(135deg, rgba(167,139,250,.12), rgba(167,139,250,.02));
    border: 1px solid rgba(167,139,250,.24);
    color: var(--fc2-violet);
}
.gf-fc2 .gf-fc2__glink--council:hover { color: var(--fc2-violet); }
.gf-fc2 .gf-fc2__glink--chat {
    background: linear-gradient(135deg, rgba(96,165,250,.10), rgba(96,165,250,.02));
    border: 1px solid rgba(96,165,250,.22);
    color: var(--fc2-blue);
}
.gf-fc2 .gf-fc2__glink--chat:hover { color: var(--fc2-blue); }
.gf-fc2__online {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 800;
    color: var(--fc2-green);
    letter-spacing: .02em;
    white-space: nowrap;
}
.gf-fc2__online-pip {
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--fc2-green);
    box-shadow: 0 0 0 3px rgba(34,197,94,.18);
    margin-right: 7px; flex-shrink: 0;
}
.gf-fc2__online-num { margin-right: 4px; }

/* ===== Feature rows ===== */
.gf-fc2 .gf-fc2__frow {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--fc2-text);
    transition: transform .15s;
    overflow: hidden;
    text-decoration: none;
}
.gf-fc2 .gf-fc2__frow:hover { transform: translateY(-1px); color: var(--fc2-text); }
.gf-fc2__frow-em { font-size: 24px; flex-shrink: 0; line-height: 1; }
.gf-fc2__frow-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gf-fc2__frow-ttl { font-size: 12px; letter-spacing: .10em; color: #fff; text-transform: uppercase; line-height: 1.1; font-weight: 800; }
.gf-fc2__frow-sub { font-size: 11.5px; color: var(--fc2-muted); font-weight: 700; letter-spacing: .02em; }
.gf-fc2__frow-sub b { color: #fff; font-variant-numeric: tabular-nums; }
.gf-fc2__frow-arr { font-weight: 900; font-size: 16px; }
.gf-fc2__frow--lottery {
    background: linear-gradient(135deg, rgba(167,139,250,.16), rgba(244,114,182,.06));
    border: 1px solid rgba(167,139,250,.28);
}
.gf-fc2__frow--lottery .gf-fc2__frow-arr { color: var(--fc2-violet); }
.gf-fc2__frow--boxes {
    background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(16,185,129,.04));
    border: 1px solid rgba(34,197,94,.28);
}
.gf-fc2__frow--boxes .gf-fc2__frow-arr { color: var(--fc2-green); }
.gf-fc2__frow--games {
    background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(96,165,250,.04));
    border: 1px solid rgba(34,197,94,.26);
}
.gf-fc2__frow--games .gf-fc2__frow-arr { color: var(--fc2-green); }
.gf-fc2__frow--games .gf-fc2__frow-sub { color: var(--fc2-green); }
.gf-fc2__frow--games .gf-fc2__frow-sub .plus { font-weight: 900; font-size: 13px; margin-right: 2px; }

/* ===== Prefs panel (auth only) ===== */
.gf-fc2 .gf-fc2__prefs-btn:hover { transform: rotate(45deg); }
.gf-fc2__prefs {
    margin-top: 4px;
    padding: 12px;
    background: rgba(10,10,15,.5);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
}
.gf-fc2__prefs[hidden] { display: none; }
.gf-fc2__prefs-title { font-size: 14px; font-weight: 800; color: var(--fc2-text); margin: 0 0 4px; }
.gf-fc2__prefs-hint { margin: 0 0 10px; font-size: 12px; color: var(--fc2-muted); line-height: 1.35; }
.gf-fc2__prefs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gf-fc2__prefs-list label {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 8px; margin: 0 -8px; border-radius: 6px;
    font-size: 14px; color: var(--fc2-text); cursor: pointer; line-height: 1.25;
    transition: background .15s;
}
.gf-fc2__prefs-list label:hover { background: rgba(255,255,255,.04); }
.gf-fc2__prefs input.gf-fc-pref {
    appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important;
    flex: 0 0 auto; display: inline-block;
    width: 34px !important; height: 20px !important; min-height: 20px !important;
    margin: 0 !important; padding: 0 !important;
    background-color: #2a2a33 !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    position: relative; cursor: pointer; box-sizing: border-box;
    transition: background-color .2s, border-color .2s;
}
.gf-fc2__prefs input.gf-fc-pref::after {
    content: ''; display: block; position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; background: var(--fc2-muted); border-radius: 50%;
    transition: transform .2s, background .2s;
    pointer-events: none;
}
.gf-fc2__prefs input.gf-fc-pref:checked {
    background-color: rgba(34,197,94,.22) !important;
    border-color: rgba(34,197,94,.55) !important;
}
.gf-fc2__prefs input.gf-fc-pref:checked::after { transform: translateX(14px); background: var(--fc2-green); }
.gf-fc2__prefs input.gf-fc-pref:disabled { opacity: .5; cursor: wait; }

.gf-pref-hide-features [data-pref-hide="features"],
.gf-pref-hide-news [data-pref-hide="news"],
.gf-pref-hide-council [data-pref-hide="council"],
.gf-pref-hide-jackpot [data-pref-hide="jackpot"],
.gf-pref-hide-sos [data-pref-hide="sos"],
.gf-pref-hide-answer [data-pref-hide="answer"] { display: none !important; }
