@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-color: #09090b;
  --card-bg: #101114;
  --card-hover: #15161b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #f4f4f5;
  --text-muted: #8e95a0;
  --text-dim: #6b7280;
  --crimson: #ff2a4b;
  --crimson-subtle: rgba(255, 42, 75, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 18px 56px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Wrapper */
.linkme-wrapper {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top Utility Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 8px;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.brand-bars .bar {
  display: inline-block;
  width: 3.5px;
  border-radius: 2px;
}

.brand-bars .bar-red {
  background-color: var(--crimson);
  height: 14px;
}

.brand-bars .bar-white {
  background-color: #ffffff;
}

.brand-bars .bar:nth-child(2) {
  height: 19px;
}

.brand-bars .bar:nth-child(3) {
  height: 12px;
}

.top-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

/* Profile Header Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 16px 8px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #101114;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease;
}

.profile-avatar:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.avatar-bars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
}

.avatar-bars .bar {
  display: inline-block;
  width: 5px;
  border-radius: 3px;
}

.avatar-bars .bar-red {
  background-color: var(--crimson);
  height: 24px;
}

.avatar-bars .bar-white {
  background-color: #ffffff;
}

.avatar-bars .bar:nth-child(2) {
  height: 34px;
}

.avatar-bars .bar:nth-child(3) {
  height: 20px;
}

.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: 20px;
}

.profile-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 6px;
}

.profile-bio {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 440px;
  margin-top: 14px;
  letter-spacing: 0.01em;
}

/* Cards Stack */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.link-card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.link-card:active {
  transform: scale(0.995);
}

/* Featured Card with Red Accent Border */
.card-featured {
  border-left: 3px solid var(--crimson);
}

.card-featured:hover {
  border-left-color: var(--crimson);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-grow: 1;
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #17181d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.box-featured {
  background: var(--crimson);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 42, 75, 0.3);
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-red {
  border: 1px solid var(--crimson);
  color: var(--crimson);
  background: rgba(255, 42, 75, 0.1);
}

.badge-gray {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
}

.card-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.card-arrow {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  transition: all 0.2s ease;
}

.link-card:hover .card-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

/* Bottom Footer */
.bottom-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-left .sep {
  color: #4b5563;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2128;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 99;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  body {
    padding: 24px 14px 44px;
  }
  .link-card {
    padding: 14px 16px;
  }
  .card-icon-box {
    width: 42px;
    height: 42px;
  }
  .bottom-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}
