/*
 * Buzzen V5 Phase 1 profile compatibility stylesheet.
 * This file intentionally follows the current legacy Buzzen public-profile
 * presentation instead of redesigning the page during the PHP 8.4/mysqli migration.
 */

#legacy-profile-page {
    position: relative;
    min-height: 100%;
    padding: 0 0 34px;
    color: #333;
    background-color: #f6f5f3;
    background-position: center top;
    font-family: "Droid Sans", "Segoe UI", Tahoma, Arial, sans-serif;
}

#legacy-profile-page.has-profile-background.profile-bg-stretch {
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

#legacy-profile-page.has-profile-background.profile-bg-tile {
    background-repeat: repeat;
    background-size: auto;
    background-attachment: scroll;
}

#legacy-profile-page .pcontainer {
    position: relative;
    max-width: 1210px;
    padding-top: 18px;
    padding-bottom: 34px;
}

#legacy-profile-page #pholder {
    max-width: 1180px;
    margin: 0 auto;
    background-color: var(--legacy-profile-holder-bg, transparent);
}

#legacy-profile-page .buzzen-profile-panel {
    position: relative;
    min-height: 300px;
    margin: 22px 0 34px !important;
    padding: 18px 22px 26px !important;
    border: 1px solid rgba(35, 93, 137, .18);
    border-radius: 18px;
    background: rgba(246, 250, 253, var(--legacy-profile-panel-alpha, .88));
    box-shadow: 0 22px 55px rgba(13, 43, 72, .18), inset 0 1px 0 rgba(255,255,255,.85);
    overflow: hidden;
}

#legacy-profile-page .buzzen-profile-panel::before {
    content: "";
    position: absolute;
    right: -105px;
    top: -135px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: rgba(255, 210, 74, .15);
    pointer-events: none;
}

#legacy-profile-page .buzzen-profile-title {
    position: relative;
    z-index: 1;
    margin: 0 0 12px !important;
    padding: 11px 15px;
    border: 1px solid rgba(71, 151, 213, .22);
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(135deg, #103858 0%, #155c91 72%, #1b79bd 100%);
    color: #fff;
    font-family: var(--buzzen-font-heading);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,.28);
    box-shadow: 0 10px 22px rgba(12, 55, 91, .14), inset 0 1px 0 rgba(255,255,255,.12);
    word-wrap: break-word;
    overflow: hidden;
}

#legacy-profile-page .buzzen-profile-title::after {
    content: "";
    position: absolute;
    left: 15px;
    bottom: 0;
    width: 76px;
    height: 3px;
    border-radius: 999px;
    background: #ffd24a;
    box-shadow: 0 0 18px rgba(255, 210, 74, .45);
}

#legacy-profile-page .buzzen-profile-title .fa-solid {
    color: #ffd24a;
    margin-right: 8px;
}

#legacy-profile-page .buzzen-profile-rule {
    position: relative;
    z-index: 1;
    height: 1px;
    margin: 14px 0 16px;
    border: 0;
    background: linear-gradient(to right, transparent, rgba(25, 92, 142, .25), transparent);
}

#legacy-profile-page .buzzen-profile-rule-compact {
    margin: 10px 0;
}

#legacy-profile-page .breadcrumbuser {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 14px;
    padding: 9px 12px;
    border: 1px solid rgba(34, 103, 154, .13);
    border-radius: 12px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 7px 18px rgba(17, 71, 111, .06);
    font-size: 13px;
}

#legacy-profile-page .breadcrumbuser .breadcrumb-item + .breadcrumb-item::before {
    color: #9aa9b4;
}

#legacy-profile-page .breadcrumbuser a {
    color: #13527f;
    font-weight: 700;
    text-decoration: none;
}

#legacy-profile-page .breadcrumbuser a:hover { color: #3d86c9; }
#legacy-profile-page .breadcrumbuser .active { color: #607888; font-weight: 700; }

/* Current legacy inc_userinfo.php layout */
#legacy-profile-page .buzzen-userinfo.buzzen-userinfo-redesign {
    position: relative;
    z-index: 1;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 1px solid rgba(34, 103, 154, .18) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 210, 74, .22), transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(33, 139, 214, .10), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(232,246,255,.86)) !important;
    box-shadow: 0 18px 38px rgba(11, 58, 96, .15), inset 0 1px 0 rgba(255,255,255,.94) !important;
    overflow: hidden !important;
    color: #23465f !important;
}

