/**
 * Glassy theme — premium dark glassmorphism design system
 * CamThirsty.com | Black / red / white palette, glass panels, refined spacing
 */

:root {
    /* Glass & surfaces */
    --glass-bg: rgba(26, 26, 26, 0.75);
    --glass-bg-strong: rgba(18, 18, 18, 0.88);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-accent: rgba(255, 65, 87, 0.35);
    --glass-radius: 12px;
    --glass-radius-sm: 8px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.45);
    /* Typography */
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --text-dim: rgba(255, 255, 255, 0.55);
    /* Accent */
    --accent: #ff4157;
    --accent-hover: #ff5c6e;
    --accent-glow: rgba(255, 65, 87, 0.25);
    /* Base */
    --base-dark: #0d0d0d;
    --base-charcoal: #1a1a1a;
}

/* Base: dark body and smooth scroll */
body,
html {
    background: var(--base-dark) !important;
    color: var(--text-primary);
}
body {
    background: linear-gradient(180deg, var(--base-dark) 0%, #141414 100%) !important;
    min-height: 100vh;
}

/* Header: glass bar */
.header {
    background: var(--glass-bg) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Nav links */
.header__nav a,
.header__link {
    color: var(--text-muted) !important;
}
.header__nav a:hover,
.header__link:hover {
    color: var(--text-primary) !important;
}

/* Primary CTA button in header */
.header__button,
.main-btn,
.filters__filterBtn {
    background: var(--accent) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border-accent) !important;
    border-radius: var(--glass-radius-sm) !important;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.header__button:hover,
.main-btn:hover,
.filters__filterBtn:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Sidebar / filters: glass panel */
.filters {
    background: var(--glass-bg-strong) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.filters__dropDownBtn,
.filters__quickLinks {
    color: var(--text-muted);
}
.filters__dropDownBtn.active,
.filters__dropDownBtn:hover {
    color: var(--text-primary);
}
.filters__dropDownList {
    background: transparent;
}
.filters__dropDownListItem a {
    color: var(--text-muted) !important;
}
.filters__dropDownListItem a:hover,
.filters__dropDownListItem a.active {
    color: var(--accent) !important;
}

/* Performer cards: glass card */
#dataContent .main__model,
.img-col,
.performer-card {
    background: var(--glass-bg) !important;
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.2s, transform 0.2s;
}
#dataContent .main__model:hover,
.img-col:hover,
.performer-card:hover {
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--glass-border-accent);
}

/* Card text */
.img-col .title,
.img-col .description,
.performer-card .title,
.performer-card .description {
    color: var(--text-primary) !important;
}
.img-col .description,
.performer-card .description {
    color: var(--text-muted) !important;
}

/* LIVE badge */
.live-badge,
.badge-live,
[class*="live"] {
    background: var(--liveBtnGreen, #028d08) !important;
    color: var(--liveBtnText, #fff) !important;
    border-radius: var(--glass-radius-sm);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Source/site badge */
.site-badge,
.badge-site,
.source-badge {
    background: var(--glass-bg-strong);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.8em;
}

/* Form controls */
.form-control,
.form-select,
input[type="text"],
input[type="search"],
select {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--glass-radius-sm);
}
.form-control:focus,
input:focus,
select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Content area */
.contentContainer,
#dataContent {
    background: transparent;
}
.main__about,
.main__video {
    background: var(--glass-bg) !important;
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
}
.main__about.glass-panel {
    padding: 1.5rem;
}
.main__bio {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
}
.main__bioTitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.main__bio .main__p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-muted);
}
.main__video.glass-panel {
    padding: 0;
    min-height: 320px;
}

/* Footer */
.footer,
.footer__inner {
    background: var(--glass-bg-strong) !important;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}
.footer a,
.footer__link {
    color: var(--text-muted) !important;
}
.footer a:hover {
    color: var(--accent) !important;
}

/* Rating / thumbs: ensure visible on dark */
.rating[data-module="rating"],
.rating .thumb-up,
.rating .thumb-down,
.rating-widget,
.widget.rating i,
.fa-thumbs-up,
.fa-thumbs-down {
    color: var(--text-muted) !important;
}
.rating .thumb-up svg,
.rating .thumb-down svg {
    stroke: currentColor;
}
.rating .thumb-up.active,
.rating .thumb-down.active,
.rating-widget .active,
.widget.rating .active i,
.fa-thumbs-up.active,
.fa-thumbs-down.active {
    color: var(--accent) !important;
}
.rating .thumb-up:hover:not(.disabled),
.rating .thumb-down:hover:not(.disabled) {
    color: var(--text-primary) !important;
}

/* Empty / no results */
.notification.alert,
.notification.error {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--glass-radius);
}

