:root{
  --dash-bg: rgba(7, 14, 30, .78);
  --dash-bg-soft: rgba(11, 22, 46, .64);
  --dash-border: rgba(232, 198, 111, .20);
  --dash-gold: #e7c67f;
  --dash-gold-strong: #f0cd75;
  --dash-text: #edf1fb;
  --dash-muted: #a7b5d4;
  --dash-green: #4cd67d;
  --dash-blue: #57a6ff;
  --dash-shadow: 0 18px 50px rgba(0,0,0,.32);
}

.page-dashboard{
  min-height: 100vh;
}

.dashboard-shell{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:24px;
}

.dashboard-sidebar{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:20px;
}

.sidebar-top{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.side-link{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 18px;
  border-radius:20px;
  text-decoration:none;
  color:var(--dash-text);
  background:linear-gradient(180deg, rgba(14,28,58,.88), rgba(8,16,33,.92));
  border:1px solid rgba(110,145,210,.28);
  box-shadow:var(--dash-shadow);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.side-link:hover{
  transform:translateY(-2px);
  border-color:rgba(232,198,111,.34);
  color:var(--dash-text);
  text-decoration:none;
}

.side-link.active{
  border-color:rgba(232,198,111,.60);
  box-shadow:0 0 0 1px rgba(232,198,111,.20), 0 18px 40px rgba(0,0,0,.35);
  background:linear-gradient(180deg, rgba(53,39,15,.92), rgba(15,21,43,.94));
}


.side-title{
  font-size:20px;
  font-weight:800;
  line-height:1.1;
}

.side-sub{
  margin-top:4px;
  font-size:13px;
  color:var(--dash-muted);
}

.sidebar-vip-box{
  padding: 28px 22px;
  border-radius: 28px;
  overflow: hidden;

  background:
    url("/assets/img/vip/vipstf.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border: 1px solid rgba(231, 198, 127, 0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);

  text-align: center;
}

/* .sidebar-vip-box{
    box-shadow: var(--dash-shadow);
    text-align: center;
    padding: 22px 18px;
    border-radius: 24px;
    border: 1px solid var(--dash-border);
    background: linear-gradient(rgba(13, 22, 44, 0.88), rgba(8, 15, 30, 0.96)), rgba(0, 0, 0, 0.25);
}  */

.sidebar-vip-art{
  width: 152px;
  height: 152px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-vip-icon{
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
}

.sidebar-vip-box h3{
  margin:0 0 10px;
  color:var(--dash-gold-strong);
  font-size:20px;
}

.sidebar-vip-box p{
  margin:0 0 18px;
  color:var(--dash-muted);
  font-size:14px;
  line-height:1.45;
}

.sidebar-vip-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  border-radius:999px;
  color:#22180a;
  font-weight:800;
  text-decoration:none;
  background: linear-gradient(358deg, #f0cf84 0%, #d6aa58 100%);
}

.sidebar-vip-btn:hover{
  color:#22180a;
  text-decoration:none;
}

.dashboard-main{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.dashboard-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.dashboard-title{
  margin:0;
  color: #f7f6f3;
  font-size:52px;
  line-height:1.02;
  font-family:'Cormorant Garamond', serif;
  text-shadow:0 3px 18px rgba(0,0,0,.55);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.7));
}

.dashboard-title span {
background: linear-gradient(180deg, #efdbc3 0%, #f7d3ab 18%, #ffce92 38%, #fabd58 52%, #f6cb6a 70%, #f3dfbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .25);
}


.dashboard-subtitle{
  margin:10px 0 0;
  font-size:18px;
  color:var(--dash-muted);
  text-shadow: 0 2px 28px rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .25);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)); 
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.65fr;
  gap: 8px;
  align-items: stretch;
}

/*.dashboard-grid{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:20px;
  align-items:start;
} */

.dash-card{
  border:1px solid var(--dash-border);
  border-radius:24px;
  padding:22px;
  background:
    linear-gradient(180deg, rgba(7,17,38,.88), rgba(8,14,28,.82));
  color:var(--dash-text);
  box-shadow:var(--dash-shadow);
  backdrop-filter:blur(5px);
  min-width:0;
}

.card-title{
  color:var(--dash-gold-strong);
  font-size:16px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:16px;
}

.vip-card{
  grid-column:1 / 3;
}

.status-card{
  grid-column:3;
}

.account-card{
  height:fit-content;
}

.referral-card{
  grid-column:2 / 4;
}

.activity-card{
  grid-column:1 / 3;
  margin-top: 14px;
}

.ranking-card{
  grid-column:3;
}

.card-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 22px;
  border:none;
  border-radius:14px;
  cursor:pointer;
  background: linear-gradient(358deg, #f0cf84 0%, #d6aa58 100%);
  color:#1f1608;
  font-size:15px;
  font-weight:800;
  text-decoration:none;
  box-shadow:none;
}

.card-action-btn:hover{
  text-decoration:none;
  color:#1f1608;
}

.card-action-btn.small{
  width:100%;
  min-height:46px;
  margin-top:12px;
}

.vip-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.vip-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.vip-item-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:var(--dash-gold);
}

.vip-item-title{
  font-size:24px;
  font-weight:800;
  color:var(--dash-text);
  line-height:1.1;
}

.vip-item-desc{
  margin-top:4px;
  color:var(--dash-muted);
  font-size:16px;
  line-height:1.3;
}

.status-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:170px;
}

.status-label{
  color:var(--dash-muted);
  font-size:14px;
}

.status-value{
  margin-top:8px;
  font-size:56px;
  line-height:1;
  font-family:'Cormorant Garamond', serif;
  color:var(--dash-gold-strong);
}

.status-right{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 120px;
}