#legacy-profile-page .buzzen-userinfo-mood {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 7px 20px !important;
    margin: 0 !important;
    background: linear-gradient(90deg, rgba(255,247,195,.72) 0%, rgba(232,246,255,.60) 100%) !important;
    border-bottom: 1px solid rgba(255, 210, 74, .28) !important;
    color: #4e6576 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

#legacy-profile-page .buzzen-userinfo-mood-label {
    color: #45677f !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
}

#legacy-profile-page .buzzen-userinfo-mood-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 11px !important;
    border: 1px solid rgba(255, 210, 74, .70) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #fff7c9 0%, #e8f7ff 100%) !important;
    color: #11456f !important;
    box-shadow: 0 4px 10px rgba(17, 69, 111, .10), inset 0 1px 0 rgba(255,255,255,.85) !important;
}

#legacy-profile-page .buzzen-userinfo-mood-pill .moodname {
    color: #11456f !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
}

#legacy-profile-page .buzzen-userinfo-mood-pill .moodimg { max-height: 22px !important; margin: -3px 0 !important; }
#legacy-profile-page .buzzen-userinfo-edit { color: #607888 !important; font-size: 12px !important; font-weight: 700 !important; margin-left: 2px !important; }

#legacy-profile-page .buzzen-userinfo-shell { padding: 16px 20px 18px !important; }

#legacy-profile-page .buzzen-userinfo-main {
    display: grid !important;
    grid-template-columns: 195px minmax(0, 1fr) 310px !important;
    gap: 24px !important;
    align-items: start !important;
    min-height: 0 !important;
    padding: 0 !important;
}

#legacy-profile-page .buzzen-userinfo-photo {
    position: relative !important;
    width: 190px !important;
    flex: none !important;
    align-self: start !important;
}

#legacy-profile-page .buzzen-userinfo-photo-link { display: block !important; cursor: zoom-in !important; width: 178px; }

#legacy-profile-page .buzzen-userinfo-photo img {
    width: 178px !important;
    height: 226px !important;
    object-fit: cover !important;
    padding: 4px !important;
    border: 2px solid rgba(255, 210, 74, .58) !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: 0 14px 30px rgba(11, 50, 86, .22), 0 0 0 6px rgba(255,255,255,.72), 0 0 28px rgba(28, 126, 200, .16) !important;
}

#legacy-profile-page .buzzen-userinfo-photo-link:hover img {
    border-color: rgba(255, 210, 74, .80) !important;
    box-shadow: 0 14px 30px rgba(11, 50, 86, .30), 0 0 0 6px rgba(255,255,255,.72), 0 0 32px rgba(28, 126, 200, .24) !important;
}

#legacy-profile-page .buzzen-userinfo-photo-badge {
    position: absolute !important;
    right: 4px !important;
    bottom: -2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border: 3px solid rgba(255,255,255,.90) !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ffd85e, #e6a915) !important;
    color: #174a74 !important;
    font-size: 16px !important;
    box-shadow: 0 8px 18px rgba(11, 50, 86, .20) !important;
}

#legacy-profile-page .buzzen-userinfo-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding-top: 4px !important;
}

#legacy-profile-page .buzzen-userinfo-identity { margin: 0 !important; padding: 0 !important; }

#legacy-profile-page .buzzen-userinfo-name {
    display: flex !important;
    align-items: flex-end !important;
    gap: 8px !important;
    margin: 0 0 4px !important;
}

#legacy-profile-page .buzzen-userinfo-name-icon { flex: none !important; width: 26px !important; margin-bottom: 5px !important; }
#legacy-profile-page .buzzen-userinfo-name-icon img { max-width: 22px !important; max-height: 22px !important; }

#legacy-profile-page .buzzen-userinfo-name-text a {
    display: inline-block !important;
    max-width: 100% !important;
    color: #0d3558 !important;
    font-size: 36px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    text-decoration: none !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.80), 0 4px 12px rgba(18, 63, 103, .14) !important;
}

#legacy-profile-page .buzzen-userinfo-name-text a:hover { color: #0e5d96 !important; }

#legacy-profile-page .buzzen-userinfo-realname {
    display: block !important;
    margin: 2px 0 0 32px !important;
    color: #587185 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

