/* ==========================================================================
   VIP Models Landing Page Design System + Code Security Protections
   ========================================================================== */

:root {
  --bg-main: #0b0e14;
  --bg-header: #111620;
  --bg-card: #151b26;
  --bg-card-border: #1e2636;
  
  --color-green-status: #00e676;
  --color-neon: #00ff87;
  --color-neon-glow: rgba(0, 255, 135, 0.25);
  
  --bg-btn-card: linear-gradient(135deg, #071f16 0%, #0d2a1f 100%);
  --border-btn-card: #00ff87;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-family);
  
  --max-feed-width: 480px;
  --radius-card: 16px;
  --radius-btn: 14px;
}

/* ==========================================================================
   Anti-Copy & Code Protection CSS Rules
   ========================================================================== */
body, html {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

a, button, .carousel-nav-btn, .story-item, .cta-button-card {
  pointer-events: auto !important;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  line-height: 1.4;
}

/* App Layout Container */
.app-container {
  width: 100%;
  max-width: var(--max-feed-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  position: relative;
}

/* ==========================================================================
   Top Header Stories Bar
   ========================================================================== */
.stories-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(17, 22, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0 10px 0;
}

.stories-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 0 14px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.stories-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.story-item:active {
  transform: scale(0.95);
}

.story-avatar-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  transition: all 0.3s ease;
}

.story-item.active .story-avatar-wrapper {
  background: linear-gradient(135deg, #00ff87, #00b8ff);
  box-shadow: 0 0 12px var(--color-neon-glow);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #2a3242;
  border: 2px solid var(--bg-header);
}

.story-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  max-width: 62px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ==========================================================================
   Main Feed Container
   ========================================================================== */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
}

/* ==========================================================================
   Model Card Component
   ========================================================================== */
.model-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

/* Header inside model card */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.header-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.header-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #2a3242;
}

.status-dot-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background-color: var(--color-green-status);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

.header-info {
  display: flex;
  flex-direction: column;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.header-status-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-green-status);
  margin-top: 1px;
}

.header-status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-green-status);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-green-status);
  animation: pulse-green 2s infinite ease-in-out;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* ==========================================================================
   Photo Carousel
   ========================================================================== */
.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #0b0e14;
  overflow: hidden;
  user-select: none;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Counter Badge (e.g. 2/5) */
.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

/* Arrows Navigation */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  font-size: 16px;
}

.carousel-nav-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  scale: 1.08;
}

.carousel-nav-btn:active {
  scale: 0.92;
}

.carousel-nav-btn.prev {
  left: 12px;
}

.carousel-nav-btn.next {
  right: 12px;
}

.carousel-nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Carousel Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 18px;
  border-radius: 10px;
  background: var(--color-green-status);
  box-shadow: 0 0 6px var(--color-green-status);
}

/* ==========================================================================
   Card Info Body & Description
   ========================================================================== */
.card-body {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-model-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.card-model-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green-status);
}

.card-model-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
}

/* ==========================================================================
   Custom CTA Action Button Card
   ========================================================================== */
.cta-button-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-btn-card);
  border: 1.5px solid var(--border-btn-card);
  border-radius: var(--radius-btn);
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 16px var(--color-neon-glow);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: 4px;
}

.cta-button-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 22px rgba(0, 255, 135, 0.4);
  border-color: #55ffb2;
}

.cta-button-card:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 255, 135, 0.3);
}

/* Shimmer overlay effect */
.cta-button-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: shimmer 3.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  35% { transform: translateX(100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.cta-content-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.cta-badge {
  align-self: flex-start;
  background: rgba(0, 255, 135, 0.16);
  color: var(--color-neon);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 255, 135, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

.cta-subtitle {
  font-size: 11.5px;
  color: #a3b8cc;
  font-weight: 500;
}

.cta-icon-right {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  flex-shrink: 0;
  z-index: 2;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cta-button-card:hover .cta-icon-right {
  transform: scale(1.08) rotate(-5deg);
  background: rgba(0, 255, 135, 0.25);
  border-color: var(--color-neon);
}

.gift-svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 360px) {
  .stories-scroll {
    gap: 10px;
    padding: 0 10px;
  }
  .story-avatar-wrapper {
    width: 52px;
    height: 52px;
  }
  .card-model-name {
    font-size: 16px;
  }
  .cta-title {
    font-size: 16px;
  }
}
