*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f4f6f9, #e9eef5);
  color:#333;
  min-height:100vh;
}

.header{
  background:white;
  padding:18px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 4px 18px rgba(0,0,0,.08);
  position:sticky;
  top:0;
  z-index:10;
}

.logo{
  font-size:22px;
  font-weight:700;
  letter-spacing:0.5px;
}

button{
  border:none;
  cursor:pointer;
  padding:10px 16px;
  border-radius:8px;
  font-weight:600;
  transition:all .2s ease;
}

.btn.primary,
button#loginBtn,
button#loginBtnMain{
  background:#0078d4;
  color:white;
}

.btn.primary:hover,
button#loginBtn:hover,
button#loginBtnMain:hover{
  background:#106ebe;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,120,212,.25);
}

.btn.secondary{
  background:#eef2f7;
  color:#333;
}

.btn.secondary:hover{
  background:#dfe7f1;
}

#guestView{
  text-align:center;
  margin:80px auto;
  max-width:600px;
  padding:40px;
  background:white;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

#guestView h1{
  margin-bottom:12px;
  font-size:32px;
}

#guestView p{
  margin-bottom:25px;
  color:#666;
}

#dashboardView{
  padding:40px;
}

#dashboardView h2{
  margin-bottom:20px;
}

.grid,
#demoGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.demo-card{
  background:white;
  border-radius:12px;
  padding:20px;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}

.demo-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.demo-card h3{
  margin-bottom:8px;
}

.demo-card p{
  color:#666;
  margin-bottom:15px;
}


#userSection{
  align-items:center;
  gap:12px;
}


#userSection:not(.hidden){
  display:flex;
}

#userSection span{
  font-size:14px;
  color:#444;
}

.error{
  margin-top:20px;
  padding:12px;
  border-radius:8px;
  background:#ffe8e8;
  color:#b00020;
  border:1px solid #ffcccc;
}


.hidden{
  display:none !important;
}

@media (max-width:600px){
  .header{
    padding:14px 20px;
  }

  #guestView{
    margin:40px 15px;
    padding:25px;
  }
}