* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0b0b0b;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100%;
  max-width: 580px;
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
  min-height: 100vh;
}

/* Cover Banner */
.cover {
  height: 200px;
  background: linear-gradient(135deg, #00AFF0 0%, #004d6e 60%, #0b0b0b 100%);
  position: relative;
}

/* Profile Section */
.profile {
  position: relative;
  padding: 60px 20px 16px;
}

.avatar {
  position: absolute;
  top: -50px;
  left: 20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #0b0b0b;
  object-fit: cover;
  background: #1a1a2e;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified {
  color: #00AFF0;
  font-size: 16px;
}

.profile-handle {
  color: #888;
  font-size: 14px;
  margin-top: 2px;
}

.profile-bio {
  color: #aaa;
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.5;
}

/* Stats Row */
.stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}

.stats span strong {
  color: #fff;
}

/* Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.social-link {
  background: #1a1a2e;
  color: #00AFF0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-link:hover {
  background: #252540;
  transform: translateY(-1px);
}

.social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Subscribe Button */
.subscribe-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: #00AFF0;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
}

.subscribe-btn:hover {
  background: #009dd8;
  transform: translateY(-1px);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid #222;
  margin-top: 8px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab:hover {
  color: #aaa;
}

.tab.active {
  color: #00AFF0;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #00AFF0;
  border-radius: 2px;
}

/* Feed */
.feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Post */
.post {
  background: #16161e;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1e1e2a;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta {
  flex: 1;
}

.post-author {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-author .verified {
  font-size: 12px;
}

.post-time {
  font-size: 12px;
  color: #666;
}

.post-label {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-label.free {
  background: #1a2e1a;
  color: #4caf50;
}

.post-label.premium {
  background: #2e1a1a;
  color: #ff6b6b;
}

.post-body {
  padding: 12px 16px 16px;
}

.post-text {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
}

.post-text.blurred {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

/* Locked Overlay */
.locked-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  gap: 8px;
}

.locked-overlay .lock-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.locked-overlay .lock-text {
  color: #888;
  font-size: 13px;
}

.locked-overlay .unlock-btn {
  background: rgba(0, 175, 240, 0.15);
  color: #00AFF0;
  border: 1px solid rgba(0, 175, 240, 0.3);
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

.locked-overlay .unlock-btn:hover {
  background: rgba(0, 175, 240, 0.25);
}

/* Post Actions */
.post-actions {
  display: flex;
  gap: 24px;
  padding: 0 16px 14px;
  color: #666;
  font-size: 13px;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
}

.post-action:hover {
  color: #00AFF0;
}

/* Pinned Post */
.post.pinned {
  border-color: #00AFF0;
  border-width: 1px;
}

.pinned-badge {
  font-size: 11px;
  color: #00AFF0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px 0;
  font-weight: 600;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: #444;
  font-size: 12px;
  border-top: 1px solid #1a1a1a;
  margin-top: 20px;
}

.site-footer a {
  color: #00AFF0;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a1a2e;
  color: #00AFF0;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid #00AFF0;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 100;
  pointer-events: none;
}

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

/* Responsive */
@media (max-width: 580px) {
  .page {
    border: none;
  }

  .cover {
    height: 160px;
  }

  .avatar {
    width: 80px;
    height: 80px;
    top: -40px;
  }

  .profile {
    padding-top: 50px;
  }
}
