:root {
  --navy: #0b1424;
  --navy-2: #122038;
  --ink: #e8eef8;
  --muted: #9aacc4;
  --orange: #f07a2a;
  --orange-hot: #ff8f3d;
  --card: rgba(18, 32, 56, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --ok: #3dd68c;
  --radius: 18px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: var(--orange-hot);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #07101c 0%, #0b1424 45%, #152844 100%);
}

.bg-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(240, 122, 42, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(80, 140, 255, 0.12), transparent 50%);
}

.bg-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 122, 42, 0.22), transparent 70%);
  filter: blur(20px);
}

.top,
.main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  border-radius: 10px;
  display: block;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2.5rem;
}

.loading,
.error {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}

.error h1 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.home-card,
.profile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  backdrop-filter: blur(10px);
}

.home-card h1,
.profile-name {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede,
.bio,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.profile-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-2);
  border: 2px solid rgba(240, 122, 42, 0.45);
  flex-shrink: 0;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--orange-hot);
}

.handle,
.role-chip {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.role-chip {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.bio {
  margin: 0 0 1.35rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1rem;
  background: rgba(7, 16, 28, 0.35);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-weight: 700;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.code-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  margin: 0;
  color: #fff;
}

.discount {
  margin: 0.45rem 0 0;
  color: var(--ok);
  font-weight: 600;
  font-size: 0.92rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: #111;
}

.btn-primary:hover {
  background: var(--orange-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.toast {
  font-size: 0.85rem;
  color: var(--ok);
  min-height: 1.2em;
  margin: 0.4rem 0 0;
}

.cta-store {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 0.25rem;
}

.app-store-badge {
  display: block;
  height: 54px;
  width: auto;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.social-link:hover {
  border-color: rgba(240, 122, 42, 0.5);
  text-decoration: none;
}

.social-link img {
  width: 18px;
  height: 18px;
  display: block;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 16, 28, 0.45);
}

.post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--navy-2);
}

.post-body {
  padding: 0.95rem 1rem 1.05rem;
}

.post-date {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0 0;
}

.post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.post-cta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.post-cta .btn {
  text-decoration: none;
}

.post-code {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-code strong {
  color: #fff;
  letter-spacing: 0.04em;
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.qr-wrap img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.foot {
  padding: 1rem 1.25rem 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.foot p {
  margin: 0;
}

.creator-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.creator-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.creator-list a:hover {
  border-color: rgba(240, 122, 42, 0.45);
  text-decoration: none;
}

.creator-list span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .profile-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .qr-wrap {
    align-items: center;
    width: 100%;
  }

  .btn-row {
    justify-content: center;
  }
}
