  :root {
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-deep: 0 10px 30px rgba(0, 0, 0, .55);
  --shadow-gold: 0 4px 12px rgba(207, 161, 74, .35);
}

#ref-main{

  min-height:100vh;
  padding:14px;
  font-family:Inter,sans-serif;
  color:#fff;
}

/* TOP TAB */
.top-tabs{
  box-shadow: var(--shadow-soft);
  display:flex;
  background:#1a1a1a;
  border-radius:14px;
  padding:4px;
  margin-bottom:14px;
}
.top-tab{
  flex:1;
  padding:10px;
  background:transparent;
  border:none;
  color:#888;
  border-radius:12px;
}
.top-tab.active{
  box-shadow: var(--shadow-gold);
  background:linear-gradient(135deg,#f5c16c,#cfa14a);
  color:#000;
  font-weight:700;
}

/* CARD BASE */
.card{
  box-shadow: var(--shadow-soft);
  background:#1b1b1b;
  border-radius:16px;
  padding:16px;
  margin-bottom:14px;
}

/* INVITE */
.invite-card h3{font-size:15px;margin-bottom:10px}
.invite-item{margin-bottom:10px}
.invite-item span{font-size:11px;color:#aaa}

.invite-box{
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03),
var(--shadow-soft);
  display:flex;
  background:#111;
  border-radius:12px;
  overflow:hidden;
  margin-top:6px;
}
.invite-box b,
.invite-box small{
  flex:1;
  padding:12px;
  color:#f5c16c;
  font-size:12px;
}
.invite-box button{
  background:#cfa14a;
  border:none;
  padding:0 16px;
  font-weight:700;
}

.banner{
  box-shadow: var(--shadow-deep);
  position:relative; /* wajib */
  height:150px;
  border-radius:16px;
  padding:14px;
  display:flex;
  align-items:flex-end;
  margin-bottom:14px;
  background-size:cover;
  overflow:hidden;
}

.banner::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.25)
  );
  z-index:1;
}

.banner-blue{
  background-image:url('/uploads/fotobanner/banner.jpg');
}

.banner-kyc {
  background-image: url('/uploads/fotobanner/banner_kyc.png');
}
.banner-text {
  position: relative;
  z-index: 2;
}
.banner-text h4{font-size:15px}
.banner-text p{font-size:11px;color:#ddd;text-shadow: 0 2px 6px rgba(0,0,0,.8)}
.banner-text button{
  margin-top:10px;
  padding:6px 12px;
  border:none;
  border-radius:12px;
  background:#cfa14a;
  font-size:11px;
}

/* STATS */
.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.stat-box{
  box-shadow: var(--shadow-soft);
  background:#1a1a1a;
  border-radius:12px;
  padding:12px;
  font-size:11px;
}
.stat-box b{display:block;margin-top:4px}

/* REWARD */
.reward-card{
  margin-top:14px;
  background:#0f3d2e;
  border-radius:16px;
  padding:16px;
  text-align:center;
  color:#7CFFB2;
}
.reward-card b{
  display:block;
  font-size:18px;
  margin-top:6px;
}

/* TOAST */
.toast{
  box-shadow: var(--shadow-deep);
  position:fixed;
  bottom:120px;
  left:50%;
  transform:translateX(-50%);
  background:#111;
  padding:10px 16px;
  border-radius:12px;
  color:white;
  opacity:0;
  transition:.3s;
  z-index: 999;
}

.toast.show{opacity:1}

/* TAB CONTENT */
.tab-content{display:none}
.tab-content.active{display:block}

/* TABLE */
.bonus-table{
  width:100%;
  border-collapse:collapse;
  font-size:11px;
}
.bonus-table th{
  background:#222;
  padding:8px;
  color:#f5c16c;
}
.bonus-table td{
  padding:8px;
  border-bottom:1px solid #222;
  text-align:center;
}


/* TABLE BONUS */
.ref-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  background: #1f1f1f;
  border-radius: 12px;
  overflow: hidden;
}

.ref-table thead {
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.05);
  background: #222;
}

.ref-table th {
  padding: 10px 6px;
  color: #f5c16c;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #333;
}

.ref-table td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid #222;
  color: #eee;
}

.ref-table tr:last-child td {
  border-bottom: none;
}

.ref-table .bonus {
  color: #7CFFB2;
  font-weight: 700;
}

.ref-table tbody tr:hover {
  background: #1f1f1f;
}


/* TEAM SEARCH - NINJA MODE */
.team-search {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 14px 0;
  position: relative;
}

.team-search input {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 44px 0 14px;
  border-radius: 14px;
  background: #0b0b0b;
  color: #fff;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px #333, var(--shadow-soft);
}

.team-search input::placeholder {
  color: #777;
}

.team-search input:focus {
  box-shadow: inset 0 0 0 1px #cfa14a, var(--shadow-gold);
}

.team-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: .6;
  pointer-events: none;
}

.btn-header-reff {
  background: #2a2a2a;
  padding: 6px 10px;
  border-radius: 8px;
  color: #B9B9B9C9;
  font-size: 14px;
  display: flex;          /* agar ikon dan teks sejajar */
  align-items: center;
  gap: 4px;               /* jarak antara ikon dan teks */
  text-decoration: none;  /* hilangkan underline */
  
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0b0b0b;
  border: 1px solid #333;
  color: #fff;
  font-size: 13px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #cfa14a;
  box-shadow: 0 0 0 1px #cfa14a;
}

.btn-kyc {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #f5c16c, #cfa14a);
  color: #000;
}

.btn-kyc-info {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border: none;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  background: #1f1f1f;
  color: #f5c16c;
  box-shadow: var(--shadow-soft);
}