 :root {
  --bg: #0A0A0A;
  --card: #131313;
  --raised: rgba(70, 130, 180, 0.14);
  --ink: #6FA8D8;
  --ink-dim: #8C8C8C;
  --line: rgba(255,255,255,0.08);
  --blue: #4682B4;
  --blue-soft: rgba(70, 130, 180, 0.12);
  --pink: #00AEEF;
}
* { box-sizing: border-box; }
body, html {
  margin: 0; padding: 0; width: 100%; min-height: 100%;
  background-color: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
}

.bg-layer { position: fixed; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; z-index: 0; pointer-events: none; }

.main-wrapper { position: relative; z-index: 2; min-height: 100dvh; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.profile-card {
  width: 100%; max-width: 480px;
  background: rgba(20, 30, 45, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 1px solid rgba(70, 130, 180, 0.22);
  padding: 32px 26px 26px 26px;
  text-align: center;
  display: flex; flex-direction: column; gap: 22px;
  opacity: 0; transition: opacity 0.4s ease;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.6);
}

.avatar-box { width: 80px; height: 80px; margin: 0 auto; position: relative; flex-shrink: 0; }
.avatar-img { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; box-shadow: 0 0 24px rgba(70, 130, 180, 0.3); }
.avatar-ring { position: absolute; inset: -3px; border-radius: 23px; border: 2px solid var(--blue); pointer-events: none; }
.status-corner { position: absolute; bottom: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 3px solid #0d1620; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(70, 130, 180, 0.5); }
.status-corner i { font-size: 9px; color: #fff; }

h1 { font-size: 22px; font-weight: 700; margin: 0; color: var(--ink); letter-spacing: -0.01em; text-shadow: 0 0 18px rgba(70, 130, 180, 0.3); }
.sub-bio { color: var(--ink-dim); font-size: 14px; margin: 8px 0 0 0; font-weight: 400; line-height: 1.55; padding: 0 4px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

.status-widget { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(70, 130, 180, 0.25); border-radius: 14px; overflow: hidden; }
.status-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; position: relative; text-align: left; }
.discord-row { border-bottom: none; cursor: pointer; transition: background 0.15s ease; }
.discord-row:hover { background: rgba(70, 130, 180, 0.1); }
.avatar-mini { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.avatar-mini img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; border: 2px solid var(--blue); }
.widget-status-dot { width: 11px; height: 11px; border-radius: 50%; background-color: #555; border: 2px solid #0d1620; position: absolute; bottom: -2px; right: -2px; }
.widget-info { overflow: hidden; }
.widget-name { font-weight: 700; font-size: 14px; color: #fff; }
.dyn-icon-img { width: 17px; height: 17px; object-fit: contain; }
.widget-activity { color: rgba(70, 130, 180, 0.85); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-chip { margin-left: auto; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(70, 130, 180, 0.7); flex-shrink: 0; }

.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.social-icon {
  width: 42px; height: 42px; background: var(--raised);
  border-radius: 12px;
  display: flex; justify-content: center; align-items: center; cursor: pointer;
  transition: all 0.15s ease; color: var(--ink-dim); overflow: hidden;
}
.social-icon img { width: 18px; height: 18px; object-fit: contain; }
.social-icon i { font-size: 16px; }
.social-icon:hover { background: var(--blue-soft); color: var(--blue); transform: translateY(-2px); }

.btn-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.links-card {
  background: var(--raised);
  border-radius: 14px;
  padding: 14px 16px 14px 13px;
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none !important;
  font-weight: 600; font-size: 14.5px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.links-card:hover { background: rgba(70, 130, 180, 0.22); border-left-color: var(--blue); transform: translateY(-1px); }
.links-card .link-label { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.links-card .link-icon { width: 20px; text-align: center; flex-shrink: 0; color: var(--blue); font-size: 16px; }
.links-card .link-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links-card .link-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.links-card .chevron { color: var(--ink-dim); font-size: 12px; }
.badge-18 { font-size: 10.5px; font-family: 'JetBrains Mono', monospace; font-weight: 700; background: var(--pink); color: #fff; padding: 3px 7px; border-radius: 6px; flex-shrink: 0; }

.age-gate-overlay { position: fixed; inset: 0; background: rgba(5,5,5,0.88); backdrop-filter: blur(6px); z-index: 9999; display: none; justify-content: center; align-items: center; padding: 16px; }
.age-gate-box {
  background: #0d1620; border: 1px solid rgba(70, 130, 180, 0.3); border-top: 3px solid var(--pink);
  border-radius: 20px; padding: 30px 26px; text-align: center; width: 100%; max-width: 380px;
  transform: scale(0.94); opacity: 0; transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}
.age-gate-overlay.open .age-gate-box { transform: scale(1); opacity: 1; }
.age-gate-box .icon-circle { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,174,239,0.14); color: var(--pink); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px auto; font-size: 18px; }
.age-gate-box h2 { color: var(--ink); font-size: 18px; font-weight: 700; margin: 0; }
.age-gate-box p { color: var(--ink-dim); font-size: 13.5px; margin: 10px 0 22px 0; line-height: 1.55; }
.age-gate-box .yes-btn { padding: 12px 24px; background: var(--blue); border: none; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; color: #fff; font-family: inherit; }
.age-gate-box .no-btn { padding: 12px 24px; background: var(--raised); color: var(--ink-dim); border: none; border-radius: 12px; font-size: 14px; cursor: pointer; font-family: inherit; }
.age-gate-actions { display: flex; gap: 10px; justify-content: center; }

.footer { padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--ink-dim); display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer a { color: var(--ink-dim); text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--blue); }
.view-counter-box { color: var(--blue); font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.footer-made-by { font-size: 11px; color: #555; }
.footer-made-by a { color: #666; }

@media (min-width: 1024px) and (max-height: 1080px) {
  body, html { overflow: hidden !important; }
  .main-wrapper { padding: 18px 10px; overflow-y: hidden; }
  .profile-card { padding: 22px 20px 16px 20px; gap: 12px; }
  .avatar-box { width: 68px; height: 68px; }
  h1 { font-size: 19px; }
  .sub-bio { font-size: 13px; }
  .status-row { padding: 9px 12px; }
  .avatar-mini { width: 30px; height: 30px; }
  .social-row { gap: 6px; }
  .social-icon { width: 36px; height: 36px; }
  .social-icon i { font-size: 14px; }
  .btn-list { gap: 6px; }
  .links-card { padding: 11px 14px; font-size: 13.5px; }
  .footer { padding-top: 10px; gap: 5px; }
}
@media (max-width: 480px) {
  .main-wrapper { padding: 20px 10px; }
  .profile-card { padding: 26px 18px 20px 18px; gap: 16px; }
  .avatar-box { width: 72px; height: 72px; }
  h1 { font-size: 20px; }
  .sub-bio { font-size: 13.5px; }
  .status-row { padding: 10px 12px; }
  .avatar-mini { width: 32px; height: 32px; }
  .social-row { gap: 7px; }
  .social-icon { width: 38px; height: 38px; }
  .social-icon i { font-size: 15px; }
  .social-icon img { width: 16px; height: 16px; }
  .btn-list { gap: 7px; }
  .links-card { padding: 12px 14px; font-size: 14px; }
  .badge-18 { font-size: 10px; padding: 2px 6px; }
  .footer { font-size: 11.5px; }
}
@media (max-width: 360px) {
  .profile-card { padding: 22px 14px 18px 14px; }
  h1 { font-size: 18px; }
  .avatar-box { width: 64px; height: 64px; }
  .links-card .link-title { max-width: 140px; }
}