#legacy-profile-page .buzzen-userinfo-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex: 1 !important;
    gap: 7px !important;
    margin-top: 5px !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(34, 103, 154, .10) !important;
}

#legacy-profile-page .buzzen-userinfo-detail-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 6px 14px 6px 10px !important;
    border: 1px solid rgba(34, 103, 154, .14) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(234,247,255,.82)) !important;
    color: #405868 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 2px 6px rgba(34,103,154,.07) !important;
    white-space: nowrap !important;
}

#legacy-profile-page .buzzen-userinfo-detail-icon { flex: none; width: 24px; text-align: center; }
#legacy-profile-page .buzzen-userinfo-detail-icon img { max-width: 20px; max-height: 20px; }
#legacy-profile-page .buzzen-userinfo-detail-pill a { color: #1c70ad !important; font-weight: 800 !important; text-decoration: none; }

#legacy-profile-page .buzzen-userinfo-actions { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; margin-top: 14px !important; }
#legacy-profile-page .buzzen-userinfo-action { margin: 0 !important; padding: 8px 16px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 800 !important; }

#legacy-profile-page .buzzen-userinfo-badges {
    display: block !important;
    width: 310px !important;
    min-height: 200px !important;
    padding: 16px !important;
    justify-self: end !important;
    align-self: stretch !important;
    border: 1px solid rgba(34, 103, 154, .16) !important;
    border-left: 2px solid rgba(34, 103, 154, .14) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.92), transparent 45%),
        linear-gradient(145deg, rgba(236,248,255,.95), rgba(207,233,250,.90)) !important;
    box-shadow: 0 13px 30px rgba(11, 58, 96, .10), inset 0 1px 0 rgba(255,255,255,.92) !important;
}

#legacy-profile-page .buzzen-userinfo-badges-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 0 13px !important;
    color: #224d6b !important;
    font-family: var(--buzzen-font-heading) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

#legacy-profile-page .buzzen-userinfo-badges-title::before,
#legacy-profile-page .buzzen-userinfo-badges-title::after {
    content: "" !important;
    display: block !important;
    width: 34px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, transparent, #ffd24a, transparent) !important;
}

#legacy-profile-page .buzzen-userinfo-badges-title span::before,
#legacy-profile-page .buzzen-userinfo-badges-title span::after { content: "✦" !important; color: #ffd24a !important; margin: 0 8px !important; }

#legacy-profile-page .buzzen-userinfo-tags { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; align-items: center !important; }
#legacy-profile-page .buzzen-userinfo-tags-count-1 { grid-template-columns: 1fr !important; }
#legacy-profile-page .buzzen-userinfo-tag-item { display: flex !important; align-items: center !important; justify-content: center !important; min-height: 88px !important; padding: 10px !important; border: 1px solid rgba(34, 103, 154, .10) !important; border-radius: 14px !important; background: rgba(255,255,255,.62) !important; }
#legacy-profile-page .buzzen-userinfo-tag-img { display: block !important; max-width: 100% !important; max-height: 92px !important; object-fit: contain !important; }
#legacy-profile-page .buzzen-userinfo-tags-count-1 .buzzen-userinfo-tag-img { max-height: 128px !important; }
#legacy-profile-page .buzzen-userinfo-tags-count-2 .buzzen-userinfo-tag-img { max-height: 100px !important; }
#legacy-profile-page .buzzen-userinfo-tags-count-3 .buzzen-userinfo-tag-img,
#legacy-profile-page .buzzen-userinfo-tags-count-4 .buzzen-userinfo-tag-img { max-height: 88px !important; }

#legacy-profile-page .buzzen-userinfo-divider { height: 1px !important; margin: 14px 0 4px !important; background: linear-gradient(to right, transparent, rgba(24, 98, 152, .25), transparent) !important; }

/* Profile metadata strip */
#legacy-profile-page .buzzen-profile-meta {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px 18px !important;
    margin: 0 0 16px !important;
    padding: 14px 18px !important;
    border: 1px solid rgba(34, 103, 154, .13) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(236,248,255,.80)) !important;
    box-shadow: 0 9px 20px rgba(11, 58, 96, .08), inset 0 1px 0 rgba(255,255,255,.92) !important;
}

