/* =========================================
   BASE RESET
========================================= */

html, body{
  height:100%;
  margin:0;
  font-family:'Inter',sans-serif;
  background:#070b10;
}

/* =========================================
   PAGE LAYOUT
========================================= */

body{
  display:flex;
  flex-direction:column;
}

/* Dashboard wrapper */
.app-home{
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;        /* lock page scroll */
}

/* Content area */
.home-content{
  flex:1;
  display:flex;
  padding:18px 22px;
  overflow:hidden;

  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(34,197,94,0.07),
      transparent 90%
    ),
    #0f141b;

}

/* =========================================
   3 COLUMN GRID
========================================= */

.home-grid{
  flex:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  min-height:0;
}

/* =========================================
   TABLE CARD
========================================= */

.home-grid table{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  overflow:hidden;

  border-radius:18px;
  background:linear-gradient(
    180deg,
    #0f141a 0%,
    #0b1015 100%
  );
  border:1px solid rgba(255,255,255,.05);
  box-shadow:0 18px 50px rgba(0,0,0,.6);
}

/* =========================================
   HEADER
========================================= */

.home-grid thead{
  flex-shrink:0;
  background:rgba(255,255,255,.03);
}

.home-grid thead tr{
  display:grid;
  align-items:center;
}

#tokensTable thead tr{
  grid-template-columns:1.2fr 1fr 1fr 1fr 1fr 1fr;
}

#whalesTable thead tr{
  grid-template-columns:1fr 1fr 1fr 1fr 1fr;
}

#smartTable thead tr{
  grid-template-columns:1.3fr 1fr 1fr 1fr;
}

.home-grid thead th{
  padding:11px 14px;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8b95a3;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.05);
}

/* =========================================
   BODY SCROLL
========================================= */

.home-grid tbody{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  display:block;
  min-height:0;
}

.home-grid tbody tr{
  display:grid;
  align-items:center;
  padding:8px 14px;
  font-size:11px;
  border-bottom:1px solid rgba(255,255,255,.03);
  transition:.15s ease;
}

#tokensTable tbody tr{
  grid-template-columns:1.2fr 1fr 1fr 1fr 1fr 1fr;
}

#whalesTable tbody tr{
  grid-template-columns:1.4fr 1fr 1fr .7fr 1fr;
}

#smartTable tbody tr{
  grid-template-columns:1.3fr 1fr 1fr 1fr;
}

.home-grid tbody tr:hover{
  background:rgba(255,255,255,.04);
}

/* =========================================
   CELL STYLE
========================================= */

.home-grid tbody td{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.3;
}

/* Right align numbers */
#tokensTable td:nth-child(n+2),
#smartTable td:nth-child(n+2){
  text-align:right;
}
#tokensTable td:nth-child(n+6){
    opacity:.6;
}
#topBuysTable td:nth-child(n+6){
    opacity:.6;
}

/* =========================================
   COLORS
========================================= */

.delta{
  font-weight:600;
}

.delta.good{ color:#1effa1; }
.delta.bad{  color:#ff5c5c; }

.good{ color:#19ffa1; }

.mono{
  font-family:ui-monospace,SFMono-Regular,monospace;
}

/* =========================================
   WHALES STYLING
========================================= */

#whalesTable td:nth-child(1){
  font-family:ui-monospace,SFMono-Regular,monospace;
  font-size:11px;
  font-weight:600;  
}

#whalesTable td:nth-child(2){
  font-size:11px;
  color:#fff;
  opacity:.9;  
}

#whalesTable td:nth-child(3){
  color:#19ffa1;

}

#whalesTable td:nth-child(4){
  text-align:center;
  font-size:8px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

#whalesTable td:nth-child(5){
  text-align:right;
  font-size:10px;
  opacity:.6;
}

/* Tier badges */
#whalesTable .tier{
  padding:4px 8px;
  border-radius:10px;
  display:inline-block;
}

#whalesTable .tier.kraken{
  background:rgba(255,170,0,.12);
  color:#ffb357;
}