/* Loader */
.loader {
    border-color: var(--glass-border);
    border-top-color: var(--accent);
}

/* ——— Search bar (glassy) ——— */
.header__searchWrapper--glassy {
    width: 280px;
    min-height: 40px;
    border-radius: var(--glass-radius-sm);
    background: var(--glass-bg-strong) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto 0 0;
    padding: 0 14px 0 40px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header__searchWrapper--glassy:focus-within {
    border-color: var(--glass-border-accent);
    box-shadow: 0 4px 24px var(--accent-glow);
}
.header__searchWrapper--glassy .header__searchIcon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    margin: 0;
}
.header__searchWrapper--glassy .header__searchInput {
    width: 100%;
    margin: 0;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-primary) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-weight: 500;
}
.header__searchWrapper--glassy .header__searchInput::placeholder {
    color: var(--text-dim);
}

/* ——— Signup promo banner ——— */
.signup__promo {
    background: var(--glass-bg) !important;
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    padding: 1.25rem 1.5rem !important;
}
.signup__promo .description {
    color: var(--text-primary) !important;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* ——— Suggested / Related cams (performer page, glassmorphism) ——— */
.relatedCams {
    margin-top: 2rem;
    padding: 1.5rem 1.25rem;
}
.relatedCams.glass-panel {
    padding: 1.75rem 1.5rem;
}
.relatedCams__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
}
.relatedCams__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.02em;
}
.relatedCams__filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.relatedCams__clear {
    font-size: 0.7rem;
    opacity: 0.8;
}
.relatedCams__more {
    margin-left: auto;
    font-weight: 600;
    color: var(--accent) !important;
    font-size: 0.95rem;
}
.relatedCams__more:hover {
    color: var(--accent-hover) !important;
}
.relatedCams__empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
}
.relatedCams__empty p {
    margin: 0 0 1rem;
    font-size: 1rem;
}
.relatedCams__emptyBtn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--glass-radius-sm);
    border: 1px solid var(--glass-border-accent);
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: background 0.2s, box-shadow 0.2s;
}
.relatedCams__emptyBtn:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 6px 20px var(--accent-glow);
}
.relatedCams__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) {
    .relatedCams__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 900px) {
    .relatedCams__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.15rem;
    }
}
@media (min-width: 1200px) {
    .relatedCams__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}
