:root{
  --bg:#0b0c10;
  --card: rgba(20, 20, 22, 0.55);
  --card2: rgba(20, 20, 22, 0.35);
  --border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.88);
  --muted: rgba(255,255,255,0.55);
  --shadow: 0 20px 60px rgba(0,0,0,0.55);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
}

/* BACKGROUND */
.bg{ position:fixed; inset:0; z-index:-3; }
.bg-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;

  filter: blur(1px) saturate(1) contrast(1.05);
  transform:none;
}

.bg-dim{ position:absolute; inset:0; background: rgba(0,0,0,0.55); z-index:1; }
.bg-vignette{
  position:absolute; inset:-30%;
  background: radial-gradient(closest-side, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 95%);
  z-index:2;
}
.bg-grain{
  position:absolute; inset:0; z-index:3;
  opacity:0.18;
  background-image: url("assets/grain.png"); /* optional */
  mix-blend-mode: overlay;
  pointer-events:none;
}

/* LAYOUT */
.wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 18px;
}

.grid{
  width:min(1100px, 92vw);
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:28px;
  align-items:start;
}

/* CARD BASE */
.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* PROFILE */
.profile{ padding:0; overflow:visible; }
.profile-banner{
  height:110px;
  background:
    linear-gradient(90deg, rgba(255,0,90,0.16), rgba(0,0,0,0.25)),
    url("assets/banner-fallback.jpg") center/cover no-repeat;
}

.profile-top{ padding:16px 18px 10px; }

.avatar{
  width:84px; height:84px; border-radius:18px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  margin-top:-46px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

.name-row{
  display:flex; align-items:center; gap:10px;
  margin-top:10px;
}
.display-name{ font-size:22px; margin:0; letter-spacing:0.3px; }

.pill{
  font-size:12px; color:var(--muted);
  border:1px solid var(--border);
  padding:4px 8px; border-radius:999px;
}

.status-pill{
  margin-left:auto;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  letter-spacing:0.2px;
}

.meta{ color:var(--muted); font-size:13px; display:flex; align-items:center; gap:8px; margin-top:6px; }
.dot{ opacity:0.6; }

.badges{
  display:flex;
  gap:10px;
  margin-top:10px;
  align-items:center;
}

/* badge icon button */
.badge{
  position:relative;
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:default;
}

.badge img{
  width:18px;
  height:18px;
  display:block;
  opacity:.9;
  transform: translateY(0);
  transition: opacity .15s ease, transform .15s ease, filter .15s ease;
}

.badge:hover img{
  opacity:1;
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

/* Tooltip bubble */
.badge::after{
  content: attr(data-title) "\A" attr(data-subtitle);
  white-space: pre;
  position:absolute;
  left:50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  padding:10px 12px;
  border-radius:10px;
  background: rgba(20,20,22,0.92);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.92);
  font-size:12px;
  line-height:1.15;
  letter-spacing:.3px;
  opacity:0;
  pointer-events:none;
  transition: opacity .14s ease, transform .14s ease;
  min-width: 180px;
  text-align:center;
}

/* little arrow */
.badge::before{
  content:"";
  position:absolute;
  left:50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  width:10px;
  height:10px;
  background: rgba(20,20,22,0.92);
  border-left:1px solid rgba(255,255,255,0.10);
  border-bottom:1px solid rgba(255,255,255,0.10);
  rotate: 45deg;
  opacity:0;
  pointer-events:none;
  transition: opacity .14s ease, transform .14s ease;
}

.badge:hover::after,
.badge:hover::before{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}

/* Special “Nitro PLATINUM” styling */
.badge.nitro::after{
  font-weight:700;
}

.badge.nitro::after{
  /* Make first line feel bigger like your screenshot */
  content: "NITRO\APLATINUM\A" attr(data-subtitle);
  font-size:12px;
}
.badge.nitro::after{
  text-transform: uppercase;
}
.badge.nitro::after{
  /* Emphasize top two lines */
  line-height:1.05;
}

.profile-cta{ padding:12px 18px; }

.btn{
  width:100%;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color:var(--text);
  padding:12px 12px;
  cursor:pointer;
  transition: transform .16s cubic-bezier(.2,.8,.2,1),
              background .16s cubic-bezier(.2,.8,.2,1),
              border-color .16s cubic-bezier(.2,.8,.2,1),
              box-shadow .16s cubic-bezier(.2,.8,.2,1);
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}
.btn-ic{
  display:inline-block; width:10px; height:10px; border-radius:3px;
  background: rgba(120,160,255,0.9);
  margin-right:8px;
}

.profile-body{ padding:8px 18px 14px; }
.section-title{
  margin:16px 0 10px;
  font-size:11px;
  letter-spacing:2px;
  color:rgba(255,255,255,0.38);
}
.about{
  margin:0; padding-left:16px;
  color: rgba(255,255,255,0.70);
  font-size:14px;
}
.connections{ display:flex; gap:10px; margin-top:8px; }
.conn{
  width:30px; height:30px; border-radius:10px;
  background: rgba(255,255,255,0.08);
  border:1px solid var(--border);
}

.profile-msg{ padding:14px 18px 18px; }
.input{
  width:100%;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  padding:12px 12px;
  outline:none;
}

/* RIGHT STACK */
.right{ display:flex; flex-direction:column; gap:18px; }

.clock{ padding:18px 22px; }
.clock-time{
  font-size:48px;
  font-weight:700;
  letter-spacing:1px;
}
.clock-time small{
  font-size:14px;
  opacity:0.7;
  margin-left:6px;
}
.clock-date{
  margin-top:6px;
  font-size:11px;
  letter-spacing:2px;
  color: rgba(255,255,255,0.55);
}

.quote{ padding:16px 20px; min-height:92px; }
.quote-head{
  font-size:12px;
  letter-spacing:2px;
  color: rgba(255,255,255,0.65);
  margin-bottom:8px;
}
.quote-line{
  font-size:14px;
  color: rgba(255,255,255,0.72);
  border-left:2px solid rgba(255,255,255,0.12);
  padding-left:12px;
  min-height:20px;
}

.connect{ padding:14px 18px 18px; }
.connect-title{
  text-align:center;
  font-size:11px;
  letter-spacing:3px;
  color: rgba(255,255,255,0.45);
  margin-bottom:12px;
}
.connect-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.connect-btn{
  position: relative;
  overflow: hidden;

  text-decoration:none;
  color: rgba(255,255,255,0.78);
  border:1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius:12px;

  height:44px;
  padding:0 18px;

  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;

  font-size:12px;
  letter-spacing:1px;

  transition: transform .16s cubic-bezier(.2,.8,.2,1),
              background .16s cubic-bezier(.2,.8,.2,1),
              border-color .16s cubic-bezier(.2,.8,.2,1),
              box-shadow .16s cubic-bezier(.2,.8,.2,1);
}

.connect-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.085);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}
.ic{
  width:18px;
  height:18px;
  object-fit:contain;
  opacity:.75;
  display:block;

  background:none !important;
  border:none !important;

  transition: opacity .18s cubic-bezier(.2,.8,.2,1),
              transform .18s cubic-bezier(.2,.8,.2,1);
}