#whalesTable .tier.mega{
  background:rgba(255,77,77,.12);
  color:#ff4d4d;
}

#whalesTable .tier.whale{
  background:rgba(255,138,43,.12);
  color:#ff8a2b;
}

#whalesTable .tier.orca{
  background:rgba(120,120,255,.12);
  color:#7f8cff;
}

/* =========================================
   SCROLLBAR
========================================= */

.home-grid tbody::-webkit-scrollbar{
  width:5px;
}

.home-grid tbody::-webkit-scrollbar-thumb{
  background:#ff8a2b;
  border-radius:6px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:1100px){

  body{
    overflow:auto;
  }

  .app-home{
    flex:none;
  }

  .home-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .home-grid table{
    height:420px;
  }

  .footer-dashboard-inner{
    grid-template-columns:1fr;
    gap:20px;
  }

  .footer-links{
    grid-template-columns:repeat(2,1fr);
  }

}

.footer-dashboard-inner{
  padding:8px 18px;
  gap:16px;
}

.footer-brand .brand-desc{
  display:none;   /* hide desc biar super compact */
}


/* =========================================
   TOP BUYS TABLE
========================================= */

#topBuysTable{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  overflow:hidden;

  border-radius:16px;
  background:linear-gradient(180deg,#0f141a 0%,#0b1015 100%);
  border:1px solid rgba(255,255,255,.05);
  box-shadow:0 12px 40px rgba(0,0,0,.5);
}

/* ---------- HEADER ---------- */

#topBuysTable thead{
  flex-shrink:0;
  background:rgba(255,255,255,.03);
}

#topBuysTable thead tr{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr;
  align-items:center;
}

#topBuysTable th{
  padding:10px 14px;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8b95a3;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.05);
}

/* ---------- BODY (SCROLL AREA) ---------- */

#topBuysTable tbody{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  display:block;
  min-height:0;
}

#topBuysTable tbody tr{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr;
  align-items:center;
  padding:7px 14px;
  font-size:10px;
  border-bottom:1px solid rgba(255,255,255,.03);
  transition:.12s ease;
}

#topBuysTable tbody tr:hover{
  background:rgba(255,255,255,.04);
}

/* ---------- CELL STYLE ---------- */

#topBuysTable td{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.3;
}

/* Angka rata kanan */
#topBuysTable td:nth-child(n+2){
  text-align:right;
}

/* Token clickable */
#topBuysTable .token-link{
  font-weight:600;
  cursor:pointer;
}

#topBuysTable .token-link:hover{
  opacity:.8;
}

/* ---------- DELTA COLORS ---------- */

#topBuysTable .delta{
  font-weight:600;
}

#topBuysTable .delta.good{
  color:#1effa1;
}

#topBuysTable .delta.bad{
  color:#ff5c5c;
}

/* ---------- OPTIONAL ROW COLOR ---------- */

#topBuysTable tr.row-green{
  background:linear-gradient(
    90deg,
    rgba(30,255,161,.04),
    transparent
  );
}

#topBuysTable tr.row-red{
  background:linear-gradient(
    90deg,
    rgba(255,92,92,.04),
    transparent
  );
}

/* ---------- SCROLLBAR ---------- */

#topBuysTable tbody::-webkit-scrollbar{
  width:5px;
}

#topBuysTable tbody::-webkit-scrollbar-thumb{
  background:#ff8a2b;
  border-radius:6px;
}

/* =========================================
   FOOTER BAR
========================================= */
/* =========================================
   COMPACT START FOOTER
========================================= */


/* =========================================
   START FOOTER – DESKTOP
========================================= */

.footer-start-bar{
  display:grid;
  grid-template-columns: repeat(4, auto) 1fr;
  align-items:center;

  padding:5px 5px;
  gap:10px;


  font-size:11px;
}

