/* ==========================================================
   HyphySpace v1.5 — Instagram-style profile + X-style cover.
   Loaded after extras.css.
   ========================================================== */

/* Wrap */
.hyphy-ig-wrap { max-width: 1080px; margin: 0 auto; padding: 0 0 40px; }

/* X-style cover banner */
.hyphy-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    max-height: 360px;
    background: linear-gradient(135deg, #1c1c20 0%, #2a2a30 60%, rgba(255,140,26,0.15) 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 0;
}
.hyphy-cover__placeholder {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 60%, rgba(255,140,26,0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 30%, rgba(255,179,71,0.15) 0%, transparent 55%),
                #131316;
}
.hyphy-cover-edit { position: absolute; top: 14px; right: 14px; }
.hyphy-cover-edit__btn,
.hyphy-avatar-edit__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.hyphy-cover-edit__btn span {
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: background .15s ease;
}
.hyphy-cover-edit__btn:hover span { background: rgba(255,140,26,0.85); color: #1a0e00; border-color: var(--hs-gold); }
.hyphy-cover-edit input[type=file],
.hyphy-avatar-edit input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* IG-style profile header */
.hyphy-ig-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 0 24px;
    margin-top: -84px; /* avatar overlaps cover by ~half */
    position: relative;
    z-index: 2;
    align-items: flex-start;
}
.hyphy-ig-head__avatar-wrap { display: flex; justify-content: center; padding-top: 0; }

.hyphy-avatar-edit__label { display: inline-block; position: relative; }
.hyphy-avatar-edit__overlay {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--hs-gold);
    color: #1a0e00;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 3px solid var(--hs-bg);
}

.hyphy-ig-avatar {
    width: 168px !important;
    height: 168px !important;
    max-width: 168px !important;
    max-height: 168px !important;
    border-radius: 50% !important;
    border: 6px solid var(--hs-bg) !important;
    background: var(--hs-bg-3);
    object-fit: cover !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    aspect-ratio: 1 / 1;
}

.hyphy-ig-head__meta { padding-top: 100px; min-width: 0; }
.hyphy-ig-head__row1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hyphy-ig-head__username {
    font-family: var(--hs-font-head);
    font-size: 26px;
    margin: 0;
    font-weight: 700;
    color: var(--hs-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.02em;
}
.hyphy-verified { display: inline-flex; align-items: center; }
.hyphy-verified svg { display: block; }

.hyphy-ig-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.hyphy-ig-head__stats {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.hyphy-ig-head__stats li { color: var(--hs-text-2); font-size: 15px; }
.hyphy-ig-head__stats strong { color: var(--hs-text); font-size: 17px; font-weight: 700; margin-right: 4px; }

.hyphy-ig-head__bio strong { display: block; font-size: 15px; color: var(--hs-text); margin-bottom: 4px; font-weight: 700; }
.hyphy-ig-head__bio p { margin: 0; color: var(--hs-text-2); line-height: 1.5; max-width: 560px; white-space: pre-wrap; }

@media (max-width: 720px) {
    .hyphy-ig-head { grid-template-columns: 1fr; gap: 18px; text-align: center; margin-top: -60px; }
    .hyphy-ig-head__avatar-wrap { justify-content: center; }
    .hyphy-ig-avatar { width: 120px !important; height: 120px !important; border-width: 4px !important; }
    .hyphy-ig-head__meta { padding-top: 0; }
    .hyphy-ig-head__row1 { justify-content: center; }
    .hyphy-ig-head__stats { justify-content: center; gap: 22px; }
    .hyphy-ig-head__bio p { max-width: 100%; }
}

/* IG icon tabs */
.hyphy-ig-icontabs {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--hs-line);
    margin: 28px 0 0;
    padding: 0 24px;
    justify-content: center;
}
.hyphy-ig-icontab {
    flex: 0 0 auto;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 22px;
    color: var(--hs-text-3);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 11px;
    border-top: 2px solid transparent;
    margin-top: -1px;
    transition: color .15s ease;
}
.hyphy-ig-icontab svg { display: block; }
.hyphy-ig-icontab.is-active { color: var(--hs-text); border-top-color: var(--hs-gold); }
.hyphy-ig-icontab:hover { color: var(--hs-text); }
.hyphy-ig-icontab.is-active:hover { color: var(--hs-text); }
@media (max-width: 640px) {
    .hyphy-ig-icontab { min-width: 0; flex: 1; padding: 14px 4px; gap: 6px; font-size: 0; }
    .hyphy-ig-icontab svg { font-size: 16px; }
}

/* Grid wrap */
.hyphy-ig-grid-wrap { padding: 14px 24px 0; }
.hyphy-ig-grid-wrap .hyphy-grid { gap: 4px; }
@media (max-width: 480px) { .hyphy-ig-grid-wrap { padding: 6px 0 0; } .hyphy-ig-grid-wrap .hyphy-grid { gap: 2px; } }

/* Empty state */
.hyphy-ig-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--hs-text-2);
}
.hyphy-ig-empty__icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid var(--hs-line-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
}
.hyphy-ig-empty h3 {
    font-family: var(--hs-font-head);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--hs-text);
    letter-spacing: -0.01em;
}
.hyphy-ig-empty p { margin: 0; font-size: 14.5px; color: var(--hs-text-3); max-width: 360px; margin: 0 auto; line-height: 1.5; }

