:root{
  --hb-red:#d6111e;
  --hb-gold:#ddc76d;
  --hb-black:#000;
  --hb-white:#fff;
  --hb-border: rgba(0,0,0,.12);
  --hb-shadow: 0 8px 24px rgba(0,0,0,.08);
  --hb-radius: 16px;
  --hb-max: 820px;
}

.hb-oa-wrap{
  max-width: var(--hb-max);
  margin: 0 auto;
  padding: 16px;
}

.hb-oa-card{
  background: var(--hb-white);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  box-shadow: var(--hb-shadow);
  padding: 18px;
}

.hb-oa-title{
  margin: 0 0 12px 0;
  font-size: 28px;
  line-height: 1.15;
}

.hb-oa-subtitle{
  margin-top: 18px;
  margin-bottom: 10px;
}

.hb-oa-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
  align-items:center;
}

.hb-oa-sep{ opacity:.5; }

.hb-oa-link{
  color: var(--hb-red);
  text-decoration: none;
}
.hb-oa-link:hover{
  color: var(--hb-gold);
  text-decoration: underline;
}

.hb-oa-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--hb-red);
  color: var(--hb-white);
  text-decoration:none;
  font-weight: 600;
  cursor:pointer;
}
.hb-oa-btn:hover{ filter: brightness(0.95); }
.hb-oa-btn:focus{ outline: 3px solid rgba(221,199,109,.45); outline-offset: 2px; }

.hb-oa-btn--ghost{
  background: transparent;
  border-color: var(--hb-border);
  color: var(--hb-black);
}
.hb-oa-btn--ghost:hover{
  border-color: rgba(0,0,0,.25);
}

.hb-oa-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hb-oa-label{
  font-weight: 600;
  margin-top: 8px;
}

.hb-oa-input, .hb-oa-textarea{
  width: 100%;
  max-width: 640px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hb-border);
  background: var(--hb-white);
  color: var(--hb-black);
}
.hb-oa-textarea{ min-height: 120px; }

.hb-oa-help{
  font-size: 13px;
  opacity: .75;
}

.hb-oa-info{
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--hb-border);
  border-radius: 12px;
  background: rgba(221,199,109,.12);
}
.hb-oa-info ul{ margin: 8px 0 0 18px; }

.hb-oa-alert{
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0;
  border: 1px solid var(--hb-border);
}
.hb-oa-alert--ok{
  background: rgba(221,199,109,.18);
}
.hb-oa-alert--error{
  background: rgba(214,17,30,.10);
  border-color: rgba(214,17,30,.25);
}

.hb-oa-profilehead{
  display:flex;
  gap: 16px;
  align-items:center;
  margin: 12px 0 18px;
  flex-wrap:wrap;
}

.hb-oa-avatar{
  width: 86px;
  height: 86px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid var(--hb-border);
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.02);
}
.hb-oa-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hb-oa-avatar span{
  font-size: 12px;
  opacity:.7;
}

.hb-oa-name{
  font-size: 18px;
  font-weight: 700;
}
.hb-oa-meta{
  margin-top: 4px;
}

.hb-oa-actions{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.hb-oa-tablewrap{
  overflow:auto;
  border-radius: 12px;
  border: 1px solid var(--hb-border);
}
.hb-oa-table{
  width:100%;
  border-collapse: collapse;
  min-width: 520px;
}
.hb-oa-table th, .hb-oa-table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-align:left;
}
.hb-oa-table thead th{
  background: rgba(0,0,0,.03);
  font-weight: 700;
}
.hb-oa-right{
  text-align:right !important;
}


.hb-oa-events-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 860px){
  .hb-oa-events-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .hb-oa-events-grid{ grid-template-columns: 1fr; }
}

.hb-oa-event{
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(221,199,109,.12), rgba(255,255,255,1));
  transition: transform .12s ease, box-shadow .12s ease;
}
.hb-oa-event:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.hb-oa-event-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
}

.hb-oa-badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(214,17,30,.10);
  border: 1px solid rgba(214,17,30,.22);
  color: var(--hb-black);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.hb-oa-points{
  font-weight: 900;
  font-size: 20px;
  color: var(--hb-red);
}

.hb-oa-event-date{
  margin-top: 10px;
  font-size: 12px;
  opacity: .72;
}
