/* ===== Base ===== */
*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: Inter, system-ui, Arial;
  color:#eaf0ff;

  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(91,140,255,0.18), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(123,92,255,0.12), transparent 60%),
    linear-gradient(180deg, #0c111b 0%, #0a0f18 100%);
  
  background-attachment: fixed;
}

/* ===== Layout ===== */
.container{
  max-width:1200px;
  margin:auto;
  padding:20px;
}

/* ===== Header / Nav ===== */
.header{
  background: rgba(18,21,28,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  font-weight:700;
  font-size:20px;
}

.logo a{
  text-decoration:none;
  color:#eaf0ff;
  font-weight:700;
  font-size:20px;
  letter-spacing:-0.5px;
}

.logo a:hover{ opacity:0.88; }

nav a{
  margin-left:15px;
  text-decoration:none;
  color:#eaf0ff;
  opacity:0.8;
}

nav a:hover{ opacity:1; }

/* ===== Buttons ===== */
.btn{
  padding:10px 16px;
  border-radius:10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color:#eaf0ff;
  display:inline-block;
}

.primary{
  background: linear-gradient(135deg,#3b82f6,#6366f1);
  border:none;
  box-shadow: 0 12px 30px rgba(59,130,246,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary:hover{
  transform:translateY(-2px);
  box-shadow: 0 18px 45px rgba(99,102,241,0.25);
  filter: brightness(1.05);
}

.large{ font-size:18px; }

/* ===== Hero ===== */
.hero{
  padding:120px 0;
  text-align:center;
}

.hero h1{
  font-size:48px;
  margin-bottom:20px;
  letter-spacing:-1px;
}

.hero p{
  opacity:0.82;
  margin-bottom:30px;
}

/* ===== Sections ===== */
.features{ padding:60px 0; }

/* ===== Grid / Cards ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.card{
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  padding:30px;
  border-radius:14px;
}

/* Typography inside cards */
.card h3{
  margin:0 0 10px 0;
}

.card p{
  margin:0;
  opacity:0.85;
}

/* Hover nur für klickbare Cards (z.B. Dashboard Links) */
a.card{
  display:block;
  text-decoration:none;
  color:inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

a.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.055);
}

/* ===== Footer ===== */
.footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align:center;
  padding:20px;
  opacity:0.7;
}

/* ===== Inputs (global) ===== */
.input{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color:#eaf0ff;
  outline:none;
}

.input:focus{
  border-color: rgba(59,130,246,0.65);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}

/* ===== Auth UI ===== */
.auth-wrap{
  min-height: calc(100vh - 140px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  position:relative;
  overflow:hidden;
}

.auth-wrap::before{
  content:"";
  position:absolute;
  inset:-200px;
  background:
    radial-gradient(circle at 20% 20%, rgba(91,140,255,0.22), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(123,92,255,0.18), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(0,255,170,0.09), transparent 55%);
  filter: blur(12px);
  pointer-events:none;
}

.auth-card{
  width: min(520px, 100%);
  background: rgba(18,21,28,0.70);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 26px;
  position:relative;
  box-shadow: 0 20px 80px rgba(0,0,0,0.45);
}

.auth-card h1{
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.6px;
}

.auth-sub{
  opacity:0.75;
  margin: 0 0 18px;
}

.form-row{ margin-top: 14px; }
.form-row label{
  display:block;
  font-size:13px;
  opacity:0.85;
  margin-bottom:6px;
}

.auth-actions{
  display:flex;
  gap:10px;
  margin-top:18px;
}

.btn.full{
  width:100%;
  text-align:center;
  display:inline-block;
}

/* Links */
.muted-link{
  opacity:0.85;
  color:#eaf0ff;
  text-decoration:none;
}
.muted-link:hover{
  opacity:1;
  text-decoration:underline;
}

/* Alerts */
.alert{
  margin-top:14px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,90,120,0.35);
  background: rgba(255,0,80,0.07);
}
.alert ul{ margin:0; padding-left:18px; } 

/* ===== Settings Layout ===== */

.settings-wrap{
  max-width:640px;
  margin:60px auto;
}

.settings-card{
  margin-top:24px;
  padding:28px;
  border-radius:16px;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
}

.settings-card h3{
  margin-top:0;
  margin-bottom:18px;
}

.settings-card form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.settings-card .btn{
  margin-top:8px;
}

/* ===== Danger Zone ===== */

.danger-zone{
  border:1px solid rgba(255,60,80,0.5);
  background: rgba(255,60,80,0.05);
}

.danger-zone h3{
  color:#ff6b81;
}

.btn-danger{
  background: linear-gradient(135deg,#ff4d6d,#ff6b81);
  border:none;
  color:white;
  transition: all 0.2s ease;
}

.btn-danger:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(255,77,109,0.4);
  filter:brightness(1.05);
}

/* Confirm Box */
.confirm-box{
  margin-top:16px;
  padding:14px;
  border-radius:12px;
  background: rgba(0,0,0,0.4);
  border:1px solid rgba(255,255,255,0.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
} 

.upload-box{
display:block;
cursor:pointer;
margin-bottom:14px;
}

.upload-ui{
border:1px dashed rgba(255,255,255,0.15);
padding:18px;
border-radius:12px;
text-align:center;
background:rgba(255,255,255,0.02);
transition:all 0.2s ease;
}

.upload-ui:hover{
border-color:#5b8cff;
background:rgba(91,140,255,0.08);
} 

.avatar-preview{
width:140px;
height:140px;
margin:20px auto;
border-radius:50%;
overflow:hidden;
display:flex;
align-items:center;
justify-content:center;
background:rgba(255,255,255,0.06);
border:1px solid rgba(255,255,255,0.1);
position:relative;
}

.avatar-preview img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

#avatarPlaceholder{
font-size:48px;
opacity:0.6;
} 

.user-menu{
display:flex;
align-items:center;
gap:14px;
}

.user-info{
display:flex;
align-items:center;
gap:10px;
text-decoration:none;
color:white;
}

.nav-avatar{
width:34px;
height:34px;
border-radius:50%;
object-fit:cover;
border:1px solid rgba(255,255,255,0.15);
transition:0.2s ease;
}

.nav-avatar.placeholder{
display:flex;
align-items:center;
justify-content:center;
background:rgba(255,255,255,0.08);
font-size:16px;
}

.user-info:hover .nav-avatar{
transform:scale(1.05);
} 

.user-dropdown{
position:relative;
}

.user-trigger{
display:flex;
align-items:center;
gap:10px;
background:none;
border:none;
color:white;
cursor:pointer;
font-family:inherit;
}

.dropdown-menu{
position:absolute;
right:0;
top:45px;
background:rgba(20,25,35,0.95);
backdrop-filter:blur(12px);
border:1px solid rgba(255,255,255,0.08);
border-radius:14px;
padding:10px 0;
width:200px;
display:none;
flex-direction:column;
box-shadow:0 20px 50px rgba(0,0,0,0.4);
z-index:100;
}

.dropdown-menu a{
padding:10px 16px;
text-decoration:none;
color:white;
font-size:14px;
opacity:0.85;
transition:0.15s ease;
}

.dropdown-menu a:hover{
background:rgba(255,255,255,0.05);
opacity:1;
}

.dropdown-menu hr{
border:none;
border-top:1px solid rgba(255,255,255,0.08);
margin:8px 0;
}

.logout-link{
color:#ef4444;
}

.user-dropdown.active .dropdown-menu{
display:flex;
} 

.dropdown-arrow{
width:8px;
height:8px;
border-right:2px solid rgba(255,255,255,0.7);
border-bottom:2px solid rgba(255,255,255,0.7);
transform:rotate(45deg);
margin-left:6px;
transition:transform 0.2s ease;
}

.user-dropdown.active .dropdown-arrow{
transform:rotate(225deg);
} 

.settings-card.success{ border-color:#22c55e; }
.settings-card.error{ border-color:#ef4444; } 

.header-user-wrap{
display:flex;
align-items:center;
gap:12px;
}

.friend-bell{
position:relative;
display:flex;
align-items:center;
justify-content:center;
width:36px;
height:36px;
border-radius:10px;
text-decoration:none;
color:white;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.08);
margin-left:0;
opacity:1;
transition:all 0.2s ease;
flex-shrink:0;
}

.friend-bell:hover{
background:rgba(255,255,255,0.08);
transform:translateY(-1px);
}

.bell-icon{
font-size:15px;
line-height:1;
}

.friend-badge{
position:absolute;
top:-6px;
right:-6px;
min-width:18px;
height:18px;
padding:0 5px;
border-radius:999px;
background:#ef4444;
color:#fff;
font-size:11px;
font-weight:700;
display:inline-flex;
align-items:center;
justify-content:center;
border:2px solid #12151c;
} 

/* =========================
   VOICE ROOM UI
========================= */

.voice-room-grid {
    gap: 20px;
}

.voice-card-title {
    margin-bottom: 6px;
}

.voice-card-text {
    opacity: 0.8;
    margin-bottom: 14px;
}

.voice-member-list,
.voice-invite-list {
    margin-top: 16px;
}

.voice-member-row,
.voice-invite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.voice-member-left,
.voice-invite-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.voice-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.voice-username {
    font-weight: 600;
}

.voice-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.voice-badge-owner {
    background: rgba(255,255,255,0.08);
    opacity: 0.9;
}

.voice-badge-live {
    background: #1f3d2a;
}

.voice-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.voice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.voice-btn:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.voice-btn-danger {
    background: rgba(120, 20, 20, 0.35);
}

.voice-btn-danger:hover {
    background: rgba(140, 20, 20, 0.45);
}

.voice-btn-muted {
    opacity: 0.7;
    cursor: not-allowed;
}

.voice-btn-small {
    width: auto;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.voice-empty {
    opacity: 0.75;
    margin-top: 12px;
}

.voice-room-headline {
    margin-bottom: 8px;
}

.voice-room-subline {
    opacity: 0.75;
    margin-bottom: 18px;
}

.voice-form-inline {
    display: inline;
    margin: 0;
}

.voice-form-block {
    margin: 0;
}

.voice-feedback {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 10px;
}

.voice-feedback-success {
    background: #1f3d2a;
}

.voice-feedback-error {
    background: #4a1f1f;
} 

.voice-room-open-wrap {
    margin-top: 12px;
}

.voice-room-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #eaf0ff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.voice-room-open-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(91,140,255,0.45);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.voice-room-open-link:focus-visible {
    outline: none;
    border-color: rgba(91,140,255,0.75);
    box-shadow: 0 0 0 4px rgba(91,140,255,0.18);
}

/* =========================
   ACTION PANEL
========================= */

.action-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    z-index: 999;
}

.action-panel-card {
    background: rgba(20, 20, 24, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
    padding: 16px;
    backdrop-filter: blur(8px);
}

.action-panel-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.action-panel-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-panel-label {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.action-panel-room {
    font-weight: 600;
    word-break: break-word;
}

.action-panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.action-panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: inherit;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
}

.action-panel-btn:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.action-panel-empty {
    opacity: 0.75;
    font-size: 14px;
}

@media (max-width: 768px) {
    .action-panel {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
} 

.action-panel-self-card {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px 12px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.action-panel-self-status {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.72;
}

.action-panel-self-card.action-panel-speaking-active {
    border-color: rgba(64, 156, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(64, 156, 255, 0.30),
        0 0 18px rgba(64, 156, 255, 0.22),
        0 0 32px rgba(64, 156, 255, 0.14);
    background: rgba(64, 156, 255, 0.08);
    transform: translateY(-1px);
}

.action-panel-self-card.action-panel-speaking-active .action-panel-self-status {
    opacity: 1;
} 

/* =========================
   DASHBOARD
========================= */

.dashboard-top-grid {
    align-items: stretch;
}

.dashboard-members-section {
    margin-top: 28px;
}

.dashboard-members-card {
    max-width: 520px;
}

.dashboard-new-members {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-member-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dashboard-member-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-member-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dashboard-member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-member-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    font-size: 18px;
}

.dashboard-member-text {
    min-width: 0;
}

.dashboard-member-name {
    color: #eaf0ff;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    max-width: 100%;
}

.dashboard-member-name:hover {
    text-decoration: underline;
}

.dashboard-member-sub {
    font-size: 14px;
    opacity: 0.72;
    margin-top: 3px;
} 

.page-back-wrap {
    margin-bottom: 18px;
}

.page-back-link {
    width: auto;
    text-decoration: none;
} 

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #eaf0ff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
}

.footer-admin-link:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-1px);
}

select.input {
    color: #eaf0ff;
    background: rgba(255,255,255,0.04);
}

select.input option {
    color: #000;
    background: #fff;
}
 
 //Neue Header // 
 
 .header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header .logo {
    flex: 0 1 auto;
    min-width: 0;
}

.header .logo a {
    display: inline-block;
    white-space: nowrap;
}

.header nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.header-user-wrap,
.header-guest-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.bbcoins-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 215, 90, 0.16), rgba(255, 193, 7, 0.08));
    border: 1px solid rgba(255, 213, 74, 0.28);
    color: #fff4c2;
    font-weight: 700;
    line-height: 1;
    min-height: 36px;
    box-sizing: border-box;
    white-space: nowrap;
    flex: 0 0 auto;
}

