/* =======================================
   FRIENDS FEATURE — profil.html "BARÁTOK" tab
   =======================================
   A .messages-modal-* (css/user-session.css) szerkezeti/vizuális mintáját
   követi (overlay + blur háttér, üveg-panel, cyan glow), és a .pf-stat-card
   (css/profil.css) glass/glow nyelvét a barát-kártyákhoz. Az al-tab csík
   (.bp-subtabs stb.) a css/backpack.css-ből jön, itt nincs újradefiniálva. */

/* ── Tab-gomb jelvény ──────────────────────────────────────── */

.pf-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff4d4d;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.7);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 17px;
    vertical-align: middle;
}
.pf-tab-badge[hidden] { display: none; }

/* ── Barátok tab: kártya-rács (lista / kérelmek / keresés) ───── */

.fr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.fr-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(160deg, rgba(76, 212, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-m);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.fr-card:hover {
    border-color: var(--border-glow-cyan);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.fr-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
}
.fr-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-glass);
}
.fr-avatar-deco {
    position: absolute;
    left: 56%;
    top: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

.fr-card-info {
    flex: 1 1 auto;
    min-width: 0;
}
.fr-card-name {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fr-card-sub {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--c-text-dim);
}

.fr-card-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fr-btn {
    appearance: none;
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text);
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.fr-btn:hover:not(:disabled) {
    background: rgba(76, 212, 255, 0.14);
    border-color: var(--border-glow-cyan);
}
.fr-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.fr-btn--accept { border-color: rgba(80, 220, 140, 0.5); color: #7fe8ac; }
.fr-btn--accept:hover:not(:disabled) { background: rgba(80, 220, 140, 0.16); }
.fr-btn--decline, .fr-btn--remove { border-color: rgba(255, 90, 90, 0.4); color: #ff9a9a; }
.fr-btn--decline:hover:not(:disabled), .fr-btn--remove:hover:not(:disabled) { background: rgba(255, 90, 90, 0.14); }

.fr-empty {
    padding: 26px 10px;
    text-align: center;
    color: var(--c-text-dim);
    font-size: 0.85rem;
}

.fr-section-title {
    margin: 22px 0 4px;
    font-family: "AOW", serif;
    font-size: 1.05rem;
    color: var(--c-text);
}
.fr-section-title--spaced { margin-top: 30px; }

.fr-search-row { margin-top: 8px; }
.fr-search-input {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-m);
    background: rgba(255, 255, 255, 0.04);
    color: var(--c-text);
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
}
.fr-search-input:focus {
    outline: none;
    border-color: var(--border-glow-cyan);
}

/* ── Barát profil modal ───────────────────────────────────── */

.friend-profile-modal-overlay,
.friend-chat-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(12px, 2vw, 32px);
    overflow: hidden;
    background: rgba(2, 4, 8, 0.72);
    backdrop-filter: blur(6px);
}

.friend-profile-modal {
    position: relative;
    box-sizing: border-box;
    width: min(72vw, 1400px);
    max-width: calc(100vw - 2 * clamp(12px, 2vw, 32px));
    height: min(88dvh, 1050px);
    max-height: calc(100dvh - 2 * clamp(12px, 2vw, 32px));
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(9, 18, 30, 0.96), rgba(3, 6, 11, 0.98));
    border: 1px solid var(--border-glow-cyan);
    border-radius: var(--radius-l);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(76, 212, 255, 0.15);
    padding: 34px 36px 26px;
}

.friend-profile-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--c-text-dim);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.friend-profile-modal-close:hover {
    color: var(--c-text);
    background: rgba(255, 255, 255, 0.12);
}

.friend-profile-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}

.frp-loading {
    padding: 60px 10px;
    text-align: center;
    color: var(--c-text-dim);
}

.frp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.frp-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
}
.frp-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-glow-cyan);
}
.frp-avatar-deco {
    position: absolute;
    left: 56%;
    top: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}
.frp-header-info { flex: 1 1 auto; min-width: 0; }
.frp-name {
    font-family: "AOW", serif;
    font-size: 1.4rem;
    color: var(--c-text);
    text-shadow: 0 0 14px rgba(76, 212, 255, 0.35);
}
.frp-level { margin-top: 2px; font-size: 0.8rem; color: var(--c-text-dim); }

.frp-msg-btn {
    appearance: none;
    border: 1px solid var(--border-glow-cyan);
    border-radius: 999px;
    background: rgba(76, 212, 255, 0.12);
    color: var(--c-text);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--t-fast);
}
.frp-msg-btn:hover { background: rgba(76, 212, 255, 0.22); }

.frp-stat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 6px; }

