* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#app {
  min-height: 100vh;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.loading,
.empty {
  text-align: center;
  color: #6b7280;
  margin-top: 40px;
}

.profile-content {
  text-align: center;
}

/* Profile image */
.avatar-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-banner .hero-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-align: left;
}

.name {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}

.bio {
  margin: 0 0 24px;
  line-height: 1.5;
  font-size: 16px;
}

/* Social links */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.social-round {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.social-logo {
  width: 50px;
  height: 40px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.social-round i,
.social-pill i,
.social-logo i {
  font-size: 18px;
}

/* Link list */
.link-list {
  display: grid;
  gap: 12px;
}

.link-header {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  text-align: center;
}

/* Default button */
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  gap: 12px;
}

.link-btn.has-thumb {
  justify-content: flex-start;
}

.link-btn .thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.link-btn .link-btn-text {
  flex: 1;
  text-align: center;
  line-height: 1.3;
}

.link-btn .thumb-spacer {
  width: 44px;
  flex-shrink: 0;
}

.link-btn.shape-rounded { border-radius: 8px; }
.link-btn.shape-square { border-radius: 0; }
.link-btn.shape-pill { border-radius: 999px; }
.link-btn.shape-cutCorner {
  border-radius: 8px 0 8px 8px;
}
.link-btn.shape-outline {
  border-radius: 8px;
  background: transparent !important;
  border: 2px solid var(--btn-color);
}
/* Frosted: translucent glass with blur */
.link-btn.shape-neumorphic {
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Neon: glowing colored border (border/shadow set inline) */
.link-btn.shape-glassmorphism {
  border-radius: 12px;
}
/* Floating: solid with soft colored elevation (shadow set inline) */
.link-btn.shape-shadowLift {
  border-radius: 14px;
}
/* Gradient: vibrant diagonal gradient (set inline) */
.link-btn.shape-gradientFill {
  border-radius: 12px;
}

/* Template cards */
.card-white {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  display: block;
}

.card-white .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-white .card-body {
  padding: 16px;
  text-align: left;
}

.card-white h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #111827;
}

.card-white p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6b7280;
}

.card-list {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.card-list .list-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}

.card-list .list-body {
  flex: 1;
  text-align: left;
}

.card-list h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #111827;
}

.card-list p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.card-cta {
  position: relative;
  min-height: 150px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-cta .cta-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.card-cta .cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.card-cta .cta-content {
  position: relative;
  z-index: 1;
  padding: 16px;
  text-align: center;
}

.card-cta h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card-cta p {
  margin: 0 0 12px;
  font-size: 14px;
  opacity: 0.9;
}

.card-cta .cta-action {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
}

.card-gradient-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ab47bc, #ec407a);
  box-shadow: 0 6px 12px rgba(156, 39, 176, 0.3);
}

.card-portfolio {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #212121;
  border: 1px solid #424242;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
}

.card-business {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 2px solid #bbdefb;
  border-radius: 12px;
  text-decoration: none;
  color: #0d47a1;
}

.card-gaming {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #43a047, #26a69a);
}

.card-creative {
  padding: 18px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ffa726, #ec407a, #ab47bc);
  box-shadow: 0 8px 15px rgba(255, 152, 0, 0.4);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.branding {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 32px auto 0;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.branding:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

.branding-wrap {
  text-align: center;
}

.link-item-stack {
  position: relative;
  margin-bottom: 0;
}

.link-info-btn {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  font-size: 14px;
}

.link-info-btn.info-top-right {
  top: 8px;
}

.link-info-btn.info-center-right {
  top: 50%;
  transform: translateY(-50%);
}

.info-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.info-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  color: #111827;
  text-align: left;
}

.info-modal h2 {
  margin: 0 0 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-modal .field-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
}

.info-modal .field-box {
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 16px;
  word-break: break-word;
}

.info-modal .field-box.url {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.info-modal .close-btn {
  float: right;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}