.bbcoins-icon {
    font-size: 15px;
    line-height: 1;
}

.bbcoins-value {
    color: #ffd54a;
    font-weight: 800;
    font-size: 14px;
}

.header-level-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 90px;
    flex: 0 0 auto;
}

.header-level-text {
    font-size: 12px;
    line-height: 1;
    opacity: 0.95;
    white-space: nowrap;
    text-align: left;
}

.header-level-bar {
    width: 90px;
    height: 7px;
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
    overflow: hidden;
}

.header-level-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6ea8ff 0%, #7f5cff 100%);
    border-radius: 999px;
}

@media (max-width: 768px) {
    .header .nav {
        align-items: flex-start;
        gap: 12px;
    }

    .header .logo a {
        font-size: 30px;
    }

    .header-user-wrap,
    .header-guest-wrap {
        gap: 10px;
    }

    .bbcoins-pill {
        padding: 7px 10px;
        min-height: 32px;
    }

    .bbcoins-value {
        font-size: 13px;
    }

    .header-level-box {
        min-width: 78px;
    }

    .header-level-text {
        font-size: 11px;
    }

    .header-level-bar {
        width: 78px;
        height: 6px;
    }

    .username {
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

@media (max-width: 560px) {
    .header .nav {
        gap: 10px;
    }

    .header .logo a {
        font-size: 26px;
    }

    .header-user-wrap,
    .header-guest-wrap {
        gap: 8px;
    }

    .bbcoins-pill {
        padding: 6px 9px;
        gap: 6px;
    }

    .bbcoins-icon {
        font-size: 14px;
    }

    .bbcoins-value {
        font-size: 12px;
    }

    .header-level-box {
        min-width: 70px;
    }

    .header-level-bar {
        width: 70px;
    }

    .username {
        max-width: 58px;
    }

    .user-trigger {
        gap: 6px;
    }
}