#legacy-profile-page .buzzen-profile-meta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
#legacy-profile-page .buzzen-profile-like-action { display: inline-flex; align-items: center; }
#legacy-profile-page .buzzen-profile-like-action:empty { display: none; }

#legacy-profile-page .buzzen-profile-like-action a,
#legacy-profile-page .buzzen-profile-like-action span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid rgba(196, 50, 46, .12);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,246,246,.88));
    color: #16496f !important;
    font-family: var(--buzzen-font-heading);
    font-size: 15px !important;
    font-weight: 800;
    letter-spacing: .15px;
    text-decoration: none !important;
    box-shadow: 0 7px 16px rgba(17, 71, 111, .07);
}

#legacy-profile-page .buzzen-profile-like-action i { color: #c4322e !important; }

#legacy-profile-page .buzzen-profile-stats-row { display: flex; align-items: center; justify-content: flex-end !important; flex-wrap: wrap; gap: 10px !important; }
#legacy-profile-page .buzzen-profile-stat { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 7px 12px !important; border: 1px solid rgba(34, 103, 154, .12); border-radius: 999px !important; background: linear-gradient(135deg, rgba(238,248,255,.95), rgba(255,255,255,.88)); color: #416174; font-size: 13px; line-height: 1.2; box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
#legacy-profile-page .buzzen-profile-stat i { color: #f0b915 !important; }
#legacy-profile-page .buzzen-profile-stat strong { color: #174d75; font-weight: 800; }

#legacy-profile-page .buzzen-profile-anniversary { position: relative; z-index: 1; width: 100%; height: auto; margin: 18px 0 22px; border-radius: 16px; background: transparent !important; box-shadow: 0 12px 26px rgba(10, 47, 77, .12); overflow: hidden; }
#legacy-profile-page .buzzen-profile-anniversary img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* Lower profile modules */
#legacy-profile-page .buzzen-profile-grid { position: relative; z-index: 1; }
#legacy-profile-page .buzzen-profile-maincol,
#legacy-profile-page .buzzen-profile-sidecol { padding-left: 12px; padding-right: 12px; }

#legacy-profile-page .sidebar-widget-header {
    position: relative;
    display: block;
    margin: 0 0 12px !important;
    padding: 10px 14px;
    border: 1px solid rgba(71, 151, 213, .22);
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(135deg, #103858 0%, #155c91 72%, #1b79bd 100%);
    box-shadow: 0 10px 22px rgba(12, 55, 91, .14), inset 0 1px 0 rgba(255,255,255,.12);
    overflow: hidden;
}

#legacy-profile-page .sidebar-widget-header::after { content: ""; position: absolute; left: 14px; bottom: 0; width: 72px; height: 3px; border-radius: 999px; background: #ffd24a; box-shadow: 0 0 18px rgba(255, 210, 74, .45); }
#legacy-profile-page .sidebar-widget-header h1 { display: block !important; margin: 0 !important; padding: 0 !important; background: transparent !important; color: #fff !important; font-family: var(--buzzen-font-heading); font-size: 19px !important; line-height: 1.2 !important; font-weight: 800; letter-spacing: .3px; text-shadow: 0 1px 0 rgba(0,0,0,.28); text-transform: uppercase; }
#legacy-profile-page .sidebar-widget-header h1 i { color: #ffd24a; margin-right: 7px; }

#legacy-profile-page .buzzen-profile-about,
#legacy-profile-page .blog-list,
#legacy-profile-page .buzzen-profile-media-card { margin-bottom: 18px; border: 1px solid rgba(34, 103, 154, .13) !important; border-radius: 0 0 14px 14px; background: rgba(255,255,255,.82) !important; box-shadow: 0 8px 18px rgba(17, 71, 111, .07); overflow: hidden; }

#legacy-profile-page .buzzen-profile-about { padding: 18px 20px !important; color: #31475a !important; font-size: 15px !important; line-height: 1.78 !important; letter-spacing: .01em; text-align: justify; overflow-wrap: anywhere; }
#legacy-profile-page .buzzen-profile-about-inner { max-width: 820px; }