/* Make hyphes tab look like a thin column on IG */
.hyphy-feed--profile-stream { max-width: 620px; margin: 16px auto 0; }

/* Hide any leftover BuddyPress nav inside our wrapper */
#buddypress.hyphy-ig-wrap > #item-nav,
#buddypress.hyphy-ig-wrap > .item-list-tabs,
#buddypress.hyphy-ig-wrap .sub-nav,
#buddypress.hyphy-ig-wrap #subnav { display: none !important; }

/* Edit profile modal */
.hyphy-edit-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hyphy-edit-modal[hidden] { display: none; }
.hyphy-edit-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.hyphy-edit-modal__panel { position: relative; width: 100%; max-width: 480px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.5); overflow: hidden; animation: hsZoom .2s ease; max-height: 90vh; display: flex; flex-direction: column; }
.hyphy-edit-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--hs-line); flex-shrink: 0; }
.hyphy-edit-modal__head h2 { margin: 0; font-family: var(--hs-font-head); font-size: 17px; }
.hyphy-edit-modal__close { background: transparent; border: 0; color: var(--hs-text); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.hyphy-edit-modal__close:hover { color: var(--hs-gold); }
.hyphy-edit-modal__form { padding: 18px 20px; overflow-y: auto; }
.hyphy-edit-field { margin-bottom: 16px; }
.hyphy-edit-field > label { display: block; font-weight: 700; font-size: 13px; color: var(--hs-text-2); margin-bottom: 6px; }
.hyphy-edit-field input[type=text], .hyphy-edit-field textarea { width: 100%; padding: 10px 12px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 10px; color: var(--hs-text); font: inherit; outline: 0; transition: border-color .15s, box-shadow .15s; }
.hyphy-edit-field input[type=text]:focus, .hyphy-edit-field textarea:focus { border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }
.hyphy-edit-field input[disabled] { color: var(--hs-text-3); cursor: not-allowed; }
.hyphy-edit-field textarea { resize: vertical; min-height: 70px; }
.hyphy-edit-field small { color: var(--hs-text-3); font-size: 12px; display: block; margin-top: 4px; }
.hyphy-edit-avatar-row { display: flex; gap: 14px; align-items: center; }
.hyphy-edit-avatar-preview { width: 72px !important; height: 72px !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--hs-line); }
.hyphy-edit-cover-pick { display: block; cursor: pointer; }
.hyphy-edit-cover-thumb { display: block; aspect-ratio: 3/1; border-radius: 10px; background: linear-gradient(135deg, #1c1c20, #2a2a30); background-size: cover; background-position: center; position: relative; overflow: hidden; border: 1px solid var(--hs-line); }
.hyphy-edit-cover-thumb:hover { border-color: var(--hs-gold); }
.hyphy-edit-cover-thumb__hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); color: #fff; font-weight: 700; font-size: 13px; opacity: 1; transition: opacity .15s; }
.hyphy-edit-cover-thumb[style] .hyphy-edit-cover-thumb__hint { opacity: 0; }
.hyphy-edit-cover-thumb:hover .hyphy-edit-cover-thumb__hint { opacity: 1; }
.hyphy-edit-modal__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--hs-line); background: var(--hs-bg-2); flex-shrink: 0; }

