/* =========================================================
   Hipa Dating App — Ultra-Premium Mobile UI Stylesheet
   Brand: Hipa — Where Feelings Connect
   Theme: Vibrant Hot-Pink (#ff007f) & Royal Violet (#7928ca),
          Clean White Cards, Soft Elevation, Pulse Animations
   ========================================================= */

:root {
  --primary-pink: #ff007f;
  --primary-pink-hover: #e60073;
  --primary-pink-light: rgba(255, 0, 127, 0.08);
  --primary-gradient: linear-gradient(135deg, #ff007f 0%, #ff2a85 45%, #7928ca 100%);
  --secondary-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  --gold-coin: #ffd700;
  --bg-app: #f8f9fe;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --border-light: rgba(226, 232, 240, 0.85);
  --border-pink: rgba(255, 0, 127, 0.3);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 8px 30px rgba(15, 23, 42, 0.09);
  --shadow-pink: 0 8px 25px rgba(255, 0, 127, 0.35);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: #090514;
  color: var(--text-dark);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 0, 127, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(121, 40, 202, 0.15) 0px, transparent 50%);
}

/* Mobile Screen Viewport */
.hipa-viewport,
.hima-viewport {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scrollable Container */
.hipa-scroll-area,
.hima-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 95px 16px;
  -webkit-overflow-scrolling: touch;
}

.hipa-scroll-area::-webkit-scrollbar,
.hima-scroll-area::-webkit-scrollbar {
  display: none;
}

/* Top App Bar */
.hipa-topbar,
.hima-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hipa-brand,
.hima-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hipa-logo-icon,
.hima-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-pink);
}

.hipa-brand-info h1,
.hima-brand-info h1 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.hipa-brand-info p,
.hima-brand-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hipa-coin-pill,
.hima-coin-pill {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
  border: none;
}

.hipa-coin-pill:active,
.hima-coin-pill:active {
  transform: scale(0.95);
}

.coin-icon-circle {
  width: 22px;
  height: 22px;
  background: var(--gold-gradient);
  border-radius: 50%;
  color: #78350f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Horizontal Category Filter Pills */
.hipa-categories,
.hima-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-light);
  -webkit-overflow-scrolling: touch;
}

.hipa-categories::-webkit-scrollbar,
.hima-categories::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.cat-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 0, 127, 0.35);
}

/* Creator Card List */
.creators-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.creator-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.creator-card:hover {
  border-color: rgba(255, 0, 127, 0.3);
  box-shadow: var(--shadow-card-hover);
}

.creator-card:active {
  transform: scale(0.99);
}

.creator-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.creator-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--primary-gradient);
  position: relative;
  flex-shrink: 0;
}

.creator-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

/* Radar Pulsing Online Dot */
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  position: absolute;
  bottom: 0;
  right: 0;
}

.status-dot.online {
  background: #10b981;
  animation: radarPulse 1.8s infinite;
}

.status-dot.offline {
  background: #94a3b8;
}

@keyframes radarPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.creator-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.creator-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-call-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.15s ease;
}

.creator-call-action:active {
  transform: scale(0.92);
}

.call-icon-round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}

.call-icon-round.voice {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.call-icon-round.video {
  background: var(--primary-gradient);
  box-shadow: 0 4px 14px rgba(255, 0, 127, 0.35);
}

.call-rate-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Floating Random Match Button */
.btn-floating-random {
  position: absolute;
  bottom: 82px;
  right: 20px;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(255, 0, 127, 0.45);
  cursor: pointer;
  border: none;
  z-index: 40;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-floating-random:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 0, 127, 0.55);
}

.btn-floating-random:active {
  transform: scale(0.95);
}

/* Bottom Navigation Bar */
.hipa-bottom-nav,
.hima-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}

.hipa-nav-item,
.hima-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.hipa-nav-icon,
.hima-nav-icon {
  font-size: 1.35rem;
  transition: transform 0.2s ease;
}

.hipa-nav-item.active,
.hima-nav-item.active {
  color: var(--primary-pink);
}

.hipa-nav-item.active .hipa-nav-icon,
.hima-nav-item.active .hima-nav-icon {
  transform: scale(1.15);
}

/* Modals & Popups */
.hipa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.2s ease;
}

.hipa-modal-sheet {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  padding: 24px 20px 32px 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

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

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Glass Inputs & Buttons */
.glass-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.15);
  background: #ffffff;
}

.btn-primary-gradient {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  padding: 15px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-pink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 127, 0.45);
}

.btn-primary-gradient:active {
  transform: scale(0.97);
}

/* Special Welcome Offer Dialog */
.welcome-offer-dialog {
  background: radial-gradient(circle at top, #2d1038 0%, #11061c 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 0, 127, 0.5);
  box-shadow: 0 0 40px rgba(255, 0, 127, 0.35);
  border-radius: 26px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 127, 0.2);
  border: 1px solid rgba(255, 0, 127, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  color: #ff66b2;
  margin-top: 8px;
}