.frp-section-title {
    margin: 24px 0 10px;
    font-family: "AOW", serif;
    font-size: 1.05rem;
    color: var(--c-text);
}

.frp-hero-grid, .frp-skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.frp-hero-card, .frp-skin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-m);
    text-align: center;
}
.frp-hero-card img, .frp-skin-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.frp-hero-name, .frp-skin-name {
    font-size: 0.68rem;
    color: var(--c-text);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.frp-skin-hero {
    font-size: 0.6rem;
    color: var(--c-text-dim);
}
.frp-skin-card--legendary img { box-shadow: 0 0 10px rgba(255, 205, 76, 0.5); }
.frp-skin-card--mythic img { box-shadow: 0 0 10px rgba(255, 90, 200, 0.5); }
.frp-skin-card--ultra img { box-shadow: 0 0 10px rgba(140, 110, 255, 0.5); }

.frp-empty { grid-column: 1 / -1; padding: 16px; text-align: center; color: var(--c-text-dim); font-size: 0.8rem; }

/* ── Barát chat modal ─────────────────────────────────────── */

.friend-chat-modal {
    position: relative;
    box-sizing: border-box;
    width: min(42vw, 620px);
    max-width: calc(100vw - 2 * clamp(12px, 2vw, 32px));
    height: min(78dvh, 780px);
    max-height: calc(100dvh - 2 * clamp(12px, 2vw, 32px));
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(9, 18, 30, 0.96), rgba(3, 6, 11, 0.98));
    border: 1px solid var(--border-glow-cyan);
    border-radius: var(--radius-l);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(76, 212, 255, 0.15);
    overflow: hidden;
}

.friend-chat-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
}
.fc-header-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
}
.fc-header-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.fc-header-avatar-deco {
    position: absolute;
    left: 56%;
    top: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}
.fc-header-name {
    flex: 1 1 auto;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--c-text);
}

.friend-chat-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--c-text-dim);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.friend-chat-modal-close:hover {
    color: var(--c-text);
    background: rgba(255, 255, 255, 0.12);
}

.friend-chat-modal-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-empty {
    margin: auto;
    color: var(--c-text-dim);
    font-size: 0.85rem;
    text-align: center;
}

.fc-bubble-row { display: flex; }
.fc-bubble-row--mine { justify-content: flex-end; }

.fc-bubble {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
}
.fc-bubble-row--mine .fc-bubble {
    background: rgba(76, 212, 255, 0.16);
    border-color: var(--border-glow-cyan);
}

.fc-bubble-text {
    font-size: 0.85rem;
    color: var(--c-text);
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-wrap;
}
.fc-bubble-time {
    margin-top: 4px;
    font-size: 0.6rem;
    color: var(--c-text-dim);
    opacity: 0.8;
}

.friend-chat-modal-form {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-glass);
}
.fc-input {
    flex: 1;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--c-text);
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
}
.fc-input:focus { outline: none; border-color: var(--border-glow-cyan); }
.fc-input:disabled { opacity: 0.6; }

.fc-send-btn {
    appearance: none;
    border: 1px solid var(--border-glow-cyan);
    border-radius: 999px;
    background: rgba(76, 212, 255, 0.14);
    color: var(--c-text);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0 20px;
    cursor: pointer;
    transition: background var(--t-fast);
}
.fc-send-btn:hover { background: rgba(76, 212, 255, 0.24); }

/* ── Prémium baráti kommunikációs panel ───────────────────── */

.friend-chat-modal-overlay {
    padding: clamp(8px, 1.8vw, 28px);
    background:
        radial-gradient(circle at 50% 42%, rgba(22, 126, 159, .13), transparent 42%),
        rgba(1, 4, 9, .84);
    backdrop-filter: blur(12px) saturate(.72);
}

.friend-chat-modal {
    width: min(76vw, 1180px);
    max-width: calc(100vw - 2 * clamp(8px, 1.8vw, 28px));
    height: min(86dvh, 920px);
    max-height: calc(100dvh - 2 * clamp(8px, 1.8vw, 28px));
    border: 1px solid rgba(83, 201, 235, .52);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(13, 27, 43, .98), rgba(3, 8, 15, .995) 58%, rgba(2, 6, 12, .995));
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .78),
        0 0 0 1px rgba(219, 180, 84, .08) inset,
        0 0 58px rgba(54, 196, 235, .18);
}

.friend-chat-modal::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #48c9ef 26%, #eed58a 50%, #48c9ef 74%, transparent);
    box-shadow: 0 0 18px rgba(75, 205, 242, .55);
}

.friend-chat-modal::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .72;
    background:
        radial-gradient(circle at 8% 4%, rgba(58, 203, 241, .1), transparent 25%),
        linear-gradient(rgba(92, 168, 191, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 168, 191, .025) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
}

