/*
 * Doğan Chat Demo 1
 * SpeakyPanel - Yazılım ve Tasarım: Emin Karaca
 */

:root {
    --bg: #020a18;
    --bg-2: #06162f;
    --panel: rgba(9, 31, 67, .72);
    --panel-strong: rgba(7, 24, 54, .93);
    --line: rgba(117, 182, 255, .27);
    --line-strong: rgba(85, 165, 255, .58);
    --text: #f4f9ff;
    --muted: #a9bed9;
    --blue: #1687ff;
    --blue-2: #55b6ff;
    --cyan: #65d8ff;
    --green: #2effa1;
    --shadow: 0 24px 70px rgba(0, 10, 35, .55);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --max: 1580px;
    --admin-accent: #1687ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 76% 6%, rgba(33, 128, 255, .22), transparent 30%),
        radial-gradient(circle at 18% 18%, rgba(60, 180, 255, .14), transparent 26%),
        linear-gradient(180deg, #071a38 0%, #020a18 42%, #020914 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(rgba(45, 130, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 130, 255, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
    pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.page-orbit {
    position: fixed;
    z-index: -2;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .13;
    pointer-events: none;
}
.page-orbit-a { top: -240px; left: -170px; background: #148bff; }
.page-orbit-b { top: 300px; right: -320px; background: #56d7ff; }

.site-header {
    width: min(calc(100% - 34px), var(--max));
    margin: 18px auto 0;
    position: relative;
    z-index: 30;
}

.header-bar {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(220px, auto) 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 11px 16px 11px 20px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: rgba(4, 19, 44, .68);
    box-shadow: 0 20px 55px rgba(0, 12, 42, .4), inset 0 1px rgba(255,255,255,.07);
    backdrop-filter: blur(19px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}
.site-brand-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(97, 192, 255, .4);
    background: linear-gradient(145deg, rgba(60, 151, 255, .25), rgba(0, 50, 127, .22));
    box-shadow: 0 0 28px rgba(42, 137, 255, .3);
    overflow: hidden;
}
.site-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.site-brand-text { line-height: .86; letter-spacing: -.02em; }
.site-brand-text strong { display: block; font-size: 26px; }
.site-brand-text small { display: block; margin-top: 6px; color: var(--blue-2); font-size: 18px; font-weight: 800; }

.main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 30px);
}
.main-navigation a {
    position: relative;
    padding: 12px 2px;
    color: #c5d7ec;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: .22s ease;
}
.main-navigation a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--admin-accent), var(--cyan));
    box-shadow: 0 0 14px rgba(50, 164, 255, .9);
    transition: .22s ease;
}
.main-navigation a:hover, .main-navigation a.active { color: #fff; }
.main-navigation a:hover::after, .main-navigation a.active::after { left: 0; right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.round-action, .header-join {
    border: 1px solid var(--line);
    background: rgba(11, 38, 78, .7);
    box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.round-action {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    cursor: pointer;
}
.header-join {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 0 20px;
    border-color: rgba(59, 174, 255, .7);
    border-radius: 14px;
    background: linear-gradient(180deg, #28a7ff, #0863eb);
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 0 28px rgba(25, 132, 255, .38), inset 0 1px rgba(255,255,255,.35);
}
.header-join:hover { transform: translateY(-2px); filter: brightness(1.08); }

.mobile-menu-button {
    display: none;
    width: 46px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(10, 38, 78, .78);
    cursor: pointer;
}
.mobile-menu-button span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 10px; }

.announcement-bar {
    margin: 9px 16px 0;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(90, 173, 255, .2);
    border-radius: 12px;
    background: rgba(5, 25, 54, .76);
    color: #bcd4ed;
    backdrop-filter: blur(14px);
}
.announcement-bar > span {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--admin-accent), #3fc4ff);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.announcement-viewport { overflow: hidden; flex: 1; }
.announcement-viewport p {
    display: inline-block;
    min-width: max-content;
    margin: 0;
    padding-right: 50px;
    font-size: 12px;
    animation: announcementMove 20s linear infinite;
}
@keyframes announcementMove { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

.floating-rail {
    position: fixed;
    z-index: 25;
    left: max(14px, calc((100vw - var(--max)) / 2 - 48px));
    top: 224px;
    display: grid;
    gap: 9px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(9, 35, 74, .64);
    box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
}
.floating-rail a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(123, 189, 255, .15);
    border-radius: 13px;
    color: #b8d8fb;
    background: rgba(17, 55, 106, .55);
    transition: .2s;
}
.floating-rail a:hover { color: #fff; border-color: #67bfff; box-shadow: 0 0 22px rgba(43,147,255,.4); transform: translateY(-2px); }

main {
    width: min(calc(100% - 34px), var(--max));
    margin: 15px auto 0;
}

.hero-shell {
    position: relative;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(280px, .88fr) minmax(500px, 1.55fr) 360px;
    gap: 22px;
    align-items: stretch;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(90deg, rgba(3, 17, 40, .97) 0%, rgba(7, 31, 70, .72) 34%, rgba(6, 25, 56, .72) 71%, rgba(4, 18, 40, .97) 100%),
        url("../images/sky-bg.webp") center/cover;
    box-shadow: 0 34px 90px rgba(0, 10, 33, .6), inset 0 1px rgba(255,255,255,.07);
    overflow: hidden;
}
.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 56% 42%, rgba(70, 168, 255, .19), transparent 38%),
        linear-gradient(180deg, transparent 52%, rgba(2, 10, 24, .72) 100%);
}
.hero-shell > * { position: relative; z-index: 2; }

.hero-copy {
    align-self: center;
    padding: 8px 0 8px 12px;
    min-width: 0;
}
.hero-brand-mark {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}
.hero-wing {
    width: 66px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 29px;
    clip-path: polygon(0 24%, 72% 0, 100% 50%, 72% 100%, 0 76%, 27% 50%);
    background: linear-gradient(145deg, #f7fbff, #5a9cff 50%, #113872);
    filter: drop-shadow(0 0 18px rgba(82,160,255,.65));
}
.hero-brand-mark div { line-height: .85; }
.hero-brand-mark strong {
    display: block;
    font-size: clamp(42px, 4.2vw, 74px);
    letter-spacing: -.06em;
    color: #f8fbff;
    text-shadow: 0 4px 0 #8199b6, 0 0 24px rgba(92,166,255,.4);
}
.hero-brand-mark small {
    display: block;
    margin-top: 9px;
    color: #3aa0ff;
    font-size: clamp(28px, 2.4vw, 42px);
    font-weight: 900;
    letter-spacing: -.04em;
    text-shadow: 0 0 22px rgba(39,139,255,.55);
}
.hero-kicker {
    margin: 0 0 9px;
    color: #c8d9ec;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.hero-copy h1 {
    margin: 0;
    font-size: clamp(34px, 3.6vw, 58px);
    line-height: 1.04;
    letter-spacing: -.045em;
}
.hero-copy h1 strong {
    color: #73beff;
    background: linear-gradient(180deg, #ffffff 8%, #68b7ff 54%, #2c7bf0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 35px rgba(57, 148, 255, .26);
}
.hero-description {
    max-width: 430px;
    margin: 19px 0 0;
    color: #c4d4e7;
    font-size: 15px;
    line-height: 1.7;
}
.hero-highlight {
    margin: 12px 0 0;
    color: #7fc9ff;
    font-size: 14px;
    font-weight: 750;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button-primary, .button-secondary {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 21px;
    border: 1px solid;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 850;
    transition: .2s ease;
}
.button-primary {
    border-color: #73c9ff;
    background: linear-gradient(180deg, #29a8ff, #075fe5);
    box-shadow: 0 0 34px rgba(35, 138, 255, .42), inset 0 1px rgba(255,255,255,.38);
}
.button-secondary {
    border-color: var(--line-strong);
    background: rgba(5, 27, 63, .76);
}
.button-primary:hover, .button-secondary:hover { transform: translateY(-2px); filter: brightness(1.08); }

.member-marquee {
    width: min(100%, 430px);
    margin-top: 25px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.member-marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 9px;
    animation: memberMove 27s linear infinite;
}
.member-marquee:hover .member-marquee-track { animation-play-state: paused; }
@keyframes memberMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-member {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    border: 2px solid #5fb9ff;
    box-shadow: 0 0 16px rgba(57,153,255,.34);
}
.marquee-member img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.marquee-member i {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 10px;
    height: 10px;
    border: 2px solid #06162f;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}
.marquee-member span { display: none; }

.online-summary {
    margin: 10px 0 0;
    color: #bcd0e5;
    font-size: 12px;
}
.online-summary i, .live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.hero-visual {
    position: relative;
    min-width: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.hero-image-mask {
    width: 115%;
    height: 100%;
    position: absolute;
    inset: 0 -7%;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 9%, #000 83%, transparent 100%);
    mask-composite: intersect;
}
.hero-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 47%;
    filter: saturate(1.08) contrast(1.06) brightness(.98);
    transform: scale(1.08);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: .45;
}
.hero-glow-a { width: 220px; height: 160px; right: 22%; bottom: 17%; background: #35aaff; }
.hero-glow-b { width: 180px; height: 180px; left: 22%; top: 24%; background: #0d5cff; opacity: .25; }
.sound-wave {
    position: absolute;
    left: 3%;
    right: 3%;
    top: 66%;
    height: 80px;
    opacity: .72;
    background:
        repeating-linear-gradient(90deg,
        transparent 0 8px,
        rgba(70, 177, 255, .95) 8px 10px,
        transparent 10px 17px);
    clip-path: polygon(0 49%, 3% 44%, 6% 56%, 9% 31%, 12% 70%, 15% 18%, 18% 82%, 21% 40%, 24% 61%, 27% 25%, 30% 75%, 33% 48%, 36% 54%, 39% 14%, 42% 88%, 45% 35%, 48% 67%, 51% 26%, 54% 77%, 57% 42%, 60% 56%, 63% 32%, 66% 72%, 69% 44%, 72% 57%, 75% 20%, 78% 81%, 81% 39%, 84% 63%, 87% 33%, 90% 69%, 93% 46%, 96% 55%, 100% 49%, 100% 51%, 0 51%);
    filter: drop-shadow(0 0 9px #2aa8ff);
}
.sound-wave-two { top: 66%; transform: scaleY(.52); opacity: .28; filter: blur(2px); }

.login-card {
    align-self: center;
    padding: 22px;
    border: 1px solid rgba(179, 218, 255, .46);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(235, 245, 255, .18), rgba(30, 63, 105, .22));
    box-shadow: 0 28px 70px rgba(0, 13, 45, .46), inset 0 1px rgba(255,255,255,.23);
    backdrop-filter: blur(23px);
}
.login-heading { text-align: center; }
.login-heading span {
    color: #f8fbff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.login-heading p { margin: 7px 0 0; color: #c2d4e8; font-size: 12px; }

.login-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 18px 0;
    padding: 4px;
    border: 1px solid rgba(111, 181, 255, .24);
    border-radius: 14px;
    background: rgba(7, 24, 55, .52);
}
.login-tab {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #c4d6e9;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.login-tab.active {
    color: #fff;
    background: linear-gradient(180deg, #359eff, #1967e4);
    box-shadow: 0 0 22px rgba(44, 147, 255, .45), inset 0 1px rgba(255,255,255,.27);
}
.login-tab:disabled { opacity: .4; cursor: not-allowed; }

.portal-login-form { display: grid; gap: 10px; }
.form-label { color: #d8e5f3; font-size: 11px; font-weight: 800; }
.input-shell {
    min-height: 47px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    border: 1px solid rgba(129, 192, 255, .28);
    border-radius: 12px;
    background: rgba(3, 18, 43, .68);
    box-shadow: inset 0 1px 8px rgba(0,0,0,.25);
}
.input-shell > span { color: #7fc0ff; text-align: center; }
.input-shell input, .input-shell select {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
}
.input-shell input::placeholder { color: #93a9c2; }
.input-shell select { color-scheme: dark; cursor: pointer; }
.is-hidden { display: none !important; }

.guest-options {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
}
.gender-switch {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border: 1px solid rgba(117,184,255,.24);
    border-radius: 10px;
    background: rgba(4,20,47,.7);
}
.gender-button, .avatar-picker-button {
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    color: #bcd1e8;
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.gender-button.active { color: #fff; background: rgba(44,137,255,.8); }
.avatar-picker-button {
    padding: 0 10px;
    border: 1px solid rgba(117,184,255,.24);
    background: rgba(9,45,88,.72);
}
.selected-avatar-text { min-width: 0; color: #93aac4; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.login-submit {
    min-height: 52px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid #79d1ff;
    border-radius: 14px;
    background: linear-gradient(180deg, #29aaff, #0860e5);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 34px rgba(23, 127, 255, .45), inset 0 1px rgba(255,255,255,.38);
}
.login-submit:hover { filter: brightness(1.08); }
.login-submit b { font-size: 19px; }
.login-note { margin-top: 14px; color: #a9bed4; text-align: center; font-size: 10px; }
.login-note a { color: #62beff; font-weight: 900; }

.stat-strip {
    position: relative;
    z-index: 4;
    width: calc(100% - 180px);
    margin: -26px auto 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(5, 25, 56, .91);
    box-shadow: 0 22px 55px rgba(0, 10, 34, .42), inset 0 1px rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
}
.stat-strip > div {
    min-height: 88px;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    padding: 14px 25px;
    border-right: 1px solid rgba(123,188,255,.15);
}
.stat-strip > div:last-child { border-right: 0; }
.stat-strip span { grid-row: 1 / 3; align-self: center; color: #5ab6ff; font-size: 27px; text-shadow: 0 0 18px rgba(61,166,255,.65); }
.stat-strip strong { font-size: 24px; line-height: 1; }
.stat-strip small { margin-top: 7px; color: #9db5ce; font-size: 11px; }

.glass-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(12, 43, 87, .82), rgba(4, 20, 47, .88));
    box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(16px);
}
.portal-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: start;
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 17px;
    border-bottom: 1px solid rgba(125,188,255,.14);
}
.panel-heading > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.panel-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.panel-heading b { color: #dff1ff; font-size: 14px; }
.panel-heading small { color: #91abc4; font-size: 10px; }

.online-panel { overflow: hidden; }
.online-list { padding: 8px 11px 10px; }
.online-user {
    display: grid;
    grid-template-columns: 40px 1fr 27px;
    align-items: center;
    gap: 9px;
    min-height: 55px;
    padding: 5px;
    border-bottom: 1px solid rgba(121,183,247,.1);
}
.online-user:last-child { border-bottom: 0; }
.user-avatar { position: relative; width: 36px; height: 36px; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 1px solid #6fb9ff; }
.user-avatar i {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 9px;
    height: 9px;
    border: 2px solid #061832;
    border-radius: 50%;
    background: var(--green);
}
.online-user strong { display: block; font-size: 11px; }
.online-user small { display: block; margin-top: 4px; color: #93abc3; font-size: 9px; }
.mini-wave { color: #44aeff; font-size: 20px; transform: rotate(90deg); text-shadow: 0 0 14px #2fa4ff; }
.panel-link {
    min-height: 43px;
    margin: 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(123,188,255,.28);
    border-radius: 11px;
    color: #d5e9ff;
    background: rgba(9,42,84,.62);
    font-size: 11px;
    font-weight: 850;
}

.portal-center { display: grid; gap: 16px; min-width: 0; }
.room-panel { min-width: 0; overflow: hidden; }
.room-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 12px;
    padding: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #247ee3 rgba(4,18,40,.5);
}
.room-card {
    position: relative;
    min-height: 164px;
    overflow: hidden;
    border: 1px solid rgba(127,195,255,.28);
    border-radius: 16px;
    scroll-snap-align: start;
    background: #081932;
    box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.room-card > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: .35s ease; }
.room-card:hover > img { transform: scale(1.06); }
.room-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,10,25,.04), rgba(1,9,22,.9)); }
.room-card-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 16px; }
.room-card h3 { margin: 0; font-size: 16px; }
.room-card p { margin: 4px 0 11px; color: #b7c8da; font-size: 9px; }
.room-card-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-card b { color: #dcecff; font-size: 10px; }
.room-card button {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(102,186,255,.55);
    border-radius: 8px;
    color: #fff;
    background: rgba(14,92,190,.72);
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.feature-card {
    min-height: 148px;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(145deg, rgba(18, 56, 105, .82), rgba(4, 20, 47, .94));
    box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.06);
}
.feature-card span {
    width: 54px;
    height: 54px;
    margin: 0 auto 11px;
    display: grid;
    place-items: center;
    border: 1px solid #54b7ff;
    border-radius: 50%;
    color: #82d4ff;
    background: radial-gradient(circle at 40% 35%, rgba(99,213,255,.35), rgba(6,74,164,.42));
    font-size: 23px;
    box-shadow: 0 0 23px rgba(39,150,255,.35);
}
.feature-card h3 { margin: 0; font-size: 12px; }
.feature-card p { margin: 7px 0 0; color: #9eb4ca; font-size: 9px; line-height: 1.5; }

.portal-side { display: grid; gap: 16px; }
.active-member-bubbles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px 7px;
    padding: 15px 12px 18px;
}
.active-member-bubbles > div { min-width: 0; text-align: center; }
.active-member-bubbles span { position: relative; width: 53px; height: 53px; margin: 0 auto 6px; display: block; }
.active-member-bubbles img { width: 100%; height: 100%; object-fit: cover; border: 2px solid #66bfff; border-radius: 50%; box-shadow: 0 0 18px rgba(41,147,255,.34); }
.active-member-bubbles i { position: absolute; right: 0; bottom: 2px; width: 10px; height: 10px; border: 2px solid #07172f; border-radius: 50%; background: var(--green); }
.active-member-bubbles strong, .active-member-bubbles small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-member-bubbles strong { font-size: 9px; }
.active-member-bubbles small { margin-top: 3px; color: #8fa8c1; font-size: 8px; }

.promotion-card {
    min-height: 190px;
    display: grid;
    grid-template-columns: 1fr 118px;
    align-items: center;
    gap: 8px;
    padding: 18px;
    overflow: hidden;
}
.promotion-card > div > span { color: #6bc5ff; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.promotion-card h2 { margin: 5px 0 8px; font-size: 22px; }
.promotion-card p { margin: 0; color: #a8bdd2; font-size: 10px; line-height: 1.55; }
.promotion-card a {
    min-height: 35px;
    margin-top: 13px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #5ab8ff;
    border-radius: 10px;
    background: rgba(15, 92, 187, .52);
    font-size: 10px;
    font-weight: 850;
}
.promotion-card img { width: 120px; filter: drop-shadow(0 0 25px rgba(64,160,255,.36)); }

.content-section, .bottom-info-grid { margin-top: 20px; }
.content-section {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(4, 20, 45, .75);
    box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05);
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.section-heading > div { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading > div > span { color: #61baff; font-size: 22px; }
.section-heading p { margin: 0; color: #93aac2; font-size: 11px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.article-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(117,184,255,.24);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(15, 48, 92, .78), rgba(4, 20, 46, .94));
    box-shadow: inset 0 1px rgba(255,255,255,.05);
}
.article-image { position: relative; height: 150px; display: block; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.article-card:hover .article-image img { transform: scale(1.06); }
.article-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(2,11,25,.75)); }
.article-image span { position: absolute; z-index: 2; right: 10px; bottom: 9px; padding: 5px 8px; border-radius: 8px; background: rgba(2,18,42,.8); font-size: 8px; }
.article-card > div { padding: 15px; }
.article-card h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.article-card p { min-height: 45px; margin: 9px 0 13px; color: #9fb5cb; font-size: 10px; line-height: 1.5; }
.read-more { color: #66c2ff; font-size: 10px; font-weight: 850; }
.empty-card { min-height: 180px; display: grid; place-items: center; text-align: center; }

.bottom-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.announcement-panel, .quick-pages-panel { padding-bottom: 14px; }
.announcement-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: start;
    margin: 12px 15px 0;
    padding: 13px;
    border: 1px solid rgba(117,184,255,.16);
    border-radius: 12px;
    background: rgba(8,34,69,.54);
}
.announcement-item > b {
    padding: 6px 5px;
    border-radius: 8px;
    color: #dff3ff;
    background: linear-gradient(135deg, #187eea, #33bdf8);
    text-align: center;
    font-size: 9px;
}
.announcement-item strong { font-size: 11px; }
.announcement-item p { margin: 5px 0 0; color: #9bb2c9; font-size: 9px; line-height: 1.5; }
.quick-pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px; }
.quick-pages a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border: 1px solid rgba(117,184,255,.16);
    border-radius: 11px;
    background: rgba(8,34,69,.54);
    color: #cfe2f5;
    font-size: 10px;
}
.quick-pages a:hover { border-color: #54b5ff; color: #fff; }

.site-footer {
    width: min(calc(100% - 34px), var(--max));
    min-height: 94px;
    margin: 20px auto 18px;
    display: grid;
    grid-template-columns: minmax(230px, auto) 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(4, 20, 45, .86);
    box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { font-size: 17px; }
.footer-brand small { margin-top: 6px; color: #8fa7bf; font-size: 9px; }
.footer-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; color: #9cb4cb; font-size: 10px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(15,58,111,.65); font-size: 10px; font-weight: 900; }
.developer-signature { grid-column: 1 / -1; margin: 0; padding-top: 11px; border-top: 1px solid rgba(117,184,255,.12); color: #718aa4; text-align: center; font-size: 9px; }
.developer-signature strong { color: #64beff; }

.avatar-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 8, 22, .82);
    backdrop-filter: blur(12px);
}
.avatar-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(720px, 88vh);
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 25px;
    background: linear-gradient(145deg, #0b2a57, #04162f);
    box-shadow: 0 35px 100px rgba(0,0,0,.62);
}
.avatar-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: rgba(8,37,77,.75); cursor: pointer; font-size: 22px; }
.avatar-dialog-heading > span { color: #5ebaff; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.avatar-dialog-heading h2 { margin: 5px 0; }
.avatar-dialog-heading p { margin: 0; color: #98aec4; font-size: 11px; }
.avatar-filter { display: flex; gap: 8px; margin: 18px 0; }
.avatar-filter button { min-height: 35px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,37,77,.75); cursor: pointer; font-size: 10px; }
.avatar-filter button.active { background: #167fe9; }
.avatar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.avatar-choice { padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: rgba(8,37,77,.65); cursor: pointer; }
.avatar-choice:hover { border-color: #66c1ff; transform: translateY(-2px); }
.avatar-choice img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.avatar-choice span { display: block; margin-top: 6px; color: #a8bed3; font-size: 8px; }

@media (max-width: 1420px) {
    .hero-shell { grid-template-columns: minmax(260px,.8fr) minmax(420px,1.35fr) 330px; padding: 20px; }
    .portal-grid { grid-template-columns: 230px minmax(0,1fr) 300px; }
    .floating-rail { display: none; }
}
@media (max-width: 1180px) {
    .header-bar { grid-template-columns: auto 1fr auto; }
    .main-navigation { gap: 14px; }
    .hero-shell { grid-template-columns: .9fr 1.25fr; }
    .hero-visual { grid-column: 2; grid-row: 1; min-height: 480px; }
    .login-card { grid-column: 1 / -1; width: min(760px, 100%); justify-self: center; }
    .stat-strip { width: calc(100% - 60px); }
    .portal-grid { grid-template-columns: 240px minmax(0, 1fr); }
    .portal-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .active-member-bubbles { grid-template-columns: repeat(6,1fr); }
}
@media (max-width: 900px) {
    .site-header, main, .site-footer { width: min(calc(100% - 20px), var(--max)); }
    .header-bar { grid-template-columns: 1fr auto; }
    .mobile-menu-button { display: block; justify-self: end; }
    .main-navigation {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 84px;
        padding: 14px;
        flex-direction: column;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(4,20,45,.96);
        box-shadow: var(--shadow);
    }
    .main-navigation.is-open { display: flex; }
    .header-actions { display: none; }
    .hero-shell { grid-template-columns: 1fr; padding: 18px; }
    .hero-copy { padding: 5px; }
    .hero-visual { grid-column: 1; grid-row: 2; min-height: 440px; }
    .login-card { grid-column: 1; grid-row: 3; }
    .stat-strip { width: 100%; margin: 12px 0 18px; grid-template-columns: repeat(2,1fr); }
    .stat-strip > div:nth-child(2) { border-right: 0; }
    .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(123,188,255,.15); }
    .portal-grid { grid-template-columns: 1fr; }
    .portal-side { grid-column: auto; grid-template-columns: 1fr; }
    .online-panel { order: 2; }
    .portal-center { order: 1; }
    .portal-side { order: 3; }
    .feature-grid { grid-template-columns: repeat(2,1fr); }
    .active-member-bubbles { grid-template-columns: repeat(6,1fr); }
    .article-grid { grid-template-columns: repeat(2,1fr); }
    .bottom-info-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; }
    .social-links { justify-content: center; }
}
@media (max-width: 620px) {
    .site-header { margin-top: 8px; }
    .header-bar { min-height: 64px; padding: 8px 10px; border-radius: 18px; }
    .site-brand-logo { width: 45px; height: 45px; }
    .site-brand-text strong { font-size: 21px; }
    .site-brand-text small { font-size: 14px; }
    .announcement-bar { margin-inline: 4px; }
    .hero-shell { min-height: auto; border-radius: 23px; }
    .hero-brand-mark strong { font-size: 48px; }
    .hero-brand-mark small { font-size: 29px; }
    .hero-copy h1 { font-size: 38px; }
    .hero-visual { min-height: 350px; }
    .login-card { padding: 17px; border-radius: 20px; }
    .guest-options { grid-template-columns: 1fr 1fr; }
    .selected-avatar-text { grid-column: 1 / -1; text-align: center; }
    .stat-strip > div { padding: 12px 14px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .active-member-bubbles { grid-template-columns: repeat(3,1fr); }
    .section-heading { align-items: start; flex-direction: column; }
    .article-grid { grid-template-columns: 1fr; }
    .quick-pages { grid-template-columns: 1fr; }
    .avatar-grid { grid-template-columns: repeat(4, 1fr); }
}
