.auth-page, .dashboard-page { min-height: 100%; overflow-x: hidden; }
.auth-layout { width: min(1180px, calc(100% - 32px)); min-height: 100vh; min-height: 100svh; margin: auto; padding: 40px 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 460px); align-items: center; gap: clamp(48px, 8vw, 120px); }
.auth-story { min-width: 0; }
.auth-logo { width: 64px; height: 64px; display: block; margin-bottom: 42px; border-radius: 20px; box-shadow: 0 16px 38px rgba(109,93,252,.28); }
.auth-story h1 { margin: 17px 0 22px; font-size: clamp(3rem, 6.5vw, 5.8rem); line-height: 1.02; letter-spacing: -.055em; }
.auth-story h1 em { color: var(--primary-strong); font-style: normal; }
.auth-story > p:not(.eyebrow) { max-width: 610px; margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 2; }
.auth-benefits { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.auth-benefits span { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; color: #cbd1dc; font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.auth-benefits i { color: var(--cyan); }
.auth-card { padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(25,30,42,.94), rgba(13,16,23,.9)); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.auth-tabs { padding: 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border-radius: 14px; background: rgba(4,6,10,.5); }
.auth-tabs a { min-height: 42px; display: grid; place-items: center; color: var(--text-faint); font-size: .78rem; font-weight: 600; text-decoration: none; border-radius: 10px; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.auth-tabs a.active { color: white; background: rgba(109,93,252,.2); box-shadow: inset 0 0 0 1px rgba(109,93,252,.22); }
.auth-heading { margin: 28px 0 24px; display: flex; align-items: center; gap: 14px; }
.auth-heading p { margin: 0; color: var(--text-faint); font-size: .7rem; }
.auth-heading h2 { margin: 2px 0 0; font-size: 1.45rem; }
.form-alert, .dashboard-alert { padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; color: #ffd4da; font-size: .76rem; line-height: 1.7; border: 1px solid rgba(255,96,121,.28); border-radius: 13px; background: rgba(255,96,121,.09); }
.form-alert:focus { outline: 3px solid rgba(255,96,121,.25); outline-offset: 3px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form > label { margin: 15px 2px 7px; color: #d4d8e2; font-size: .76rem; font-weight: 600; }
.auth-field, .dashboard-field { position: relative; }
.auth-field > i, .dashboard-field > i { position: absolute; top: 50%; right: 16px; z-index: 1; transform: translateY(-50%); color: var(--text-faint); font-size: .88rem; pointer-events: none; }
.auth-field input, .dashboard-field input { width: 100%; min-height: 52px; padding: 0 46px 0 14px; color: var(--text); border: 1px solid var(--line); border-radius: 13px; outline: 0; background: rgba(4,6,10,.55); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-field input:focus, .dashboard-field input:focus { border-color: rgba(109,93,252,.72); background: rgba(6,8,13,.82); box-shadow: 0 0 0 4px rgba(109,93,252,.09); }
.field-help { margin: 6px 3px 0; color: var(--text-faint); font-size: .65rem; }
.auth-submit { min-height: 54px; margin-top: 22px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; color: white; font-weight: 700; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--primary-strong), #5647eb); box-shadow: 0 14px 30px rgba(109,93,252,.22); transition: transform .18s ease, box-shadow .18s ease; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(109,93,252,.3); }
.auth-switch { margin: 19px 0 0; color: var(--text-faint); font-size: .72rem; text-align: center; }
.auth-switch a { color: #aca5ff; text-underline-offset: 3px; }
.security-note { margin: 22px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #697286; font-size: .65rem; }

.dashboard-page { background: radial-gradient(circle at 85% -10%, rgba(109,93,252,.15), transparent 32rem), radial-gradient(circle at 0 100%, rgba(53,213,242,.07), transparent 28rem), var(--bg); }
.dashboard-nav { position: sticky; top: 0; z-index: 20; min-height: 74px; padding: 10px max(20px, calc((100% - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(7,9,13,.8); backdrop-filter: blur(20px); }
.dashboard-brand { min-width: 0; display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.dashboard-brand img { width: 44px; height: 44px; border-radius: 14px; }
.dashboard-brand span { display: flex; flex-direction: column; }
.dashboard-brand strong { font-size: .85rem; }
.dashboard-brand small, .account-chip small { color: var(--text-faint); font-size: .62rem; }
.account-menu, .account-chip { display: flex; align-items: center; gap: 9px; }
.account-menu form { margin: 0; }
.account-chip { padding: 5px 8px; color: inherit; text-decoration: none; border: 1px solid transparent; border-radius: 15px; transition: border-color .18s ease, background .18s ease; }
.account-chip:hover, .account-chip:focus-visible { border-color: var(--line); background: rgba(255,255,255,.035); }
.account-chip > span { width: 38px; height: 38px; display: grid; place-items: center; color: white; font-weight: 700; border-radius: 12px; background: linear-gradient(145deg, var(--primary-strong), #5141e8); }
.account-chip > span img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-chip > div { display: flex; flex-direction: column; }
.account-chip strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.logout-button { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: #ff9bad; border: 1px solid rgba(255,96,121,.22); border-radius: 13px; background: rgba(255,96,121,.08); transition: transform .18s ease, color .18s ease, background .18s ease; }
.logout-button:hover, .logout-button:focus-visible { color: #fff; background: rgba(255,96,121,.2); transform: translateY(-1px); }
.admin-nav-link { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; color: #dedaff; font-size: .7rem; text-decoration: none; border: 1px solid rgba(109,93,252,.22); border-radius: 12px; background: rgba(109,93,252,.09); }
.dashboard-main { width: min(1240px, calc(100% - 32px)); margin: auto; padding: 52px 0 72px; }
.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.dashboard-hero h1 { margin: 14px 0 16px; max-width: 100%; font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.dashboard-hero h1 em { color: var(--primary-strong); font-style: normal; }
.dashboard-hero > div > p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--text-soft); line-height: 1.9; }
.dashboard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashboard-stats article { min-width: 150px; padding: 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); }
.dashboard-stats article > i { width: 40px; height: 40px; display: grid; place-items: center; color: #bcb6ff; border-radius: 12px; background: rgba(109,93,252,.13); }
.dashboard-stats article span { display: flex; flex-direction: column; }
.dashboard-stats strong { font-size: 1.15rem; }
.dashboard-stats small { color: var(--text-faint); font-size: .65rem; }
.dashboard-alert { margin-top: 26px; }
.dashboard-alert.success { color: #b7f6d8; border-color: rgba(56,217,150,.22); background: rgba(56,217,150,.08); }
.parallel-call-note { margin-top: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; color: #d9dcff; border: 1px solid rgba(109,93,252,.2); border-radius: 16px; background: linear-gradient(135deg,rgba(109,93,252,.1),rgba(53,213,242,.045)); }
.parallel-call-note > i { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; color: #bcb6ff; border-radius: 12px; background: rgba(109,93,252,.14); }
.parallel-call-note div { min-width: 0; display: flex; flex-direction: column; }.parallel-call-note strong { font-size: .76rem; }.parallel-call-note span { color: var(--text-soft); font-size: .68rem; line-height: 1.8; }
.room-actions { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.room-action-card { position: relative; padding: clamp(22px, 3vw, 30px); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(24,29,40,.88), rgba(12,15,22,.9)); box-shadow: 0 20px 54px rgba(0,0,0,.2); }
.room-action-card::after { content: ''; position: absolute; width: 190px; height: 190px; top: -110px; left: -80px; border-radius: 50%; background: var(--card-glow, rgba(109,93,252,.12)); filter: blur(14px); pointer-events: none; }
.join-room-card { --card-glow: rgba(53,213,242,.1); }
.action-card-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #d3cfff; border: 1px solid rgba(109,93,252,.18); border-radius: 15px; background: rgba(109,93,252,.11); }
.join-room-card .action-card-icon { color: #9de8f5; border-color: rgba(53,213,242,.16); background: rgba(53,213,242,.08); }
.action-card-heading { margin: 19px 0 20px; }
.action-card-heading p, .section-heading p { margin: 0; color: var(--text-faint); font-size: .68rem; }
.action-card-heading h2, .section-heading h2 { margin: 3px 0 0; font-size: 1.25rem; }
.action-card-heading span { display: block; margin-top: 7px; color: var(--text-soft); font-size: .72rem; line-height: 1.8; }
.room-action-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.room-action-card form label { color: #ccd1dc; font-size: .7rem; }
.room-action-card form button { grid-column: 1 / -1; }
.dashboard-field { grid-row: 2; }
.room-action-card form label:nth-of-type(2) { grid-column: 2; }
.room-action-card form .dashboard-field:nth-of-type(2) { grid-column: 2; }
.room-primary-button, .room-secondary-button { min-height: 50px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; color: white; font-weight: 700; border: 1px solid transparent; border-radius: 13px; background: linear-gradient(135deg, var(--primary-strong), #5647eb); transition: transform .18s ease, box-shadow .18s ease; }
.room-secondary-button { border-color: rgba(53,213,242,.22); background: rgba(53,213,242,.1); }
.room-primary-button:hover, .room-secondary-button:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(0,0,0,.22); }
.room-primary-button:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.my-rooms-section { margin-top: 48px; }
.section-heading { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading > span { padding: 5px 10px; color: var(--text-soft); font-size: .68rem; border-radius: 999px; background: rgba(255,255,255,.045); }
.rooms-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-faint); text-align: center; border: 1px dashed var(--line-strong); border-radius: 22px; background: rgba(255,255,255,.018); }
.rooms-empty > i { margin-bottom: 13px; color: #7870c9; font-size: 1.6rem; }
.rooms-empty strong { color: #d6dae4; font-size: .9rem; }
.rooms-empty span { margin-top: 6px; font-size: .7rem; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.owned-room-card { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.028); transition: transform .18s ease, border-color .18s ease; }
.owned-room-card:hover { transform: translateY(-2px); border-color: rgba(109,93,252,.26); }
.room-card-top { display: flex; align-items: center; justify-content: space-between; }
.room-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow:hidden; color: white; font-weight: 700; border-radius: 13px; background: linear-gradient(145deg, var(--primary-strong), #5141e8); }
.room-avatar img { width:100%; height:100%; display:block; object-fit:cover; }
.room-state { display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: .65rem; }
.room-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--warning); }
.room-state.online { color: #91e8bf; }
.room-state.online i { background: var(--success); box-shadow: 0 0 9px var(--success); }
.owned-room-card h3 { margin: 16px 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
.room-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: .66rem; }
.room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.expiry-note { min-height: 42px; margin: 14px 0; padding: 8px 10px; color: #d5b97e; font-size: .63rem; line-height: 1.7; border-radius: 10px; background: rgba(255,190,92,.06); }
.owned-room-card > a { min-height: 42px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; color: #d8d4ff; font-size: .72rem; font-weight: 600; text-decoration: none; border-radius: 11px; background: rgba(109,93,252,.1); }

.lobby-grid { margin-top: 42px; display: grid; grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 18px; }
.profile-panel { min-width: 0; display: grid; gap: 14px; }
.profile-preview, .profile-form { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(24,29,40,.92), rgba(10,13,19,.96)); box-shadow: 0 20px 54px rgba(0,0,0,.2); }
.profile-preview { position: relative; min-height: 300px; }
.role-theme-both, .role-both { --role-color: #8b7cff; }.role-theme-gamer, .role-gamer { --role-color: #a578ff; }.role-theme-developer, .role-developer { --role-color: #43c6ee; }.role-theme-streamer, .role-streamer { --role-color: #ff6fae; }.role-theme-designer, .role-designer { --role-color: #ff9f66; }.role-theme-esports, .role-esports { --role-color: #f2c14f; }.role-theme-creator, .role-creator { --role-color: #55d89d; }
.profile-banner { height: 112px; overflow: hidden; background: radial-gradient(circle at 20% 20%, color-mix(in srgb,var(--role-color) 75%,transparent),transparent 42%), linear-gradient(120deg,color-mix(in srgb,var(--role-color) 44%,#131827),#0a0d14); }
.profile-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-avatar { position: absolute; top: 70px; right: 22px; width: 76px; height: 76px; display: grid; place-items: center; overflow: visible; color: #fff; font-size: 1.7rem; font-weight: 700; border: 6px solid #11151e; border-radius: 24px; background: var(--role-color,#8377ff); box-shadow: 0 12px 30px color-mix(in srgb,var(--role-color,#8377ff) 32%,transparent); }
.profile-avatar > img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 18px; }
.profile-avatar .status-dot { position: absolute; left: -3px; bottom: -3px; width: 17px; height: 17px; border: 4px solid #11151e; border-radius: 50%; }
.status-dot.status-online { background: #38d996; }.status-dot.status-busy { background: #ff6079; }.status-dot.status-focus { background: #ffbe5c; }
.profile-preview-body { padding: 49px 22px 22px; }
.profile-status { float: left; padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px; font-size: .62rem; border-radius: 999px; }.profile-status.status-online { color: #a9eccd; background: rgba(56,217,150,.09); }.profile-status.status-busy { color: #ffb0bd; background: rgba(255,96,121,.1); }.profile-status.status-focus { color: #ffd797; background: rgba(255,190,92,.1); }
.profile-preview h2 { margin: 0; font-size: 1.2rem; }
.profile-handle { margin: 2px 0 14px; color: var(--text-faint); direction: ltr; text-align: right; font-size: .72rem; }
.profile-bio { min-height: 45px; margin: 0 0 16px; color: var(--text-soft); font-size: .75rem; line-height: 1.85; }
.profile-bio a { color:#8edff0; text-decoration-thickness:1px; text-underline-offset:3px; overflow-wrap:anywhere; }
.role-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: color-mix(in srgb,var(--role-color,#8b7cff) 70%,white); font-size: .68rem; border: 1px solid color-mix(in srgb,var(--role-color,#8b7cff) 32%,transparent); border-radius: 10px; background: color-mix(in srgb,var(--role-color,#8b7cff) 11%,transparent); }
.profile-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.system-role { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: .66rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.system-role.role-moderator { color: #78d7ff; border-color: rgba(64,181,235,.22); background: rgba(64,181,235,.08); }
.system-role.role-staff { color: #b8f5d8; border-color: rgba(56,217,150,.22); background: rgba(56,217,150,.08); }
.system-role.role-admin { color: #ffd89a; border-color: rgba(255,190,92,.24); background: rgba(255,190,92,.09); }
.profile-form { padding: 22px; }
.profile-form { overflow: visible; }
.panel-title { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.panel-title p { margin: 0; color: var(--text-faint); font-size: .66rem; }.panel-title h2 { margin: 2px 0 0; font-size: 1.1rem; }.panel-title > i { color: var(--primary-strong); }
.profile-media-fields { margin-bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-media-field { padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }.media-field-label { display: block; margin-bottom: 8px; color: #cdd2dd; font-size: .67rem; }.media-field-actions { display: flex; gap: 6px; }.media-field-actions label, .media-field-actions button { min-height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: #dcd9ff; font: inherit; font-size: .65rem; border: 1px solid rgba(109,93,252,.2); border-radius: 10px; background: rgba(109,93,252,.09); }.media-field-actions label { flex: 1; }.media-field-actions button { color: #ffabb9; border-color: rgba(255,96,121,.18); background: rgba(255,96,121,.06); }.profile-upload-status { min-height: 20px; margin: -5px 2px 12px; color: var(--text-faint); font-size: .63rem; }.profile-upload-status.loading { color: #a8cfff; }.profile-upload-status.success { color: #9ce2bf; }.profile-upload-status.error { color: #ffabb9; }
.profile-form > label, .profile-fields-row label { display: block; margin: 10px 0 6px; color: #ccd1dc; font-size: .68rem; }
.profile-form input:not([type=color]), .profile-form textarea, .profile-form select, .room-settings-form input, .room-settings-form textarea { width: 100%; color: var(--text); border: 1px solid var(--line); border-radius: 11px; background: rgba(4,6,10,.54); outline: none; }
.profile-form input:not([type=color]), .profile-form select, .room-settings-form input { min-height: 44px; padding: 0 12px; }
.custom-select { position: relative; display: flex; align-items: center; }
.custom-select > i:first-child { position: absolute; z-index: 1; right: 12px; color: #9189e9; pointer-events: none; }
.custom-select #roleSelectIcon.fa-gamepad { color:#a578ff; }.custom-select #roleSelectIcon.fa-code { color:#43c6ee; }.custom-select #roleSelectIcon.fa-tower-broadcast { color:#ff6fae; }.custom-select #roleSelectIcon.fa-pen-ruler { color:#ff9f66; }.custom-select #roleSelectIcon.fa-trophy { color:#f2c14f; }.custom-select #roleSelectIcon.fa-clapperboard { color:#55d89d; }.custom-select #roleSelectIcon.fa-laptop-code { color:#8b7cff; }.custom-select #statusSelectIcon.fa-circle { color:#38d996; }.custom-select #statusSelectIcon.fa-circle-minus { color:#ff6079; }.custom-select #statusSelectIcon.fa-bullseye { color:#ffbe5c; }
.custom-select > i:last-child { position: absolute; left: 12px; color: var(--text-faint); font-size: .68rem; pointer-events: none; }
.custom-select select { appearance: none; cursor: pointer; padding: 0 38px 0 34px !important; }
.custom-select select option { color: #eef0f6; background: #151923; }
.custom-select.enhanced > select, .custom-select.enhanced > i { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0 0 0 0)!important; opacity:0!important; pointer-events:none!important; }
.select-trigger { width:100%; min-height:44px; padding:0 12px; display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; color:var(--text); font:inherit; border:1px solid var(--line); border-radius:11px; background:rgba(4,6,10,.54); }.select-trigger:hover { border-color:rgba(109,93,252,.42); background:rgba(8,10,16,.72); }.select-trigger[aria-expanded="true"] { border-color:rgba(109,93,252,.75); box-shadow:0 0 0 3px rgba(109,93,252,.1); }.select-trigger-value { min-width:0; display:flex; align-items:center; gap:9px; font-size:.72rem; }.select-trigger > i { color:var(--text-faint); font-size:.67rem; transition:transform .18s ease; }.select-trigger[aria-expanded="true"] > i { transform:rotate(180deg); }
.select-trigger:focus-visible, .select-option:focus-visible, .crop-viewport:focus-visible, .crop-dialog button:focus-visible, .crop-dialog input:focus-visible { outline:2px solid #9f98ff; outline-offset:2px; }
.select-popover { position:absolute; z-index:80; top:calc(100% + 6px); right:0; left:0; max-height:240px; padding:6px; overflow-y:auto; border:1px solid rgba(109,93,252,.28); border-radius:12px; background:#111620; box-shadow:0 18px 48px rgba(0,0,0,.55); }.select-popover[hidden] { display:none; }.select-option { width:100%; min-height:42px; padding:0 10px; display:flex; align-items:center; gap:9px; cursor:pointer; color:#d9dde7; font:inherit; font-size:.7rem; text-align:right; border:0; border-radius:8px; background:transparent; }.select-option:hover, .select-option.is-active { color:#fff; background:rgba(109,93,252,.13); }.select-option[aria-selected="true"] { color:#fff; background:rgba(109,93,252,.2); }.select-option i { width:18px; text-align:center; color:var(--option-color,#9f98ff); }.select-option .selected-mark { margin-right:auto; color:#9e97ff; }
.profile-form textarea, .room-settings-form textarea { padding: 10px 12px; resize: vertical; line-height: 1.7; }
.profile-form input:focus, .profile-form textarea:focus, .profile-form select:focus, .room-settings-form input:focus, .room-settings-form textarea:focus { border-color: rgba(109,93,252,.58); box-shadow: 0 0 0 3px rgba(109,93,252,.08); }
.profile-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.profile-fields-row > div { min-width:0; position:relative; }
.profile-form .room-primary-button { width: 100%; }
.quick-actions { display: grid; gap: 14px; }
.quick-actions .room-action-card { padding: 22px; }
.wide-label, .wide-field { grid-column: 1 / -1 !important; grid-row: auto !important; }
.room-description { min-height: 38px; margin: 0 0 12px; color: var(--text-soft); font-size: .72rem; line-height: 1.7; }
.room-card-actions { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 8px; }
.room-card-actions a, .room-card-actions button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; color: #ddd9ff; font: inherit; font-size: .7rem; text-decoration: none; border: 1px solid rgba(109,93,252,.16); border-radius: 11px; background: rgba(109,93,252,.1); }
.room-card-actions button { color: var(--text-soft); border-color: var(--line); background: rgba(255,255,255,.03); }
.room-card-actions form { margin:0; }.room-card-actions form button { width:100%; }.followed-room-card { border-color:rgba(53,213,242,.12); background:linear-gradient(145deg,rgba(20,29,38,.88),rgba(10,14,20,.94)); }.followed-room-card .unfollow-button { color:#ffc0ca; border-color:rgba(255,96,121,.18); background:rgba(255,96,121,.06); }.rooms-empty.compact { min-height:150px; }
.invite-form { margin-top: 8px; }
.invite-form button { width: 100%; min-height: 42px; cursor: pointer; color: #aee9f3; border: 1px solid rgba(53,213,242,.18); border-radius: 11px; background: rgba(53,213,242,.07); }
.invite-link { margin-top: 8px; display: flex; direction: ltr; gap: 6px; }
.invite-link input { min-width: 0; height: 40px; flex: 1; padding: 0 10px; color: var(--text-soft); font-size: .67rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(4,6,10,.52); }
.invite-link button { width: 40px; flex: 0 0 auto; cursor: pointer; color: #d9d5ff; border: 1px solid var(--line); border-radius: 10px; background: rgba(109,93,252,.09); }
.room-settings-form { margin-top: 12px; padding-top: 12px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.room-settings-form[hidden] { display: none; }
.room-settings-form label { color: #ccd1dc; font-size: .66rem; }.room-settings-form label small { display: block; margin: 2px 0 5px; color: var(--text-faint); }
.room-settings-form input, .room-settings-form textarea { display: block; margin-top: 5px; }
.room-settings-form button { min-height: 42px; cursor: pointer; color: #fff; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--primary-strong), #5647eb); }
.room-image-editor { grid-column:1/-1; min-width:0; padding:11px; display:flex; align-items:center; gap:11px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025); }.room-image-preview { width:54px; height:54px; flex:0 0 auto; border-radius:16px; }.room-image-copy { min-width:0; flex:1; }.room-image-copy > strong { display:flex; align-items:center; gap:7px; color:#e3e6ed; font-size:.7rem; }.room-image-copy > strong small { color:var(--text-faint); font-size:.59rem; font-weight:400; }.room-image-copy > div { margin-top:6px; display:flex; flex-wrap:wrap; gap:6px; }.room-image-action, .room-settings-form .room-image-remove, .room-action-card form .room-image-remove { min-height:34px; padding:0 9px; display:inline-flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; color:#dcd9ff; font:inherit; font-size:.62rem; border:1px solid rgba(109,93,252,.2); border-radius:9px; background:rgba(109,93,252,.09); }.room-settings-form .room-image-remove, .room-action-card form .room-image-remove { grid-column:auto; color:#ffabb9; border-color:rgba(255,96,121,.18); background:rgba(255,96,121,.06); }.room-upload-status { display:block; min-height:17px; margin-top:5px; color:var(--text-faint); font-size:.59rem; }.room-upload-status.loading { color:#a8cfff; }.room-upload-status.success { color:#9ce2bf; }.room-upload-status.error { color:#ffabb9; }
.crop-dialog { width:min(620px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:0; overflow:auto; color:var(--text); border:1px solid var(--line-strong); border-radius:24px; background:#10141d; box-shadow:0 30px 100px rgba(0,0,0,.72); }.crop-dialog::backdrop { background:rgba(0,0,0,.72); backdrop-filter:blur(7px); }.crop-card { padding:20px; }.crop-card header { margin-bottom:16px; display:flex; align-items:center; justify-content:space-between; }.crop-card header p { margin:0; color:#a7a0ff; font-size:.66rem; }.crop-card header h2 { margin:2px 0 0; font-size:1.15rem; }.crop-close { width:42px; height:42px; display:grid; place-items:center; cursor:pointer; color:#fff; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.04); }.crop-viewport { position:relative; width:100%; overflow:hidden; cursor:grab; touch-action:none; border:1px solid rgba(109,93,252,.34); border-radius:18px; background:#05070b; box-shadow:inset 0 0 0 1px rgba(255,255,255,.025); }.crop-viewport:active { cursor:grabbing; }.crop-viewport.avatar { width:min(100%,420px); margin-inline:auto; aspect-ratio:1; }.crop-viewport.banner { aspect-ratio:10/3; }.crop-viewport > img { position:absolute; max-width:none; user-select:none; pointer-events:none; }.crop-grid { position:absolute; inset:0; pointer-events:none; background:linear-gradient(to right,transparent 33.2%,rgba(255,255,255,.2) 33.3%,rgba(255,255,255,.2) 33.6%,transparent 33.7%,transparent 66.3%,rgba(255,255,255,.2) 66.4%,rgba(255,255,255,.2) 66.7%,transparent 66.8%),linear-gradient(to bottom,transparent 33.2%,rgba(255,255,255,.2) 33.3%,rgba(255,255,255,.2) 33.6%,transparent 33.7%,transparent 66.3%,rgba(255,255,255,.2) 66.4%,rgba(255,255,255,.2) 66.7%,transparent 66.8%); box-shadow:inset 0 0 0 999px rgba(0,0,0,.08); }.crop-controls { margin-top:15px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; }.crop-controls label { display:flex; align-items:center; gap:7px; color:var(--text-soft); font-size:.68rem; }.crop-controls input[type="range"] { width:100%; accent-color:var(--primary-strong); }.crop-move-controls { display:flex; gap:5px; direction:ltr; }.crop-move-controls button { width:38px; height:38px; display:grid; place-items:center; cursor:pointer; color:#d7d3ff; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.035); }.crop-help { margin:12px 0 0; color:var(--text-faint); font-size:.65rem; }.crop-card footer { margin-top:18px; display:flex; justify-content:flex-end; gap:8px; }.crop-card footer button { min-height:44px; padding:0 16px; cursor:pointer; color:#fff; font:inherit; border-radius:11px; }.crop-cancel { border:1px solid var(--line); background:rgba(255,255,255,.04); }.crop-apply { border:0; background:linear-gradient(135deg,var(--primary-strong),#5647eb); }

.crop-viewport.room { width:min(100%,420px); margin-inline:auto; aspect-ratio:1; }

@media (max-width: 900px) {
    .auth-layout { grid-template-columns: 1fr; gap: 38px; }
    .auth-story { text-align: center; }
    .auth-logo { margin-inline: auto; }
    .auth-story .eyebrow, .auth-benefits { justify-content: center; }
    .auth-story > p:not(.eyebrow) { margin-inline: auto; }
    .auth-card { width: min(100%, 520px); margin-inline: auto; }
    .dashboard-hero { grid-template-columns: 1fr; }
    .dashboard-stats { width: 100%; }
    .room-actions { grid-template-columns: 1fr; }
    .lobby-grid { grid-template-columns: 1fr; }
    .profile-panel { grid-template-columns: 1fr 1.2fr; }
}

@media (max-width: 600px) {
    .auth-layout { width: min(100% - 22px, 520px); padding: 26px 0 40px; }
    .auth-logo { width: 56px; height: 56px; margin-bottom: 28px; }
    .auth-story h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .auth-benefits { margin-top: 26px; }
    .auth-card { padding: 22px 17px; border-radius: 22px; }
    .dashboard-nav { padding-inline: 12px; }
    .dashboard-brand small, .account-chip > div { display: none; }
    .admin-nav-link span { display: none; }
    .admin-nav-link { width: 42px; padding: 0; justify-content: center; }
    .dashboard-main { width: calc(100% - 22px); padding-top: 34px; }
    .dashboard-hero h1 { font-size: clamp(2rem, 10vw, 2.55rem); }
    .dashboard-stats article { min-width: 0; padding: 13px 10px; }
    .room-action-card { padding: 20px 15px; border-radius: 20px; }
    .room-action-card form { grid-template-columns: 1fr; }
    .room-action-card form label, .room-action-card form label:nth-of-type(2), .dashboard-field, .room-action-card form .dashboard-field:nth-of-type(2), .room-action-card form button { grid-column: 1; grid-row: auto; }
    .room-action-card form label { margin-top: 7px; }
    .profile-panel { grid-template-columns: 1fr; }
    .profile-fields-row, .profile-media-fields { grid-template-columns: 1fr; }
    .crop-card { padding:15px; }.crop-controls { grid-template-columns:1fr; }.crop-move-controls { justify-content:center; }.crop-card footer { display:grid; grid-template-columns:1fr 1fr; }
    .logout-button { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