.friend-chat-modal > * {
    position: relative;
    z-index: 1;
}

.friend-chat-modal-header {
    min-height: 84px;
    box-sizing: border-box;
    gap: 17px;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(89, 164, 188, .2);
    background: linear-gradient(90deg, rgba(17, 42, 60, .62), rgba(8, 17, 28, .4) 54%, rgba(8, 17, 28, .76));
}

.fc-header-avatar-wrap {
    width: 54px;
    height: 54px;
}

.fc-header-avatar-wrap::after {
    content: "";
    position: absolute;
    z-index: 4;
    right: -1px;
    bottom: 0;
    width: 10px;
    height: 10px;
    border: 2px solid #07111c;
    border-radius: 50%;
    background: #59e8a7;
    box-shadow: 0 0 9px rgba(89, 232, 167, .78);
}

.fc-header-avatar {
    box-sizing: border-box;
    border: 1px solid rgba(112, 222, 252, .65);
    box-shadow: 0 0 18px rgba(62, 198, 236, .2);
}

.fc-header-info {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.fc-header-kicker {
    color: #68d7f5;
    font-family: "Montserrat", sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .2em;
}

.fc-header-name {
    font-family: "AOW", "Montserrat", serif;
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
    letter-spacing: .04em;
    text-shadow: 0 0 15px rgba(93, 215, 248, .25);
}

.fc-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(190, 205, 215, .66);
    font-family: "Montserrat", sans-serif;
    font-size: .66rem;
}

.fc-header-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #59e8a7;
    box-shadow: 0 0 7px rgba(89, 232, 167, .7);
}

.friend-chat-modal-close {
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(129, 178, 195, .16);
    background: rgba(7, 17, 27, .72);
}

.friend-chat-modal-close:hover {
    color: #fff1b9;
    border-color: rgba(226, 194, 110, .48);
    background: rgba(226, 194, 110, .1);
}

.friend-chat-modal-messages {
    gap: 12px;
    padding: 26px clamp(22px, 3vw, 44px) 34px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(72, 196, 229, .48) rgba(3, 10, 17, .55);
}

.friend-chat-modal-messages::-webkit-scrollbar { width: 6px; }
.friend-chat-modal-messages::-webkit-scrollbar-track { background: rgba(3, 10, 17, .55); }
.friend-chat-modal-messages::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: linear-gradient(#54d5f6, #9878e8);
}

.fc-empty {
    padding: 18px 24px;
    border: 1px solid rgba(91, 164, 188, .12);
    background: rgba(10, 23, 35, .42);
    letter-spacing: .03em;
}

.fc-bubble-row { position: relative; }

.fc-bubble {
    max-width: min(72%, 700px);
    padding: 12px 16px 10px;
    border-color: rgba(121, 160, 176, .18);
    border-radius: 4px 16px 16px 16px;
    background: linear-gradient(145deg, rgba(30, 43, 57, .86), rgba(15, 24, 34, .94));
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.fc-bubble-row--mine .fc-bubble {
    border-color: rgba(71, 203, 239, .42);
    border-radius: 16px 4px 16px 16px;
    background: linear-gradient(145deg, rgba(17, 78, 101, .76), rgba(10, 43, 62, .92));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24), 0 0 18px rgba(67, 203, 240, .08);
}

.fc-bubble-text {
    font-size: clamp(.84rem, .72vw, .94rem);
    line-height: 1.52;
}

.fc-bubble-time {
    margin-top: 6px;
    font-size: .62rem;
    letter-spacing: .03em;
}

.friend-chat-modal-form {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px 11px;
    padding: 17px clamp(18px, 2.4vw, 32px) 14px;
    border-top: 1px solid rgba(89, 164, 188, .2);
    background: linear-gradient(180deg, rgba(5, 13, 22, .9), rgba(3, 8, 14, .98));
}

.fc-input-shell {
    position: relative;
    min-width: 0;
}

.fc-input {
    display: block;
    width: 100%;
    min-height: 48px;
    max-height: 112px;
    overflow-y: auto;
    resize: none;
    padding: 13px 78px 13px 16px;
    border: 1px solid rgba(117, 163, 181, .22);
    border-radius: 12px;
    background: rgba(13, 25, 37, .82);
    line-height: 1.45;
    scrollbar-width: thin;
}

.fc-input:focus {
    border-color: rgba(75, 207, 242, .68);
    box-shadow: 0 0 0 2px rgba(75, 207, 242, .07), 0 0 20px rgba(75, 207, 242, .08);
}