/* column */
.start-col{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

/* section title */
.start-col span{
  font-size:9px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.35;
  margin-right:4px;
}

/* links inline */
.start-col a{
  color:rgba(255,255,255,.6);
  text-decoration:none;
  font-size:11px;
  transition:.15s ease;
}

.start-col a:hover{
  color:#fff;
}

/* divider dot */
.start-col a:not(:last-child)::after{
  content:"•";
  margin-left:6px;
  opacity:.25;
}

/* copyright */
.footer-copy{
  justify-self:end;
  opacity:.35;
  font-size:10px;
}

/* =========================================
   MOBILE MODE
========================================= */

@media (max-width: 900px){

  .footer-start-bar{
    grid-template-columns: 1fr;
    gap:16px;
    padding:16px;
  }

  .start-col{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    white-space:normal;
  }

  .start-col span{
    font-size:10px;
    margin-bottom:4px;
  }

  .start-col a{
    font-size:12px;
  }

  /* remove divider dots in mobile */
  .start-col a::after{
    content:none;
  }

  .footer-copy{
    justify-self:start;
    margin-top:8px;
  }

}
/* =========================================
   TIER ICONS
========================================= */

#whalesTable .tier{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
}

/* ICON BEFORE */

#whalesTable .tier::before{
  font-size:12px;
}

/* Kraken */
#whalesTable .tier.kraken::before{
  content:"👑";
}

/* Mega */
#whalesTable .tier.mega::before{
  content:"🔥";
}

/* Whale */
#whalesTable .tier.whale::before{
  content:"🐋";
}

/* Orca */
#whalesTable .tier.orca::before{
  content:"🐬";
}

/* =========================================
   TABLE BLOCK WRAPPER
========================================= */

.home-table-block{
  display:flex;
  flex-direction:column;
  min-height:0;
}

/* =========================================
   TABLE HEADER (TITLE AREA)
========================================= */

.home-table-header{
  padding:16px 18px 14px;
  border-radius:18px 18px 0 0;

  background:linear-gradient(
    180deg,
    #11161c 0%,
    #0e1318 100%
  );

  border:1px solid rgba(255,255,255,.06);
  border-bottom:none;
}

.home-table-title{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.home-table-title h3{
  margin:0;
  font-size:15px;
  font-weight:600;
  letter-spacing:.4px;
  color:#fff;
}

.home-table-title span{
  font-size:11px;
  opacity:.5;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* =========================================
   CONNECT HEADER TO TABLE
========================================= */

.home-table-block table{
  border-top-left-radius:0 !important;
  border-top-right-radius:0 !important;
  border-top:1px solid rgba(255,255,255,.04);
}

/* =========================================
   CONSISTENT CARD SHADOW
========================================= */

.home-table-block table{
  box-shadow:0 18px 50px rgba(0,0,0,.6);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:1100px){

  .home-table-header{
    padding:14px 16px 12px;
  }

  .home-table-title h3{
    font-size:14px;
  }

}

/* =========================================
   HOME TABLE HEADER (INLINE + COMPACT)
========================================= */
/* =========================================
   HOME TABLE HEADER (INLINE CLEAN)
========================================= */

.home-table-header{
  font-family:ui-monospace,SFMono-Regular,monospace;  
  padding:8px 1px;
  border-bottom:1px solid rgba(255,255,255,.05);
}

/* Title + desc inline */
.home-table-title{
  display:flex;
  align-items:center;
}

/* Remove default h3 margin */
.home-table-title h3{
  margin:0;
  font-size:11px;
  font-weight:600;
  color:rgba(255,255,255,.45);
  letter-spacing:.02em;
  white-space:nowrap;
}

/* Dot separator */
.home-table-title h3::after{
  margin-left:9px;
  opacity:.25;
  font-weight:400;
}

/* Description */
.home-table-title span{
  font-size:9px;
  color:rgba(255,255,255,.45);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}




/* =========================================
   GLOBAL TABLE ROW HOVER
========================================= */

/* Default hover = ORANGE */
.home-grid tbody tr:hover,
#topBuysTable tbody tr:hover,
#tokensTable tbody tr:hover,
#whalesTable tbody tr:hover,

/* Green highlight rows */
.home-grid tbody tr.row-green:hover,
#topBuysTable tbody tr.row-green:hover,
.home-grid tbody tr.good:hover {
background: rgba(0,255,170,.45) !important;
box-shadow: inset 3px 0 0 #00e676;

}

.home-grid tbody tr:hover,
/* Optional: slight lift */
.home-grid tbody tr:hover,
#topBuysTable tbody tr:hover {
  transform: translateX(2px);
}
/* =========================================
   GLOBAL POINTER
========================================= */

a,
.token-link,
.wallet,
.tier,
.home-grid tbody tr,
#topBuysTable tbody tr,
.footer-start-bar a {
  cursor: pointer;
}

/* Header clickable */
.home-grid thead th{
  cursor:pointer;
  user-select:none;
  position:relative;
  transition:.15s ease;
}

.home-grid thead th:hover{
  color:#ff8a2b;
}

/* Sort indicator */
.home-grid thead th::after{
  content:"";
  position:absolute;
  right:8px;
  font-size:10px;
  opacity:.4;
}

.home-grid thead th.sort-asc::after{
  content:"▲";
  opacity:1;
}

.home-grid thead th.sort-desc::after{
  content:"▼";
  opacity:1;
}

.token-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;      /* biar nggak ke-compress */  
}