/* Cover image edge bleed */
.hyphy-shell--profile { padding: 0 !important; max-width: none !important; }
.hyphy-shell--profile .hyphy-shell__main--wide { padding: 0 !important; max-width: none !important; }

/* ==========================================================
   v1.7 — Notifications bell, user-list modal, follow-back,
   mobile polish, like-link styling
   ========================================================== */

/* Notification bell badge */
.hyphy-nav__bell { position: relative; }
.hyphy-nav__badge {
    position: absolute; top: 4px; right: 4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--hs-danger); color: #fff;
    border-radius: 999px;
    font-size: 10px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--hs-bg);
}

/* Clickable stat buttons */
.hyphy-stat-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font: inherit; }
.hyphy-stat-btn:hover strong { color: var(--hs-gold); }
.hyphy-stat-btn strong { transition: color .15s; }

/* User list modal */
.hyphy-userlist-modal,
.hyphy-notifs-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hyphy-userlist-modal[hidden],
.hyphy-notifs-modal[hidden] { display: none; }
.hyphy-userlist-modal__backdrop,
.hyphy-notifs-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.hyphy-userlist-modal__panel,
.hyphy-notifs-modal__panel { position: relative; width: 100%; max-width: 420px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.5); overflow: hidden; max-height: 80vh; display: flex; flex-direction: column; animation: hsZoom .2s ease; }
.hyphy-userlist-modal__head,
.hyphy-notifs-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--hs-line); }
.hyphy-userlist-modal__head h2,
.hyphy-notifs-modal__head h2 { margin: 0; font-family: var(--hs-font-head); font-size: 17px; }
.hyphy-userlist-modal__close { background: transparent; border: 0; color: var(--hs-text); font-size: 26px; cursor: pointer; padding: 0 4px; line-height: 1; }
.hyphy-userlist-modal__close:hover { color: var(--hs-gold); }
.hyphy-userlist-modal__body,
.hyphy-notifs-modal__body { overflow-y: auto; padding: 8px 0; }
.hyphy-userlist-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--hs-text); }
.hyphy-userlist-row:hover { background: var(--hs-bg-3); }
.hyphy-userlist-row strong { display: block; font-size: 14px; }
.hyphy-userlist-row small { color: var(--hs-text-3); font-size: 12px; }

/* Search results userlist grid */
.hyphy-userlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 22px; }
.hyphy-userlist-grid .hyphy-userlist-row { background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 12px; }
.hyphy-userlist-grid .hyphy-userlist-row:hover { border-color: var(--hs-gold); background: var(--hs-bg-2); }

/* Notification rows */
.hyphy-notif { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; color: var(--hs-text); border-bottom: 1px solid rgba(255,255,255,0.03); }
.hyphy-notif:hover { background: var(--hs-bg-3); }
.hyphy-notif--unread { background: rgba(255,140,26,0.06); }
.hyphy-notif--unread:hover { background: rgba(255,140,26,0.1); }
.hyphy-notif__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hyphy-notif__msg { font-size: 14px; line-height: 1.4; }
.hyphy-notif strong { color: var(--hs-text); }
.hyphy-notif small { color: var(--hs-text-3); font-size: 12px; margin-top: 2px; }

/* Like button is now <a> — make it look identical to before */
a.hyphy-like-btn { text-decoration: none; }