#legacy-profile-page .blog-list { padding-left: 0; list-style: none; }
#legacy-profile-page .blog-list .list-group-item { margin: 0 0 8px !important; padding: 10px 12px; border-color: rgba(34, 103, 154, .13) !important; border-radius: 12px !important; background: rgba(255,255,255,.82) !important; box-shadow: 0 7px 18px rgba(17, 71, 111, .07); font-size: 14px; }
#legacy-profile-page .blog-list .list-group-item a { color: #12486f; font-weight: 700; text-decoration: none; }
#legacy-profile-page .blog-list .list-group-item a:hover { color: #0e7dcc; }

#legacy-profile-page .profile_sidebar_album ul,
#legacy-profile-page .profile_sidebar_awards ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 12px 12px !important; margin: 0 !important; }
#legacy-profile-page .profile_sidebar_album ul li,
#legacy-profile-page .profile_sidebar_awards ul li { float: none !important; margin: 0 !important; list-style: none; }
#legacy-profile-page .profile_sidebar_album ul li img { width: 64px !important; height: 64px !important; object-fit: cover; padding: 4px !important; border: 2px solid rgba(255,255,255,.92); border-radius: 14px !important; background: #fff; box-shadow: 0 8px 18px rgba(12, 54, 88, .13); }
#legacy-profile-page .profile_sidebar_awards ul li img { width: 58px !important; height: 74px !important; object-fit: contain; padding: 5px !important; border: 2px solid rgba(255,255,255,.92); border-radius: 13px !important; background: linear-gradient(180deg, #fff, #eef8ff) !important; box-shadow: 0 8px 18px rgba(12, 54, 88, .13); }
#legacy-profile-page .buzzen-profile-media-card { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(243,250,255,.86)) !important; }
#legacy-profile-page .buzzen-profile-audio-wrap { padding: 5px 0 2px; margin: 0 auto; max-width: 190px; }
#legacy-profile-page .buzzen-profile-audio-wrap audio { width: 100%; }
#legacy-profile-page .buzzen-games-won-list .list-group-item { display: flex; gap: 10px; align-items: center; }
#legacy-profile-page .buzzen-game-win-icon { width: 45px; text-align: center; color: #dba700; font-size: 24px; }
#legacy-profile-page .buzzen-games-won-footer { margin: -8px 0 15px; }

/* Relay profile hook retained from the legacy page. */
#legacy-profile-page .buzzen-legacy-relay-promo { position: relative; z-index: 1; margin: 0 0 18px; }
#legacy-profile-page .buzzen-legacy-relay-promo > header { position: relative; margin: 0 0 10px; padding: 10px 14px; border: 1px solid rgba(71,151,213,.22); border-radius: 14px 14px 6px 6px; background: linear-gradient(135deg, #103858 0%, #155c91 72%, #1b79bd 100%); }
#legacy-profile-page .buzzen-legacy-relay-promo > header h2 { margin: 0; color: #fff; font-family: var(--buzzen-font-heading); font-size: 19px; font-weight: 800; text-transform: uppercase; }
#legacy-profile-page .buzzen-legacy-relay-promo > header i { color: #ffd24a; margin-right: 7px; }
#legacy-profile-page .buzzen-legacy-relay-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) 125px; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid rgba(35,185,255,.34); border-radius: 12px; background: linear-gradient(135deg, #091421 0%, #111827 46%, #4d2a12 100%); color: #d8e7f2; }
#legacy-profile-page .buzzen-legacy-relay-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, #ff8b20, #b740ff 48%, #25c7ff); color: #fff; font-size: 1.2rem; }
#legacy-profile-page .buzzen-legacy-relay-copy > span { display: block; color: #39d3ff; font-size: 12px; font-weight: 900; text-transform: uppercase; }
#legacy-profile-page .buzzen-legacy-relay-copy strong { display: block; color: #fff; font-size: 15px; }
#legacy-profile-page .buzzen-legacy-relay-copy p { margin: 3px 0 0; font-size: 13px; line-height: 1.35; }
#legacy-profile-page .buzzen-legacy-relay-action { text-align: center; }
#legacy-profile-page .buzzen-legacy-relay-action a { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 999px; background: linear-gradient(135deg, #28caff, #b740ff 50%, #ff8b20); color: #fff; font-size: 13px; font-weight: 900; text-decoration: none; }
#legacy-profile-page .buzzen-legacy-relay-action small { display: block; margin-top: 4px; color: #a9c7d8; font-size: 12px; }