.status-icon-img{
  width:110px;
  height:110px;
  object-fit:contain;
}

.account-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.account-item{
  padding:16px 18px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}

.account-label{
  color:var(--dash-muted);
  font-size:14px;
  margin-bottom:8px;
}

.account-value{
  color:var(--dash-text);
  font-size:25px;
  font-weight:700;
  word-break:break-word;
  overflow-wrap:anywhere;
  line-height:1.25;
}

.referral-top-grid{
  display:grid;
  grid-template-columns:0.7fr 1.05fr;
  gap:10px;
  margin-bottom:10px;
}

.ref-box{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  min-width:0;
}

.ref-label{
  color:var(--dash-muted);
  font-size:13px;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.ref-value{
  border-radius:12px;
  background:rgba(6,10,22,.70);
  border:1px solid rgba(232,198,111,.20);
  color:var(--dash-text);
  min-height:52px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  font-weight:700;
  min-width:0;
}

.ref-value.code{
  font-size:32px;
  justify-content:center;
  color:#fff4d1;
  letter-spacing:.03em;
}

.ref-value.link{
  font-size:14px;
  line-height:1.35;
  word-break:break-all;
}

.referral-stats.dual{
  display:flex;
  flex-direction:row;
  gap:14px;
  width:100%;
}

.referral-stats.dual .ref-stat{
  flex:1 1 0;
  min-width:0;
}

.ref-stat{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  min-height:120px;
}

.effective-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:130px;
}

.ref-stat-label{
  color:var(--dash-muted);
  font-size:13px;
  text-transform:uppercase;
  margin-bottom:10px;
}

.ref-stat-value{
  font-size:42px;
  font-weight:800;
  color:#fff4d1;
  line-height:1;
}

.ref-stat-sub{
  margin-top:8px;
  font-size:14px;
  color:var(--dash-muted);
}

.activity-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:420px;
  overflow-y:auto;
  padding-right:8px;
}

.activity-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.05);
}

.activity-item-left{
  display:flex;
  gap:14px;
  min-width:0;
}

.activity-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  font-weight:800;
}

.activity-icon.green{
  background:rgba(76,214,125,.16);
  color:var(--dash-green);
}

.activity-icon.gold{
  background:rgba(240,205,117,.16);
  color:var(--dash-gold-strong);
}

.activity-icon.blue{
  background:rgba(87,166,255,.16);
  color:var(--dash-blue);
}

.activity-name{
  color:var(--dash-text);
  font-size:19px;
  font-weight:700;
  line-height:1.2;
}

.activity-desc{
  margin-top:6px;
  color:var(--dash-muted);
  font-size:15px;
}

.activity-time{
  color:var(--dash-muted);
  font-size:14px;
  white-space:nowrap;
}

.ranking-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.ranking-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.05);
}

.ranking-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.ranking-pos{
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(240,205,117,.16);
  color:var(--dash-gold-strong);
  font-weight:800;
  flex:0 0 34px;
}

.ranking-pos.silver{
  color:#d7dde8;
  background:rgba(215,221,232,.12);
}

.ranking-pos.bronze{
  color:#c88d5f;
  background:rgba(200,141,95,.12);
}

.ranking-name{
  color:var(--dash-text);
  font-size:16px;
  font-weight:700;
}

.ranking-sub{
  margin-top:3px;
  color:var(--dash-muted);
  font-size:13px;
}

.ranking-right{
  color:#fff1c7;
  font-size:24px;
  font-weight:800;
  white-space:nowrap;
}

@media (max-width: 1280px){
  .dashboard-shell{
    grid-template-columns:220px 1fr;
  }

  .dashboard-grid{
    grid-template-columns:1fr 1fr;
  }

  .vip-card{
    grid-column:1 / -1;
  }

  .status-card,
  .ranking-card{
    grid-column:auto;
  }

  .referral-card,
  .activity-card{
    grid-column:1 / -1;
  }
}

@media (max-width: 980px){
  .dashboard-shell{
    width:min(100% - 24px, 1450px);
    grid-template-columns:1fr;
  }

  .dashboard-grid{
    grid-template-columns:1fr;
  }

  .vip-card,
  .status-card,
  .account-card,
  .referral-card,
  .activity-card,
  .ranking-card{
    grid-column:auto;
  }

  .referral-top-grid{
    grid-template-columns:1fr;
  }

  .referral-stats.dual{
    flex-direction:column;
  }
}

@media (max-width: 640px){
  .dashboard-title{
    font-size:40px;
  }

  .status-value{
    font-size:42px;
  }

  .ref-value.code{
    font-size:24px;
  }

  .activity-item{
    flex-direction:column;
  }

  .activity-time{
    white-space:normal;
  }
}

.card {
  height: 100%;
}

/* botões */

.sidebar-vip-btn,
#copyRef,
#copyRefLink{
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    filter .22s ease;
}

.sidebar-vip-btn:hover,
#copyRef:hover,
#copyRefLink:hover{
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 8px 12px rgba(216,173,78,.28),
    0 0 12px rgba(240,207,120,.18);
}

.dashboard-page-bg{
  width: 100%;
  margin: 0;
  padding:
    calc(var(--header-h) + 34px)
    max(24px, calc((100% - 1450px) / 2))
    60px;

  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}


.side-link.active{
  border-color: rgba(232,198,111,.60);
  box-shadow:
    0 0 0 1px rgba(232,198,111,.20),
    0 18px 40px rgba(0,0,0,.35);
  background: linear-gradient(180deg, rgba(53,39,15,.92), rgba(15,21,43,.94));
}

.side-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;

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

  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(232,198,111,.14);

  color:var(--dash-gold);
  font-size:20px;
}

.side-icon img{
  width: 40px;
  height:40px;
  object-fit:contain;
}

/* finall */