/* Mobile polish */
@media (max-width: 640px) {
    .hyphy-topbar__inner { grid-template-columns: auto 1fr; gap: 8px; padding: 10px 14px; }
    .hyphy-topbar__center { display: none !important; }
    .hyphy-nav__link { width: 36px; height: 36px; }
    .hyphy-brand__name { display: none; }
    .hyphy-main { padding: 14px 0 80px; }
    .hyphy-ig-wrap { padding-bottom: 60px; }
    .hyphy-shell { padding: 0 12px; gap: 12px; }
    .hyphy-card { border-radius: 10px; }
    .hyphy-feed { gap: 12px; }
    .hyphy-page-title { font-size: 22px; }
    .hyphy-cover { aspect-ratio: 5 / 2; }
    .hyphy-ig-head { padding: 0 14px; }
    .hyphy-ig-icontabs { padding: 0 4px; }
    .hyphy-ig-grid-wrap { padding: 8px 0 0; }
    .hyphy-edit-modal,
    .hyphy-userlist-modal,
    .hyphy-notifs-modal,
    .hyphy-composer-modal,
    .hyphy-giphy-modal,
    .hyphy-crop-modal { padding: 0; align-items: flex-end; }
    .hyphy-edit-modal__panel,
    .hyphy-userlist-modal__panel,
    .hyphy-notifs-modal__panel,
    .hyphy-composer-modal__panel,
    .hyphy-giphy-modal__panel,
    .hyphy-crop-modal__panel { max-width: 100%; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
    .hyphy-landing-hero__inner { grid-template-columns: 1fr !important; gap: 24px; }
    .hyphy-auth-card { padding: 22px; }
}

/* ==========================================================
   v1.8 — IG-style stats (non-button), bio links, verified
   in lists, follow-back tags, comment bar, GIPHY, crop modal,
   language selector, mobile polish.
   ========================================================== */

/* Stats look like plain text/links (IG style) */
.hyphy-ig-head__stats a.hyphy-stat-link,
.hyphy-ig-head__stats .hyphy-stat-link {
    color: var(--hs-text-2);
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.hyphy-ig-head__stats .hyphy-stat-link strong { color: var(--hs-text); }
.hyphy-ig-head__stats .hyphy-stat-link:hover { color: var(--hs-text); }
.hyphy-ig-head__stats .hyphy-stat-link:hover strong { color: var(--hs-text); text-decoration: none; }

/* Bio website + bio links */
.hyphy-ig-head__website { margin: 6px 0 0; }
.hyphy-ig-head__website a { color: var(--hs-gold); font-weight: 700; }
.hyphy-ig-head__bio p a { color: var(--hs-gold); word-break: break-word; }
.hyphy-ig-head__bio p a:hover { color: var(--hs-gold-2); text-decoration: underline; }
.hyphy-verified--inline { display: inline-flex; vertical-align: middle; margin-left: 2px; }

/* Userlist row v1.8 — split into main link + action button */
.hyphy-userlist-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; color: var(--hs-text); }
.hyphy-userlist-row:hover { background: var(--hs-bg-3); }
.hyphy-userlist-row__main { display: flex; align-items: center; gap: 12px; color: inherit; flex: 1; min-width: 0; }
.hyphy-userlist-row__main strong { display: block; font-size: 14px; }
.hyphy-userlist-row__main small { color: var(--hs-text-3); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.hyphy-mutual-tag { color: var(--hs-text-3); }
.hyphy-mutual-tag--back { color: var(--hs-gold); }
.hyphy-mutual-tag--one { color: var(--hs-text-3); }
.hyphy-userlist-row .hyphy-btn { flex: 0 0 auto; }

/* Edit profile additions */
.hyphy-username-row { display: flex; align-items: center; gap: 6px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 10px; padding: 4px 8px; }
.hyphy-username-row:focus-within { border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }
.hyphy-username-at { color: var(--hs-text-3); font-weight: 700; }
.hyphy-username-input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--hs-text); padding: 8px 0; font: inherit; }
.hyphy-username-msg { font-size: 12px; margin-top: 4px; min-height: 16px; }
.hyphy-username-msg.is-error { color: var(--hs-danger); }
.hyphy-username-msg.is-success { color: var(--hs-success); }

select.hyphy-lang-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--hs-bg-3);
    border: 1px solid var(--hs-line);
    border-radius: 10px;
    color: var(--hs-text);
    font: inherit;
    outline: 0;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #b6b6c0 50%), linear-gradient(135deg, #b6b6c0 50%, transparent 50%);
    background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
select.hyphy-lang-select:focus { border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }

/* Footer language picker */
.hyphy-footer__inner { gap: 16px; }
.hyphy-footer__lang { display: flex; align-items: center; gap: 6px; }
.hyphy-footer__lang-label { color: var(--hs-text-3); font-size: 14px; }
select.hyphy-lang-select--footer { padding: 6px 28px 6px 10px; font-size: 13px; min-width: 120px; }

