* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background: radial-gradient(circle at top, #0f2027, #000);
  color: white;
}

/* =========================
   HEADER (iOS STYLE)
========================= */

.ios-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
}

/* =========================
   APP TITLE
========================= */

.app-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.app-title span {
  background: linear-gradient(135deg, #00ffd5, #00bfa6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   SEARCH BAR
========================= */

.header-search {
  flex: 1;
  max-width: 420px;
}

.header-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.header-search input::placeholder {
  color: rgba(255,255,255,0.7);
}

/* =========================
   PROFILE BUTTON + MENU
========================= */

.profile-wrapper {
  position: relative;
}

.profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-btn:hover {
  background: rgba(255,255,255,0.28);
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 54px;
  width: 180px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  z-index: 200;
}

.profile-menu button {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: white;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.profile-menu button:hover {
  background: rgba(255,255,255,0.12);
}

.hidden {
  display: none;
}

/* =========================
   AUTH PANEL
========================= */

.auth-page {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(22px);
  z-index: 9999;
}

.auth-card {
  margin: 18vh auto;
  padding: 30px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
}

.auth-card input {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  outline: none;
}

/* =========================
   BUTTONS
========================= */

.primary-btn {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  background: linear-gradient(135deg, #00ffd5, #00bfa6);
  cursor: pointer;
}

.secondary-btn {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.14);
  color: white;
  cursor: pointer;
}

/* =========================
   GALLERY
========================= */

.gallery {
  column-count: 2;
  column-gap: 14px;
  padding: 14px;
}

@media (min-width: 768px) { .gallery { column-count: 3; } }
@media (min-width: 1200px) { .gallery { column-count: 4; } }

.card {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.card img {
  width: 100%;
  display: block;
  cursor: pointer;
}

/* =========================
   PROFILE SETTINGS
========================= */

.profile-card {
  max-width: 380px;
  margin: 120px auto;
  padding: 30px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  text-align: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.profile-status {
  margin: 12px 0 20px;
  opacity: 0.85;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .auth-page { width: 100%; }
  .header-search { display: none; }
}
.wallpaper-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  width: 90%;
  max-width: 420px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
}

.modal-content select,
.modal-content button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.close-btn {
  background: rgba(255,255,255,0.15);
  color: white;
}
/* =========================
   PREMIUM LOCK OVERLAY
========================= */

.card {
  position: relative;
}

.premium-lock {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #fff;
  pointer-events: none;
}

.premium-lock span {
  background: rgba(0,0,0,0.6);
  padding: 14px 18px;
  border-radius: 999px;
}
/* =========================
   WALLPAPER MODAL ANIMATION
========================= */

.wallpaper-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 92%;
  max-width: 420px;
  background: rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
  animation: modalScale 0.3s cubic-bezier(.22,.61,.36,1);
}

@keyframes modalScale {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-content img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 14px;
}

.modal-content select,
.modal-content button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
}

.close-btn {
  background: rgba(255,255,255,0.18);
  color: white;
}
.back-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}
.profile-wrapper {
  position: relative;
}

.profile-menu {
  position: absolute;
  top: 52px;
  right: 0;
  background: rgba(0,0,0,0.9);
  border-radius: 14px;
  padding: 8px;
  width: 160px;
  z-index: 999;
}

.profile-menu button {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
}

.profile-menu button:hover {
  background: rgba(255,255,255,0.12);
}

.hidden {
  display: none;
}
.profile-btn img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.auth-box {
  width: 90%;
  max-width: 360px;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
}

.auth-box input,
.auth-box button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 999px;
  border: none;
}

.close-btn {
  background: rgba(255,255,255,0.2);
  color: white;
}

.hidden {
  display: none;
}
/* AUTH */
.auth-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 8px;
}

.auth-toggle span {
  color: #00ffd5;
  cursor: pointer;
}

.remember {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 10px;
  display: block;
  text-align: left;
}

/* LOADER */
.loader {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid #00ffd5;
  border-radius: 50%;
  margin: 14px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* PROFILE PAGE */
.profile-page {
  max-width: 380px;
  margin: 120px auto;
  padding: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 22px;
  text-align: center;
}

.profile-page img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 12px;
}
.modal-content select,
.modal-content button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
/* =========================
   FLOATING APP DOWNLOAD BUTTON
========================= */

/* =========================
   UPGRADED APP DOWNLOAD BUTTON (PILL)
========================= */

.app-download-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;

  padding: 14px 22px;
  border-radius: 999px; /* pill shape */

  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;

  color: #000;
  background: linear-gradient(135deg, #00ffd5, #00bfa6);

  box-shadow:
    0 0 18px rgba(0,255,213,0.9),
    0 0 36px rgba(0,255,213,0.6),
    0 0 60px rgba(0,255,213,0.4);

  animation: glowPulse 2.2s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover / Tap feedback */
.app-download-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 24px rgba(0,255,213,1),
    0 0 48px rgba(0,255,213,0.8),
    0 0 72px rgba(0,255,213,0.6);
}

/* Glow animation */
@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 14px rgba(0,255,213,0.8),
      0 0 28px rgba(0,255,213,0.5);
  }
  50% {
    box-shadow:
      0 0 26px rgba(0,255,213,1),
      0 0 52px rgba(0,255,213,0.8);
  }
  100% {
    box-shadow:
      0 0 14px rgba(0,255,213,0.8),
      0 0 28px rgba(0,255,213,0.5);
  }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .app-download-float {
    padding: 12px 18px;
    font-size: 14px;
    bottom: 16px;
    right: 16px;
  }
}