.token-placeholder {
  width: 24px;
  height: 24px;
  object-fit: cover; 
  flex-shrink: 0;      /* biar nggak ke-compress */
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* =========================================================
   TOKEN HOVER PREVIEW CARD
========================================================= */

.token-hover-card {
  position: fixed;
  width: 280px;
  background: linear-gradient(145deg, #1c2533, #141a23);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 25px 70px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);

  z-index: 999999;
  display: none;

  font-size: 13px;
  color: rgba(255,255,255,.92);

  transform: translateY(6px);
  opacity: 0;
  transition: all .15s ease;
}

.token-hover-card.show {
  opacity: 1;
  transform: translateY(0);
}

.token-hover-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.token-hover-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #111;
}

.token-hover-title {
  font-weight: 600;
  font-size: 14px;
}

.token-hover-symbol {
  font-size: 12px;
  opacity: .7;
}

.token-hover-meta {
  font-size: 12px;
  opacity: .8;
  line-height: 1.5;
}

.token-hover-meta span {
  display: block;
}

.token-hover-address {
  margin-top: 8px;
  font-family: monospace;
  font-size: 11px;
  opacity: .6;
  word-break: break-all;
}

/* TOP */

.token-hover-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.token-hover-img {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  background: #111;
}

.token-hover-main {
  flex: 1;
}

.token-hover-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.token-hover-main-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.token-hover-main-link:hover .token-hover-name {
  color: #ff8a2b;
}

.token-hover-main-link:hover {
  transform: translateY(-1px);
}
.token-hover-symbol-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255,138,43,0.15);
  color: #ff8a2b;
  font-weight: 600;
}

/* STATS */

.token-hover-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.token-stat {
  background: rgba(255,255,255,0.04);
  padding: 8px 10px;
  border-radius: 10px;
}

.token-stat .label {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-bottom: 2px;
}

.token-stat .value {
  font-weight: 600;
  font-size: 13px;
}

/* FOOTER */

.token-hover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  opacity: 0.7;
}

.token-hover-mint {
  font-family: monospace;
}

.token-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

.token-copy-btn:hover {
  color: #fff;
}

/* =========================================
   FOOTER-HOME SOCIAL LINKS
========================================= */

.footer-home .social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:18px;
  height:18px;

  color:rgba(255,255,255,.55);
  text-decoration:none;

  transition:
    color .18s ease,
    transform .15s ease,
    opacity .18s ease;
}

.footer-home .social-link svg{
  width:16px;
  height:16px;
  display:block;
}
/* Hapus dot untuk social icon */
.start-col .social-link::after{
  content:none !important;
}
/* Hover */
.footer-home .social-link:hover{
  color:#ff8a2b;   /* konsisten dengan accent kamu */
  transform:translateY(-1px);
}