:root {
  --blue: #1682d8;
  --green: #65c85f;
  --ink: #202329;
  --muted: #5a606b;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 12px 28px rgba(68, 91, 105, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eaf6ff;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(232, 248, 236, 0.82), rgba(222, 240, 255, 0.9) 65%, #eaf6ff),
    radial-gradient(circle at 12% 24%, rgba(122, 212, 103, 0.18), transparent 28%),
    radial-gradient(circle at 92% 42%, rgba(20, 135, 218, 0.16), transparent 30%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 820px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(116px + env(safe-area-inset-bottom));
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(92px + env(safe-area-inset-top));
  padding: calc(16px + env(safe-area-inset-top)) 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(115deg, #78c741 0%, #20a2b9 54%, #0471b7 100%);
}

.time {
  font-size: 20px;
  font-weight: 600;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-btn,
.bell {
  width: 40px;
  height: 40px;
  border: 0;
  padding: 8px;
  color: #fff;
  background: transparent;
}

.back-btn {
  margin-left: -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.back-btn:active {
  transform: scale(0.96);
}

.bell svg,
.back-btn svg,
.bottom-nav svg,
.round-icon svg,
.direction svg,
.play-badge svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.view {
  display: none;
  padding: 34px 28px 10px;
}

.view.is-active {
  display: block;
}

.welcome {
  text-align: center;
  padding: 22px 8px 18px;
}

.university-logo {
  display: block;
  width: min(118px, 32vw);
  height: auto;
  margin: 0 auto 22px;
}

.welcome h1,
.view > h1,
.nomenclature h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 5vw, 29px);
  line-height: 1.2;
  font-weight: 650;
  text-transform: none;
}

.welcome h1 {
  text-transform: uppercase;
  font-size: clamp(20px, 4.8vw, 27px);
}

.welcome p,
.welcome em {
  display: block;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 14px;
}

.welcome em {
  color: #66727d;
}

.status-card,
.step-card,
.place-card,
.wide-card,
.color-row,
.room-card,
.video-card {
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.96), rgba(244, 255, 243, 0.9));
  box-shadow: var(--shadow);
}

.status-card {
  min-height: 76px;
  margin: 0 18px 26px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  overflow: hidden;
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card strong {
  color: #60656c;
  font-size: 16px;
  font-weight: 600;
}

.status-card span {
  font-size: 24px;
  font-weight: 600;
}

.status-card i {
  width: 22px;
  height: 22px;
  justify-self: center;
  border-radius: 50%;
  background: #46bd42;
  box-shadow: 0 0 0 6px rgba(70, 189, 66, 0.18);
}

.status-card .status-icon {
  width: 50px;
  height: 50px;
  padding: 13px;
}

.round-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 18px;
  border-radius: 50%;
}

.round-icon.green {
  color: #238b3f;
  background: #a6e5aa;
}

.round-icon.purple {
  color: #8c18a6;
  background: #e7b0ec;
  box-shadow: 0 8px 18px rgba(156, 57, 181, 0.18);
}

.round-icon.orange {
  color: #e08211;
  background: #ffe1ad;
  box-shadow: 0 8px 18px rgba(224, 130, 17, 0.18);
}

.round-icon.blue {
  color: #3b8ac4;
  background: #bce2ff;
}

.step-list {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}

.step-card {
  min-height: 184px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: start;
}

.step-copy h2,
.video-card h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 4.4vw, 24px);
  line-height: 1.28;
  font-weight: 650;
}