/* Comment bar */
.hyphy-comment-bar { background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 14px; padding: 8px 10px; margin-bottom: 14px; }
.hyphy-comment-bar__row textarea { width: 100%; resize: none; min-height: 38px; background: transparent; border: 0; outline: 0; color: var(--hs-text); font: inherit; padding: 6px 4px; }
.hyphy-comment-bar__bar { display: flex; align-items: center; gap: 6px; padding-top: 4px; border-top: 1px solid var(--hs-line); margin-top: 4px; }
.hyphy-comment-bar__icon { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; background: transparent; border: 0; border-radius: 8px; color: var(--hs-text-2); font-weight: 700; font-size: 12px; cursor: pointer; }
.hyphy-comment-bar__icon:hover { color: var(--hs-gold); background: var(--hs-bg-2); }
.hyphy-comment-bar__submit { margin-left: auto; }
.hyphy-comment-bar__preview { position: relative; padding: 8px 0; }
.hyphy-comment-bar__previmg { max-height: 200px; max-width: 220px; border-radius: 10px; object-fit: cover; }
.hyphy-comment-bar__previmg-clear { position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; font-size: 14px; line-height: 1; cursor: pointer; }
.hyphy-comment-bar__msg { font-size: 12px; color: var(--hs-text-3); padding: 4px; min-height: 14px; }

/* Comment list rows */
.hyphy-comments-list { display: flex; flex-direction: column; gap: 10px; }
.hyphy-comment-row { display: flex; gap: 10px; padding: 6px 0; }
.hyphy-comment-row__avatar { flex: 0 0 auto; }
.hyphy-comment-row__body { flex: 1; min-width: 0; }
.hyphy-comment-row__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hyphy-comment-row__head strong { font-size: 14px; color: var(--hs-text); }
.hyphy-comment-row__head small { color: var(--hs-text-3); font-size: 12px; }
.hyphy-comment-row__text { color: var(--hs-text); font-size: 14px; line-height: 1.5; }
.hyphy-comment-row__text p { margin: 0 0 4px; }
.hyphy-comment-delete { background: transparent; border: 0; color: var(--hs-text-3); cursor: pointer; padding: 2px 4px; border-radius: 6px; opacity: 0; transition: opacity .15s ease, color .15s ease; }
.hyphy-comment-row:hover .hyphy-comment-delete { opacity: 1; }
.hyphy-comment-delete:hover { color: var(--hs-danger); background: rgba(255,84,112,0.08); }
.hyphy-comment-media img { max-width: 100%; max-height: 280px; border-radius: 10px; margin-top: 6px; display: block; }
.hyphy-comment-media--gif { max-width: 220px; }

/* Card edit button */
.hyphy-card__head-actions { display: flex; align-items: center; gap: 6px; }
.hyphy-card__menu-btn { background: transparent; border: 0; color: var(--hs-text-3); cursor: pointer; padding: 4px 6px; border-radius: 6px; font-size: 14px; }
.hyphy-card__menu-btn:hover { color: var(--hs-gold); background: var(--hs-bg-3); }
.hyphy-edit-form { padding: 8px 16px 12px; }
.hyphy-edit-textarea { width: 100%; min-height: 84px; padding: 10px 12px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 10px; color: var(--hs-text); font: inherit; resize: vertical; }
.hyphy-edit-textarea:focus { outline: 0; border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }
.hyphy-edit-actions { display: flex; gap: 6px; justify-content: flex-end; padding-top: 8px; }
.hyphy-edit-msg { color: var(--hs-danger); font-size: 12px; min-height: 14px; padding-top: 4px; }

/* GIPHY picker modal */
.hyphy-giphy-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hyphy-giphy-modal[hidden] { display: none; }
.hyphy-giphy-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); }
.hyphy-giphy-modal__panel { position: relative; width: 100%; max-width: 560px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.5); display: flex; flex-direction: column; max-height: 80vh; animation: hsZoom .2s ease; overflow: hidden; }
.hyphy-giphy-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hs-line); }
.hyphy-giphy-modal__head h2 { margin: 0; font-family: var(--hs-font-head); font-size: 17px; }
.hyphy-giphy-modal__search { padding: 12px 18px; border-bottom: 1px solid var(--hs-line); }
.hyphy-giphy-search { width: 100%; padding: 10px 12px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 10px; color: var(--hs-text); }
.hyphy-giphy-search:focus { outline: 0; border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-gold-ring); }
.hyphy-giphy-modal__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; padding: 14px 18px; overflow-y: auto; }
.hyphy-giphy-tile { background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 1 / 1; }
.hyphy-giphy-tile img { width: 100%; height: 100%; object-fit: cover; }
.hyphy-giphy-tile:hover { border-color: var(--hs-gold); }

