* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'JetBrains Mono', monospace; }
body { background-color: #000000; color: #ffffff; display: flex; justify-content: center; min-height: 100vh; overflow-y: scroll; }
body::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

/* Loader & Toast */
#loader { position: fixed; inset: 0; background: #000000; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.4s ease, visibility 0.4s ease; }
.spinner { width: 44px; height: 44px; border: 3px solid rgba(255, 255, 255, 0.1); border-radius: 50%; border-top-color: #7b2cbf; animation: spin 0.8s linear infinite; }
.loader-text { margin-top: 14px; font-size: 11px; letter-spacing: 2px; color: #777; }
@keyframes spin { to { transform: rotate(360deg); } }
#loader.hidden { opacity: 0; visibility: hidden; }

#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: #222; color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 13px; border: 1px solid #444; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 10000; opacity: 0; transition: all 0.3s ease; }
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Main Layout Container */
.container { width: 100%; max-width: 480px; position: relative; background: #000000; padding-bottom: 40px; border-left: 1px solid #111; border-right: 1px solid #111; }
.sticky-header { position: fixed; top: 0; width: 100%; max-width: 480px; z-index: 100; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); display: flex; align-items: center; padding: 12px 16px; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
.sticky-header.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sticky-header img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #7b2cbf; }
.sticky-header span { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }

/* Profile Elements */
.profile-hero { width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: #111; }
.profile-hero img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,1) 100%); }

.profile-info { padding: 0 20px; margin-top: -30px; position: relative; z-index: 2; text-align: center; }
.name-wrapper { display: flex; align-items: center; justify-content: center; gap: 6px; }
.name-wrapper h1 { font-size: 26px; font-weight: 800; }
.verify-badge { width: 18px; height: 18px; background: #7b2cbf; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: white; }

.username { color: #888; font-size: 14px; margin-top: 4px; display: inline-block; cursor: pointer; transition: color 0.2s; }
.username:hover { color: #fff; }

.social-links { display: flex; justify-content: center; gap: 12px; margin: 18px 0; }
.social-icon-btn { width: 44px; height: 44px; border-radius: 12px; background: #111; display: flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid #222; cursor: pointer; transition: border-color 0.2s; }
.social-icon-btn:hover { border-color: #555; }
.social-icon-btn img { width: 22px; height: 22px; }

.followers-btn { background: transparent; border: none; padding: 6px 16px; color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; cursor: pointer; }
.followers-btn span { font-size: 12px; color: #888; margin-left: 4px; }

.bio { font-size: 14px; line-height: 1.5; color: #eee; margin-bottom: 22px; white-space: pre-wrap; text-align: center; padding: 0 10px; }

/* Grid Cards */
.links-grid { display: flex; flex-direction: column; gap: 14px; }
.card { position: relative; width: 100%; border-radius: 20px; overflow: hidden; text-decoration: none; display: block; background-size: cover; background-position: center; border: 1px solid #222; cursor: pointer; background-color: #111; transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: scale(1.02); border-color: #7b2cbf; }
.card-large { height: 190px; }
.card-row { display: flex; gap: 12px; }
.card-small { flex: 1; height: 140px; }

.link-badge { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; z-index: 2; }
.card:hover .link-badge { transform: scale(1.1); transition: transform 0.3s; }

.card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%); display: flex; align-items: flex-end; justify-content: center; padding: 14px; text-align: center; }
.card-text { font-size: 14px; font-weight: 600; }

/* Exclusive Photo Stack Gallery Card */
#openGalleryBtn {
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(145deg, #120b1f 0%, #1a0933 100%);
  border: 1px solid rgba(123, 44, 191, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding-top: 15px;
}

#openGalleryBtn:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #7b2cbf;
  box-shadow: 0 12px 40px rgba(123, 44, 191, 0.35);
}

.photo-stack-wrapper {
  position: relative;
  width: 140px;
  height: 95px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #1e1e1e;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.photo-frame.frame-1 {
  transform: rotate(-12deg) translateX(-20px) scale(0.9);
  background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=200');
  opacity: 0.7;
}

.photo-frame.frame-2 {
  transform: rotate(10deg) translateX(20px) scale(0.92);
  background-image: url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?q=80&w=200');
  opacity: 0.85;
}

.photo-frame.frame-3 {
  transform: rotate(-2deg) translateY(-2px);
  border-color: #7b2cbf;
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=200');
  z-index: 2;
}

#openGalleryBtn:hover .frame-1 {
  transform: rotate(-18deg) translateX(-32px) scale(0.92);
}

#openGalleryBtn:hover .frame-2 {
  transform: rotate(16deg) translateX(32px) scale(0.95);
}

#openGalleryBtn:hover .frame-3 {
  transform: rotate(0deg) scale(1.06);
  border-color: #a855f7;
}

.gallery-card-content {
  position: relative;
  z-index: 3;
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  width: 100%;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-card-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 0 12px rgba(123, 44, 191, 0.6);
}

.gallery-card-subtitle {
  font-size: 10px;
  color: #aaa;
  margin-top: 3px;
  letter-spacing: 1px;
}

/* Modal Popup */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); padding: 20px 16px; overflow-y: auto; }
.modal-content { max-width: 480px; margin: 0 auto; position: relative; }
.close-btn { position: absolute; top: 0; right: 0; background: #222; color: #fff; border: 1px solid #444; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 10; transition: background 0.2s; }
.close-btn:hover { background: #444; }
.modal-title { font-size: 18px; margin-bottom: 20px; font-weight: 800; color: #fff; }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.photo-card { width: 100%; aspect-ratio: 1/1; border-radius: 12px; object-fit: cover; border: 1px solid #222; background: #111; transition: transform 0.2s; }
.photo-card:hover { transform: scale(1.05); }
.modal-loader { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; }

/* Footer */
.footer { margin-top: 35px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid #1a1a1a; font-size: 12px; color: #666; text-align: center; }
.footer p { margin-bottom: 6px; }
.footer a { color: #888; text-decoration: none; }
.admin-link-hidden { display: none; }