.step-copy p,
.video-card p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.primary-btn {
  min-height: 48px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 9px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(100deg, #60c760, #138ce2);
}

.step-divider {
  width: min(82%, 420px);
  height: 0;
  margin: 22px auto 12px;
  border: 0;
  border-top: 1px solid rgba(52, 83, 102, 0.28);
  grid-column: 1 / -1;
}

.volunteer-card {
  min-height: 148px;
  margin-top: 16px;
  padding: 18px 22px;
  grid-template-columns: 60px 1fr;
}

.volunteer-card .round-icon {
  width: 52px;
  height: 52px;
  padding: 14px;
}

.volunteer-card h2 {
  font-size: clamp(16px, 4vw, 21px);
  margin-bottom: 8px;
}

.volunteer-card p {
  font-size: 13px;
  line-height: 1.38;
  margin-bottom: 14px;
}

.volunteer-card .primary-btn {
  min-height: 42px;
  font-size: 14px;
  padding: 9px 16px;
}

.view > h1 {
  margin: 18px 12px 26px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 26px;
  margin-bottom: 42px;
}

.place-card {
  min-height: 280px;
  padding: 24px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.place-card h2,
.wide-card h2 {
  margin: 18px 0 8px;
  font-size: clamp(18px, 4.2vw, 23px);
  line-height: 1.2;
  font-weight: 650;
}

.descriptions {
  min-height: 70px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #464a52;
  font-size: 13px;
  line-height: 1.45;
}

.descriptions li::before {
  content: "• ";
}

.direction {
  margin-top: auto;
  width: 72px;
  display: inline-grid;
  justify-items: center;
  align-items: center;
  gap: 6px;
  color: #3d83e9;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
  white-space: normal;
}

.direction svg {
  width: 34px;
  height: 34px;
}

.list-cards {
  display: grid;
  gap: 20px;
  margin-bottom: 42px;
}

.wide-card {
  min-height: 132px;
  padding: 24px 22px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: center;
}

.wide-card h2 {
  margin-top: 0;
}

.wide-card > div:not(.round-icon) {
  min-width: 0;
}

.wide-card .direction {
  justify-self: center;
  margin-top: 0;
}

.wide-card .descriptions {
  min-height: 0;
  font-size: 15px;
}

.workshop-card {
  min-height: 310px;
  margin: 0 8px 38px;
  padding: 34px 22px;
  text-align: center;
}

.workshop-card .round-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  color: #2c983d;
  background: transparent;
  padding: 0;
}

.workshop-card .primary-btn {
  width: auto;
  min-width: 176px;
  min-height: 54px;
  gap: 10px;
  background: #3d83e9;
}

.workshop-card .primary-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.nomenclature {
  background: linear-gradient(180deg, #fae8fb 0, rgba(232, 241, 255, 0.95) 72%);
  min-height: calc(100vh - 92px);
}

.nomenclature > h1 {
  text-align: center;
  margin-top: 10px;
}

.color-list {
  display: grid;
  gap: 20px;
  margin: 34px 0 48px;
}

.color-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  background: rgba(255, 255, 255, 0.72);
}

.swatch {
  width: 42px;
  height: 42px;
  border: 4px solid #2e3033;
  border-radius: 9px;
  background: var(--swatch);
}

.color-row strong {
  font-size: clamp(18px, 4.4vw, 25px);
  font-weight: 500;
}

.room-card {
  margin-top: 26px;
  padding: 44px 12px 34px;
  text-align: center;
  background: rgba(255, 250, 255, 0.86);
}

.room-annotation {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.room-annotation text {
  fill: #111318;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 700;
}

.room-annotation .annotation-label {
  font-size: 18px;
  font-weight: 700;
}

.video-card {
  min-height: 360px;
  margin: 64px 18px 0;
  padding: 52px 28px;
  text-align: center;
}

.play-badge {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  padding: 24px;
  color: #fff;
  border-radius: 24px;
  background: #232323;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  width: min(calc(100% - 36px), 760px);
  min-height: 76px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(74, 96, 112, 0.18);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  min-width: 0;
  height: 56px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  padding: 6px 2px;
  color: #333;
  font: inherit;
  font-size: 11px;
  line-height: 1.1;
  background: transparent;
  overflow: hidden;
}

.bottom-nav svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.bottom-nav span {
  display: block;
  width: 100%;
  max-width: 72px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav .is-active {
  color: var(--blue);
}

.blocked {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.blocked[hidden] {
  display: none;
}

.blocked > div {
  width: min(100%, 420px);
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

@media (max-width: 430px) {
  .top-bar {
    height: calc(88px + env(safe-area-inset-top));
    padding-left: 22px;
    padding-right: 22px;
  }

  .view {
    padding-left: 18px;
    padding-right: 18px;
  }

  .step-list {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .status-card {
    margin-left: 0;
    margin-right: 0;
    padding: 12px 16px;
    grid-template-columns: 50px minmax(0, 1fr) 28px;
    gap: 12px;
  }

  .status-card .status-icon {
    width: 46px;
    height: 46px;
    padding: 12px;
  }

  .status-card i {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 5px rgba(70, 189, 66, 0.17);
  }

  .step-card {
    grid-template-columns: 62px 1fr;
    padding: 20px 18px;
  }

  .step-divider {
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .volunteer-card {
    grid-template-columns: 54px 1fr;
    padding: 16px 18px;
  }

  .volunteer-card .round-icon {
    width: 48px;
    height: 48px;
    padding: 13px;
  }

  .volunteer-card p {
    font-size: 12px;
  }

  .round-icon {
    width: 56px;
    height: 56px;
    padding: 14px;
  }

  .grid-cards {
    gap: 22px 18px;
  }

  .place-card {
    min-height: 258px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .wide-card {
    grid-template-columns: 60px minmax(0, 1fr) 66px;
    gap: 10px;
    padding: 20px 16px;
  }

  .wide-card .descriptions {
    font-size: 13px;
  }

  .wide-card .round-icon {
    width: 56px;
    height: 56px;
    padding: 14px;
  }

  .wide-card .direction {
    width: 62px;
    font-size: 10px;
  }

  .wide-card .direction svg {
    width: 30px;
    height: 30px;
  }

  .bottom-nav {
    width: calc(100% - 34px);
    border-radius: 24px;
  }
}

@media (max-width: 380px) {
  .bottom-nav {
    width: calc(100% - 22px);
    min-height: 70px;
    padding: 8px 6px;
  }

  .bottom-nav button {
    height: 52px;
    font-size: 10px;
  }

  .bottom-nav svg {
    width: 23px;
    height: 23px;
  }

  .bottom-nav span {
    max-width: 62px;
  }

  .wide-card {
    grid-template-columns: 52px minmax(0, 1fr) 58px;
    padding: 18px 12px;
    gap: 8px;
  }

  .wide-card h2 {
    font-size: 17px;
  }

  .wide-card .descriptions {
    font-size: 12px;
  }

  .wide-card .round-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .wide-card .direction {
    width: 56px;
    font-size: 9px;
  }

  .wide-card .direction svg {
    width: 28px;
    height: 28px;
  }

}

@media (max-width: 360px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }

  .step-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .volunteer-card {
    grid-template-columns: 1fr;
  }

  .status-card {
    grid-template-columns: 50px minmax(0, 1fr) 28px;
    text-align: left;
    justify-items: stretch;
    padding: 12px 14px;
    gap: 12px;
  }

  .status-card .status-icon {
    width: 44px;
    height: 44px;
    padding: 12px;
  }
}


.notification-backdrop{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.25);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);

    opacity:0;
    visibility:hidden;

    transition:opacity .3s ease, visibility .3s ease;

    z-index:998;
}

.notification-backdrop.show{
    opacity:1;
    visibility:visible;
}





/* Notification CSS */
.notification-panel{
    position:fixed;          /* Better than absolute */
    top:72px;
    right:18px;

    z-index:999;

    width:360px;
    max-height:480px;

    background:rgba(255,255,255,.95);
    backdrop-filter:blur(20px);

    border-radius:22px;

    box-shadow:
        0 20px 45px rgba(0,0,0,.15);

    overflow:hidden;

    transform:translateY(-15px) scale(.95);
    opacity:0;
    /* visibility:hidden; */

    transition:.3s ease;

    z-index:999;
}

.notification-backdrop.show .notification-panel{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
}

.notification-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 20px;

    border-bottom:1px solid #ececec;

    background:white;
}

.notification-header h3{
    margin:0;
    font-size:20px;
    color:#005bab;
}

.notification-actions{
    display:flex;
    gap:10px;
}

.notification-actions button{

    border:none;
    background:none;
    cursor:pointer;
    font-size:14px;
    color:#0f7fc0;
    font-weight:600;
}

.notification-list{

    max-height:400px;
    overflow-y:auto;
}

.notification{

    display:flex;
    gap:15px;

    padding:16px 18px;

    transition:.25s;

    cursor:pointer;
}

.notification:hover{

    background:#f6f9fc;
}

.notification-icon{
    width:48px;
    height:48px;
    border-radius:14px;
    background:#0f7fc0;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:22px;
    flex-shrink:0;
}

.notification-content{

    flex:1;
}

.notification-content h4{

    margin:0;
    font-size:15px;
}

.notification-content p{

    margin:6px 0;
    color:#666;
    font-size:13px;
}

.notification-content span{

    font-size:12px;
    color:#999;
}

/* Badge */

.bell{
    position:relative;
}

.notification-badge{

    position:absolute;

    top:-2px;
    right:-2px;

    width:20px;
    height:20px;

    border-radius:50%;

    background:#ff4d4f;
    color:white;

    font-size:11px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:600;

    border:2px solid white;
}

@media(max-width:480px){

.notification-panel{

    left:12px;
    right:12px;

    width:auto;
}

}

#enableBtn{
  position: relative;
}

#red_dot{
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 5px;
  font-size: 12px;
  font-weight: bold;
  background-color: #fd4b4b;
  border-radius: 50%;
  min-width: 25px;
  min-height: 20px;
  display: none;
}