/* Crop modal */
.hyphy-crop-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hyphy-crop-modal[hidden] { display: none; }
.hyphy-crop-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.hyphy-crop-modal__panel { position: relative; width: 100%; max-width: 560px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; animation: hsZoom .2s ease; }
.hyphy-crop-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hs-line); }
.hyphy-crop-modal__head h2 { margin: 0; font-family: var(--hs-font-head); font-size: 17px; }
.hyphy-crop-modal__stage { background: #000; min-height: 280px; max-height: 60vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hyphy-crop-modal__stage img { max-width: 100%; max-height: 60vh; display: block; }
.hyphy-crop-modal__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--hs-line); }

/* Make sure cropper works inside modal */
.cropper-container { max-height: 60vh; }

/* Better mobile cover-edit + avatar-edit tap targets */
/* Private toggle / switch */
@media (max-width: 640px) {
    .hyphy-cover-edit { top: 8px; right: 8px; }
    .hyphy-cover-edit__btn span { padding: 6px 10px; font-size: 12px; }
    .hyphy-userlist-row { padding: 8px 14px; }
    .hyphy-footer__inner { flex-direction: column; align-items: stretch; text-align: center; gap: 8px; }
    .hyphy-footer__lang { justify-content: center; }
    .hyphy-comment-bar { border-radius: 12px; }
    .hyphy-comment-row { gap: 8px; }
    .hyphy-comment-delete { opacity: 0.6; }
}

.hyphy-edit-field--toggle .hyphy-switch { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 12px; cursor: pointer; }
.hyphy-switch input { position: absolute; opacity: 0; pointer-events: none; }
.hyphy-switch__slider { position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px; background: #3a3a44; transition: background .15s ease; }
.hyphy-switch__slider:before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.hyphy-switch input:checked + .hyphy-switch__slider { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-2)); }
.hyphy-switch input:checked + .hyphy-switch__slider:before { transform: translateX(18px); }
.hyphy-switch__label { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hyphy-switch__label strong { font-size: 14px; color: var(--hs-text); }
.hyphy-switch__label small { color: var(--hs-text-3); font-size: 12px; }

/* Lock pill next to username */
.hyphy-lock-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: rgba(255,179,71,0.12); border: 1px solid rgba(255,179,71,0.3); color: var(--hs-gold); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; margin-left: 6px; vertical-align: middle; }

/* Private profile lock screen */
.hyphy-private-screen { text-align: center; padding: 60px 24px; color: var(--hs-text-2); border-top: 1px solid var(--hs-line); margin-top: 12px; }
.hyphy-private-screen__icon { font-size: 56px; margin-bottom: 12px; }
.hyphy-private-screen h2 { font-family: var(--hs-font-head); font-size: 22px; color: var(--hs-text); margin: 0 0 8px; }
.hyphy-private-screen p { color: var(--hs-text-3); margin: 0; max-width: 360px; margin-inline: auto; }

/* Follow requests modal — reuse userlist styles. Action buttons. */
.hyphy-request-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.hyphy-requests-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hyphy-requests-modal[hidden] { display: none; }
.hyphy-requests-modal .hyphy-userlist-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); }
.hyphy-requests-modal .hyphy-userlist-modal__panel { position: relative; width: 100%; max-width: 480px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 18px; max-height: 80vh; display: flex; flex-direction: column; animation: hsZoom .2s ease; }
.hyphy-requests-modal .hyphy-userlist-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hs-line); }
.hyphy-requests-modal .hyphy-userlist-modal__head h2 { margin: 0; font-family: var(--hs-font-head); font-size: 17px; }
.hyphy-requests-modal .hyphy-userlist-modal__body { overflow-y: auto; padding: 8px 0; }

/* Saved-state message in edit modal */
.hyphy-edit-msg-global { padding: 8px 16px; font-size: 13px; min-height: 18px; }
.hyphy-edit-msg-global.is-error { color: var(--hs-danger); }
.hyphy-edit-msg-global.is-success { color: var(--hs-success); }

/* Requested follow button state */
.hyphy-follow-btn.is-requested { opacity: 0.85; }