.fc-char-count {
    position: absolute;
    right: 13px;
    bottom: 9px;
    pointer-events: none;
    color: rgba(157, 178, 190, .42);
    font-family: "Montserrat", sans-serif;
    font-size: .56rem;
}

.fc-emoji-toggle {
    appearance: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(119, 169, 188, .24);
    border-radius: 12px;
    background: rgba(13, 25, 37, .82);
    color: #c5d2d8;
    font-size: 1.35rem;
    cursor: pointer;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.fc-emoji-toggle:hover,
.fc-emoji-toggle.is-active {
    color: #ffe7a2;
    border-color: rgba(232, 200, 111, .58);
    background: rgba(232, 200, 111, .1);
    box-shadow: 0 0 16px rgba(232, 200, 111, .1);
}

.fc-send-btn {
    min-width: 116px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 20px;
    border-radius: 12px;
    border-color: rgba(91, 214, 247, .58);
    background: linear-gradient(135deg, rgba(22, 115, 145, .82), rgba(12, 67, 91, .92));
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22), 0 0 18px rgba(67, 202, 238, .08);
}

.fc-send-btn b {
    color: #90eaff;
    font-size: .9rem;
    transform: translateY(-1px);
}

.fc-send-btn:hover {
    background: linear-gradient(135deg, rgba(28, 145, 180, .9), rgba(15, 83, 110, .96));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 22px rgba(67, 202, 238, .16);
}

.fc-send-btn:disabled { opacity: .52; cursor: wait; }

.fc-compose-hint {
    grid-column: 2 / 4;
    display: flex;
    gap: 16px;
    color: rgba(151, 170, 181, .48);
    font-family: "Montserrat", sans-serif;
    font-size: .58rem;
}

.fc-compose-hint kbd {
    border: 1px solid rgba(130, 167, 181, .2);
    border-radius: 3px;
    padding: 1px 4px;
    background: rgba(255, 255, 255, .035);
    color: rgba(201, 216, 222, .68);
    font: inherit;
}

.fc-emoji-picker {
    position: absolute;
    z-index: 15;
    left: clamp(18px, 2.4vw, 32px);
    bottom: calc(100% - 7px);
    width: min(360px, calc(100% - 36px));
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid rgba(91, 205, 236, .38);
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(14, 29, 45, .99), rgba(4, 10, 18, .995));
    box-shadow: 0 22px 55px rgba(0, 0, 0, .68), 0 0 28px rgba(68, 199, 235, .12);
}

.fc-emoji-picker[hidden] { display: none; }

.fc-emoji-picker-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
    padding: 0 3px 10px;
    border-bottom: 1px solid rgba(115, 161, 178, .15);
    font-family: "Montserrat", sans-serif;
}

.fc-emoji-picker-head span {
    color: #e8f2f5;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fc-emoji-picker-head small { color: rgba(158, 178, 189, .52); font-size: .6rem; }

.fc-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.fc-emoji-grid button {
    appearance: none;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.fc-emoji-grid button:hover {
    z-index: 1;
    border-color: rgba(225, 194, 105, .42);
    background: rgba(225, 194, 105, .1);
    transform: translateY(-2px) scale(1.08);
}

@media (max-width: 900px) {
    .friend-profile-modal { width: 94vw; padding: 26px 20px 20px; }
    .friend-chat-modal { width: 96vw; height: 90dvh; }
    .fr-grid { grid-template-columns: 1fr; }
    .fr-card { flex-wrap: wrap; }
    .fr-card-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .friend-chat-modal-overlay { padding: 8px; }
    .friend-chat-modal {
        width: calc(100vw - 16px);
        max-width: none;
        height: calc(100dvh - 16px);
        max-height: none;
        border-radius: 12px;
    }
    .friend-chat-modal-header { min-height: 72px; padding: 11px 14px; gap: 12px; }
    .fc-header-avatar-wrap { width: 46px; height: 46px; }
    .fc-header-kicker { display: none; }
    .friend-chat-modal-messages { padding: 18px 13px 26px; }
    .fc-bubble { max-width: 86%; }
    .friend-chat-modal-form {
        grid-template-columns: 42px minmax(0, 1fr) 48px;
        gap: 7px;
        padding: 12px;
    }
    .fc-emoji-toggle { width: 42px; height: 46px; }
    .fc-input { padding-right: 14px; }
    .fc-char-count,
    .fc-compose-hint { display: none; }
    .fc-send-btn { min-width: 48px; width: 48px; padding: 0; }
    .fc-send-btn span { display: none; }
    .fc-emoji-picker { left: 12px; width: calc(100% - 24px); }
    .fc-emoji-grid { grid-template-columns: repeat(8, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .friend-chat-modal-messages { scroll-behavior: auto; }
    .fc-emoji-grid button { transition: none; }
}