.relatedCams__grid .main__model {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.relatedCams__grid .main__modelPhoto {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.relatedCams__grid .main__modelWrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.relatedCams__grid .main__modelInfoWrapper {
    margin-top: auto;
}
.relatedCams__grid .main__modelLive {
    background: var(--liveBtnGreen, #028d08) !important;
    color: #fff !important;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}
.relatedCams__grid .main__modelViewers {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.relatedCams__grid .main__modelViewers i {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* ——— Performer page: glassmorphism ——— */
.glass-panel {
    background: var(--glass-bg) !important;
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
}
.glass-panel__offline {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}
.glass-panel__offline i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}
.glass-panel__offline p {
    margin: 0;
    font-size: 1rem;
}

/* Glass performer action bar (rate + favourite + watch) */
.glass-performer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
    background: var(--glass-bg) !important;
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    margin-bottom: 1.25rem;
}
.glass-performer-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--glass-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    color: var(--text-primary) !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.glass-performer-bar__btn:hover {
    border-color: var(--glass-border-accent);
    background: rgba(255, 255, 255, 0.06);
}
.glass-performer-bar__btn--cta {
    background: var(--accent) !important;
    border-color: var(--glass-border-accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.glass-performer-bar__btn--cta:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Glassy rating widget (thumbs up/down visible) */
.glass-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
}
.glass-rating__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.glass-rating__total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary) !important;
    min-width: 2.5rem;
}
.glass-rating__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--glass-radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    color: var(--text-muted) !important;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.glass-rating__thumb i {
    font-size: 1rem;
}
.glass-rating__thumb:hover:not(.disabled) {
    border-color: var(--glass-border-accent);
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}
.glass-rating__thumb.active {
    border-color: var(--accent);
    background: rgba(255, 65, 87, 0.2);
    color: var(--accent) !important;
}
.glass-rating__thumb.disabled {
    opacity: 0.5;
    cursor: default;
}
.main__videoTop .rating .total { font-weight: 700; color: var(--text-primary) !important; }
.main__videoTop .rating .thumb-up,
.main__videoTop .rating .thumb-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    border-radius: var(--glass-radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    color: var(--text-muted) !important;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.main__videoTop .rating .thumb-up:hover:not(.disabled),
.main__videoTop .rating .thumb-down:hover:not(.disabled) {
    border-color: var(--glass-border-accent);
    color: var(--text-primary) !important;
}
.main__videoTop .rating .thumb-up.active,
.main__videoTop .rating .thumb-down.active {
    border-color: var(--accent);
    background: rgba(255, 65, 87, 0.15);
    color: var(--accent) !important;
}
.main__videoTop .rating .thumb-up.disabled,
.main__videoTop .rating .thumb-down.disabled {
    opacity: 0.6;
    cursor: default;
}

/* Viewer count on homepage cards */
#dataContent .main__modelViewers {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
#dataContent .main__modelViewers i {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Add Favorite modal — glassy (especially when not logged in) */
#addFavModal .modal-content {
    background: var(--glass-bg-strong) !important;
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    color: var(--text-primary);
}
#addFavModal .modal-header {
    border-bottom-color: var(--glass-border);
}
#addFavModal .modal-title {
    color: var(--text-primary) !important;
}
#addFavModal .modal-body {
    color: var(--text-muted);
}
#addFavModal .modal-footer {
    border-top-color: var(--glass-border);
}
#addFavModal .btn-close {
    filter: invert(1);
    opacity: 0.7;
}
.addFav-modal__prompt {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary) !important;
}
.addFav-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.addFav-modal__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: var(--glass-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.addFav-modal__btn--primary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary) !important;
}
.addFav-modal__btn--primary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary) !important;
}
.addFav-modal__btn--cta {
    background: var(--accent) !important;
    border: 1px solid var(--glass-border-accent);
    color: #fff !important;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.addFav-modal__btn--cta:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 6px 20px var(--accent-glow);
    color: #fff !important;
}

/* Live radar + dashboard + creator profile hub */
.radarPanel {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}
.radarPanel__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    gap: 0.75rem;
}
.radarPanel__head h2 {
    margin: 0;
    font-size: 1.3rem;
}
.radarPanel__head span {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.radarPanel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.6rem;
}
.radarPanel__item {
    display: block;
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}
.radarPanel__item img {
    width: 100%;
    aspect-ratio: 5/4;
    object-fit: cover;
    max-height: 160px;
}
.radarPanel__meta {
    padding: 0.45rem 0.55rem 0.55rem;
}
.radarPanel__top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.radarPanel__top strong {
    font-size: 0.82rem;
}
.radarPanel__source {
    color: var(--text-dim);
    font-size: 0.72rem;
}
.radarPanel__stats {
    margin-top: 0.45rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.72rem;
}
.radarPanel__trend {
    color: var(--accent);
    font-weight: 600;
}
.radarPanel__rank {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-weight: 700;
}

.dashboardHero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.dashboardHero__content h2 {
    margin: 0 0 0.5rem;
}
.dashboardHero__content p {
    color: var(--text-muted);
    margin: 0 0 0.8rem;
}
.dashboardHero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.dashboardHero__link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    color: var(--text-primary) !important;
}
.dashboardHero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}
.dashboardHero__stat {
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}
.dashboardHero__stat span {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
}
.dashboardHero__stat label {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.dashboardGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dashboardCard {
    padding: 1rem;
}
.dashboardCard h3 {
    margin-top: 0;
}
.dashboardAlerts {
    margin: 0;
    padding-left: 1rem;
}
.dashboardAlerts li {
    margin-bottom: 0.45rem;
    color: var(--text-muted);
}

.hubProfile.hero {
    position: relative;
    margin-bottom: 1rem;
}
.hubProfile__cover {
    min-height: 180px;
    border-radius: var(--glass-radius);
    background: linear-gradient(135deg, rgba(255, 65, 87, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--glass-border);
    background-size: cover;
    background-position: center;
    position: relative;
}
.hubProfile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}
.hubProfile__head {
    margin-top: -48px;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    position: relative;
    z-index: 2;
    padding: 0 0.75rem 0.75rem;
}
.hubProfile__avatar {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.hubProfile__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 65, 87, 0.3);
    font-size: 2rem;
    font-weight: 700;
}
.hubProfile__identity h2 {
    margin: 0;
}
.hubProfile__identity p {
    margin: 0.25rem 0;
    color: var(--text-muted);
}
.hubProfile__progress {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}
.hubGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.hubCard {
    padding: 1rem;
}
.hubLinks {
    display: grid;
    gap: 0.5rem;
}
.hubLinks__item,
.hubProfile__cta {
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    padding: 0.6rem 0.75rem;
    display: block;
    color: var(--text-primary) !important;
}
.glass-performer-bar__btn.is-active {
    border-color: var(--accent);
    background: rgba(255, 65, 87, 0.16);
    color: #fff !important;
}