@media (max-width: 640px) {
    .hyphy-requests-modal { padding: 0; align-items: flex-end; }
    .hyphy-requests-modal .hyphy-userlist-modal__panel { max-width: 100%; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
}

/* ==========================================================
   v1.8.2 — Three-dot menu (block/report), Block/Report modals,
   DMs (inbox + thread + composer), unread badges, mobile polish.
   ========================================================== */

/* Generic three-dot menu */
.hyphy-menu { position: relative; display: inline-block; }
.hyphy-menu__dropdown { position: absolute; top: 100%; right: 0; margin-top: 6px; min-width: 200px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,0.5); z-index: 20; padding: 6px; }
.hyphy-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; background: transparent; border: 0; color: var(--hs-text); border-radius: 8px; cursor: pointer; text-align: left; font: inherit; }
.hyphy-menu__item:hover { background: var(--hs-bg-3); color: var(--hs-gold); }

/* Report modal */
.hyphy-report-modal,
.hyphy-confirm-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hyphy-report-modal[hidden],
.hyphy-confirm-modal[hidden] { display: none; }
.hyphy-report-modal .hyphy-userlist-modal__backdrop,
.hyphy-confirm-modal .hyphy-userlist-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); }
.hyphy-report-modal .hyphy-userlist-modal__panel,
.hyphy-confirm-modal .hyphy-userlist-modal__panel { position: relative; width: 100%; max-width: 480px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 18px; overflow: hidden; animation: hsZoom .2s ease; max-height: 92vh; display: flex; flex-direction: column; }
.hyphy-report-modal .hyphy-userlist-modal__head,
.hyphy-confirm-modal .hyphy-userlist-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hs-line); }
.hyphy-report-modal .hyphy-userlist-modal__head h2,
.hyphy-confirm-modal .hyphy-userlist-modal__head h2 { margin: 0; font-family: var(--hs-font-head); font-size: 17px; }
.hyphy-report-form { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.hyphy-report-intro { margin: 0; color: var(--hs-text-2); font-size: 13.5px; }
.hyphy-report-reasons { display: grid; grid-template-columns: 1fr; gap: 4px; }
.hyphy-report-reason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); cursor: pointer; transition: border-color .12s ease; }
.hyphy-report-reason:hover { border-color: var(--hs-gold); }
.hyphy-report-reason input { accent-color: var(--hs-gold); }
.hyphy-report-form textarea { width: 100%; padding: 10px 12px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 10px; color: var(--hs-text); resize: vertical; font: inherit; }
.hyphy-report-form textarea:focus { outline: 0; border-color: var(--hs-gold); }
.hyphy-report-msg { font-size: 12px; min-height: 14px; }
.hyphy-report-msg.is-error { color: var(--hs-danger); }
.hyphy-report-msg.is-success { color: var(--hs-success); }
.hyphy-confirm-modal__body { padding: 16px 18px; color: var(--hs-text-2); }

@media (max-width: 640px) {
    .hyphy-report-modal, .hyphy-confirm-modal { padding: 0; align-items: flex-end; }
    .hyphy-report-modal .hyphy-userlist-modal__panel,
    .hyphy-confirm-modal .hyphy-userlist-modal__panel { max-width: 100%; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
}

/* Comment report icon */
.hyphy-comment-report { background: transparent; border: 0; color: var(--hs-text-3); cursor: pointer; padding: 2px 4px; border-radius: 6px; opacity: 0; transition: opacity .15s ease; }
.hyphy-comment-row:hover .hyphy-comment-report { opacity: 1; }
.hyphy-comment-report:hover { color: var(--hs-gold); }
@media (max-width: 640px) { .hyphy-comment-report { opacity: 0.6; } }

/* Sidebar Messages badge */
.hyphy-side-msg { position: relative; }
.hyphy-side-msg__badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-2)); color: #1a0e00; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }

/* Messages page */
.hyphy-main--messages { display: flex; flex-direction: column; }
.hyphy-dm { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 1px; background: var(--hs-line); border: 1px solid var(--hs-line); border-radius: 14px; overflow: hidden; min-height: 540px; background-color: var(--hs-bg-2); }
.hyphy-dm__list { background: var(--hs-bg-2); display: flex; flex-direction: column; min-height: 0; }
.hyphy-dm__list-head { padding: 14px 18px; border-bottom: 1px solid var(--hs-line); font-family: var(--hs-font-head); color: var(--hs-text); }
.hyphy-dm__threads { overflow-y: auto; flex: 1; }
.hyphy-dm-thread { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: transparent; border: 0; border-bottom: 1px solid var(--hs-line); cursor: pointer; text-align: left; font: inherit; color: var(--hs-text); }
.hyphy-dm-thread:hover { background: var(--hs-bg-3); }
.hyphy-dm-thread__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hyphy-dm-thread__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hyphy-dm-thread__meta strong { font-size: 14px; color: var(--hs-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hyphy-dm-thread__meta small { color: var(--hs-text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hyphy-dm-thread__dot { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-2)); color: #1a0e00; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.hyphy-dm-thread.has-unread strong { color: #fff; font-weight: 700; }

.hyphy-dm__pane { background: var(--hs-bg-2); display: flex; flex-direction: column; min-height: 0; }
.hyphy-dm__placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; color: var(--hs-text-2); }
.hyphy-dm__placeholder-icon { font-size: 56px; margin-bottom: 12px; }
.hyphy-dm__placeholder h2 { font-family: var(--hs-font-head); margin: 0 0 6px; color: var(--hs-text); }
.hyphy-dm__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hs-line); }
.hyphy-dm__head[hidden] { display: none; }
.hyphy-dm__back { display: none; background: transparent; border: 0; color: var(--hs-text-2); font-size: 22px; padding: 4px 8px; cursor: pointer; }
.hyphy-dm__head-user { display: flex; align-items: center; gap: 10px; color: var(--hs-text); text-decoration: none; flex: 1; min-width: 0; }
.hyphy-dm__head-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hyphy-dm__messages { flex: 1; overflow-y: auto; padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 6px; min-height: 240px; }

.hyphy-dm-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 80%; }
.hyphy-dm-msg--own { align-self: flex-end; flex-direction: row-reverse; margin-left: auto; }
.hyphy-dm-msg__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.hyphy-dm-msg__bubble { background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 14px; padding: 8px 12px; max-width: 100%; }
.hyphy-dm-msg--own .hyphy-dm-msg__bubble { background: linear-gradient(135deg, var(--hs-gold), var(--hs-gold-2)); color: #1a0e00; border-color: transparent; }
.hyphy-dm-msg__text { font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.hyphy-dm-msg--own .hyphy-dm-msg__text { color: #1a0e00; }
.hyphy-dm-msg__image, .hyphy-dm-msg__gif { max-width: 240px; max-height: 240px; border-radius: 10px; display: block; margin: 0 auto 6px; }
.hyphy-dm-msg__time { display: flex; align-items: center; gap: 6px; color: var(--hs-text-3); font-size: 11px; margin-top: 4px; }
.hyphy-dm-msg--own .hyphy-dm-msg__time { color: rgba(26,14,0,.6); }
.hyphy-dm-msg__del { background: transparent; border: 0; color: inherit; opacity: 0; padding: 0 4px; cursor: pointer; }
.hyphy-dm-msg:hover .hyphy-dm-msg__del { opacity: 1; }

.hyphy-dm__composer { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px 12px; border-top: 1px solid var(--hs-line); background: var(--hs-bg-2); }
.hyphy-dm__composer[hidden] { display: none; }
.hyphy-dm__composer-row textarea { width: 100%; resize: none; min-height: 40px; padding: 10px 12px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); border-radius: 10px; color: var(--hs-text); font: inherit; }
.hyphy-dm__composer-row textarea:focus { outline: 0; border-color: var(--hs-gold); }
.hyphy-dm__composer-bar { display: flex; align-items: center; gap: 6px; }
.hyphy-dm__composer-bar button[type=submit] { margin-left: auto; }
.hyphy-dm__composer-preview { padding-top: 6px; position: relative; }
.hyphy-dm__composer-preview img { max-width: 180px; max-height: 140px; border-radius: 10px; }

/* Mobile: single-pane DM (Instagram-style). */
@media (max-width: 720px) {
    .hyphy-dm { grid-template-columns: 1fr; min-height: 70vh; }
    .hyphy-dm__list { display: flex; }
    .hyphy-dm__pane { display: none; }
    .hyphy-dm.is-on-thread .hyphy-dm__list { display: none; }
    .hyphy-dm.is-on-thread .hyphy-dm__pane { display: flex; }
    .hyphy-dm__back { display: inline-block; }
}