@media (max-width: 1199.98px) {
    #legacy-profile-page .buzzen-userinfo-main { grid-template-columns: 175px minmax(0, 1fr) 270px !important; gap: 18px !important; }
    #legacy-profile-page .buzzen-userinfo-photo { width: 175px !important; }
    #legacy-profile-page .buzzen-userinfo-photo img { width: 162px !important; height: 205px !important; }
    #legacy-profile-page .buzzen-userinfo-badges { width: 270px !important; min-height: 185px !important; }
    #legacy-profile-page .buzzen-userinfo-name-text a { font-size: 32px !important; }
}

@media (max-width: 991.98px) {
    #legacy-profile-page.has-profile-background { background-attachment: scroll; }
    #legacy-profile-page .buzzen-userinfo-main { grid-template-columns: 165px minmax(0, 1fr) !important; gap: 16px !important; }
    #legacy-profile-page .buzzen-userinfo-photo { width: 165px !important; }
    #legacy-profile-page .buzzen-userinfo-photo img { width: 152px !important; height: 192px !important; }
    #legacy-profile-page .buzzen-userinfo-badges { grid-column: 1 / -1; width: 100% !important; min-height: 0 !important; }
    #legacy-profile-page .buzzen-userinfo-tags { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)) !important; }
    #legacy-profile-page .buzzen-profile-maincol,
    #legacy-profile-page .buzzen-profile-sidecol { margin-bottom: 8px; }
    #legacy-profile-page .buzzen-legacy-relay-card { grid-template-columns: 48px minmax(0, 1fr); }
    #legacy-profile-page .buzzen-legacy-relay-action { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    #legacy-profile-page .pcontainer { padding-top: 8px; }
    #legacy-profile-page .buzzen-profile-panel { margin: 12px 0 20px !important; padding: 12px !important; border-radius: 14px; }
    #legacy-profile-page .buzzen-profile-title,
    #legacy-profile-page .sidebar-widget-header h1 { font-size: 17px !important; }
    #legacy-profile-page .buzzen-userinfo-mood { justify-content: center !important; padding: 6px 14px !important; }
    #legacy-profile-page .buzzen-userinfo-shell { padding: 14px 12px 16px !important; }
    #legacy-profile-page .buzzen-userinfo-main { display: block !important; text-align: center !important; }
    #legacy-profile-page .buzzen-userinfo-photo { width: 148px !important; margin: 4px auto 14px !important; }
    #legacy-profile-page .buzzen-userinfo-photo-link { width: 138px; }
    #legacy-profile-page .buzzen-userinfo-photo img { width: 138px !important; height: 174px !important; border-radius: 20px !important; }
    #legacy-profile-page .buzzen-userinfo-photo-badge { right: -2px !important; bottom: -3px !important; width: 38px !important; height: 38px !important; }
    #legacy-profile-page .buzzen-userinfo-name { justify-content: center !important; }
    #legacy-profile-page .buzzen-userinfo-name-text a { font-size: clamp(26px, 9vw, 34px) !important; }
    #legacy-profile-page .buzzen-userinfo-realname { margin: 3px 0 0 !important; }
    #legacy-profile-page .buzzen-userinfo-details { align-items: center !important; }
    #legacy-profile-page .buzzen-userinfo-detail-pill { max-width: 92% !important; white-space: normal !important; }
    #legacy-profile-page .buzzen-userinfo-actions { justify-content: center !important; }
    #legacy-profile-page .buzzen-userinfo-badges { margin-top: 14px; }
    #legacy-profile-page .buzzen-profile-meta { grid-template-columns: 1fr !important; text-align: center; }
    #legacy-profile-page .buzzen-profile-meta-actions,
    #legacy-profile-page .buzzen-profile-stats-row { justify-content: center !important; }
    #legacy-profile-page .buzzen-profile-stat { width: 100%; justify-content: center; border-radius: 12px !important; }
    #legacy-profile-page .buzzen-profile-anniversary { height: auto; margin: 14px 0 18px; border-radius: 12px; }
    #legacy-profile-page .buzzen-profile-about { text-align: left; font-size: 14px !important; line-height: 1.68 !important; padding: 15px !important; }
    #legacy-profile-page .buzzen-legacy-relay-card { display: block; text-align: center; }
    #legacy-profile-page .buzzen-legacy-relay-icon { margin: 0 auto 8px; }
    #legacy-profile-page .buzzen-legacy-relay-action { margin-top: 8px; }
}