@media (max-width: 991px) {
    .dashboardHero,
    .dashboardGrid,
    .hubGrid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .radarPanel__item img { max-height: 170px; }
}

/* ---------- Fix pass: radar/profile/edit readability ---------- */
.radarPanel,
.radarPanel h2,
.radarPanel h3,
.radarPanel strong,
.radarPanel a {
    color: var(--text-primary) !important;
}
.radarPanel__item {
    text-decoration: none;
}
.radarPanel__item:hover {
    border-color: var(--glass-border-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.radarPanel__head h2,
.dashboardCard h3,
.hubCard h3,
.hubProfile__identity h2 {
    color: #fff !important;
}
.dashboardCard p,
.hubCard p,
.hubCard strong,
.hubProfile__identity p {
    color: var(--text-muted) !important;
}
.hubProfile__cover {
    overflow: hidden;
}

.settingsPanel {
    padding: 1.25rem;
}
.settingsPanel__messages {
    margin-bottom: 0.75rem;
}
.settingsPanel__title {
    margin: 0 0 1rem;
    color: #fff !important;
    font-size: 1.35rem;
}
.profileEditForm {
    width: 100%;
}
.profileEditGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}
.profileEditField {
    min-width: 0;
}
.profileEditField--full {
    grid-column: 1 / -1;
}
.profileEditField label {
    display: block;
    margin: 0 0 0.35rem;
    color: #fff !important;
    font-weight: 600;
}
.profileEditField input[type="text"],
.profileEditField input[type="email"],
.profileEditField input[type="password"],
.profileEditField input[type="url"],
.profileEditField textarea,
.profileEditField input[type="file"] {
    width: 100%;
    color: #fff !important;
    background: rgba(14, 14, 14, 0.92) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--glass-radius-sm);
    min-height: 44px;
    line-height: 1.3;
    padding: 0.55rem 0.65rem;
}
.profileEditField textarea {
    min-height: 120px;
}
.profileEditField input::placeholder,
.profileEditField textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}
.profileEditLinkRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}
.profileEditLinkRow input {
    width: 100%;
    color: #fff !important;
    background: rgba(14, 14, 14, 0.92) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--glass-radius-sm);
    min-height: 42px;
    padding: 0.5rem 0.6rem;
}
.profileEditCheck {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted) !important;
}
.profileEditCheck input {
    width: auto !important;
    min-height: 0 !important;
}
.profileEditActions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}
.profileEditActions .login {
    min-width: 180px;
}
@media (max-width: 991px) {
    .profileEditGrid {
        grid-template-columns: 1fr;
    }
    .profileEditLinkRow {
        grid-template-columns: 1fr;
    }
}

/* Guard against legacy black text in dark mode */
.main,
.main p,
.main span,
.main li,
.main label,
.main td,
.main th,
.main h1,
.main h2,
.main h3,
.main h4,
.main h5,
.main h6 {
    color: var(--text-primary);
}

/* Tags page glass chips */
.tagsPage {
    padding: 1.25rem;
}
.tagsPage__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.tagsPage__head h2 {
    margin: 0;
    color: #fff !important;
    font-size: 1.3rem;
}
.tagsPage__head span {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.tagsPage__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.tagsPage__item {
    min-width: 0;
}
.tagsPage__link {
    display: block;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.tagsPage__link:hover {
    border-color: var(--glass-border-accent);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
}
@media (min-width: 992px) {
    .tagsPage__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
