/* ===============================
   Premium Notes UI (SSC Style)
   =============================== */

:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: #eaf0ff;
  --muted: rgba(234,240,255,0.72);
  --line: rgba(255,255,255,0.12);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --radius: 22px;
}

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

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 400px at 20% 10%, rgba(85, 125, 255, 0.22), transparent 60%),
              radial-gradient(700px 400px at 80% 20%, rgba(255, 120, 85, 0.18), transparent 55%),
              radial-gradient(800px 600px at 50% 100%, rgba(35, 255, 185, 0.10), transparent 65%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Topbar */
.topbar{
  padding: 26px 16px 10px;
}

.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar h1{
  font-size: 26px;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.topbar p{
  color: var(--muted);
  font-size: 14px;
}

.badge{
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  font-weight: 700;
  font-size: 13px;
}

/* Page */
.page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px 60px;
  display: grid;
  gap: 18px;
}

/* Card */
.card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2{
  font-size: 18px;
  letter-spacing: 0.2px;
}

.chip{
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

/* Flow grid */
.flow-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.flow-step{
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.12);
  transition: 0.2s ease;
}

.flow-step:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
}

.step-no{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
}

.step-body h3{
  font-size: 15px;
  margin-bottom: 4px;
}

.step-body p{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.formula{
  display: inline-block;
  padding: 7px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 14px;
}

/* Note box */
.note-box{
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}

.note-title{
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 14px;
}

.note-text{
  color: var(--muted);
  font-size: 14px;
}

/* QA */
.qa-grid{
  display: grid;
  gap: 14px;
}

.qa{
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(0,0,0,0.10);
}

.qa-q{
  display: flex;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.q-tag{
  min-width: 44px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
}

.q-text{
  font-size: 14px;
}

.qa-a{
  display: flex;
  gap: 12px;
  padding: 14px;
}

.a-tag{
  min-width: 92px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
}

.a-text{
  color: var(--muted);
  font-size: 14px;
}

.a-text b{
  color: var(--text);
}

/* Footer */
.footer{
  text-align: center;
  color: rgba(234,240,255,0.55);
  font-size: 13px;
  padding-top: 8px;
}

/* Responsive */
@media (max-width: 860px){
  .flow-grid{
    grid-template-columns: 1fr;
  }

  .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Print friendly */
@media print{
  body{
    background: white;
    color: black;
  }
  .topbar, .footer{
    display: none;
  }
  .card{
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
  }
  .flow-step, .qa{
    background: white;
  }
}