.connect-btn .label{
  opacity:.72;
  transform: translateX(0);
  transition: opacity .18s cubic-bezier(.2,.8,.2,1),
              transform .18s cubic-bezier(.2,.8,.2,1);
}

.connect-btn:hover .label{
  opacity:.92;
  transform: translateX(2px);
}

.connect-btn:hover .ic{
  opacity:1;
  transform: translateX(1px);
}


.tech{ padding:14px 18px; }
.tech-row{
  display:flex; justify-content:space-between; gap:10px;
  opacity:0.35;
}
.tech-ic{
  font-size:12px;
  border:1px solid rgba(255,255,255,0.10);
  padding:6px 10px;
  border-radius:12px;
  background: rgba(255,255,255,0.04);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .profile{ max-width: 520px; margin: 0 auto; }
}

.conn{
  width:38px;
  height:38px;
  border-radius:12px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.09);

  transition: transform .16s cubic-bezier(.2,.8,.2,1),
              background .16s cubic-bezier(.2,.8,.2,1),
              border-color .16s cubic-bezier(.2,.8,.2,1);
}

.conn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
}

.conn-icon{
  width:16px;
  height:16px;
  opacity:.75;
  transition: opacity .16s cubic-bezier(.2,.8,.2,1);
}

.conn:hover .conn-icon{
  opacity:1;
}

/* 3D tilt container */
.grid, .right{
  perspective: 1100px;
}

/* base card animation */
.card{
  transform-style: preserve-3d;
  transition: transform .22s cubic-bezier(.2,.8,.2,1),
              box-shadow .22s cubic-bezier(.2,.8,.2,1),
              border-color .22s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* the “slant inward to the right” */
.right .card:hover{
  transform: translateY(-2px) rotateY(10deg) rotateX(2deg);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 26px 70px rgba(0,0,0,0.68);
}

/* DISCORD PROFILE CARD tilt opposite */
.profile.card:hover{
  transform: translateY(1px) rotateY(1deg) rotateX(1deg);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 26px 70px rgba(0,0,0,0.68);
}