/* Ambient background glow */
    .private-ambient-glow {
      position: fixed;
      width: 600px;
      height: 600px;
      border-radius: 50%;
      filter: blur(150px);
      opacity: 0.15;
      pointer-events: none;
      z-index: 0;
    }
    .private-glow-1 { background: #ff2d78; top: -200px; left: -100px; }
    .private-glow-2 { background: #a855f7; bottom: -200px; right: -100px; }

    /* Backdrop overlay */
    .private-popup-backdrop {
      position: fixed;
      inset: 0;
      /* background: rgba(0, 0, 0, 0.75); */
      /* backdrop-filter: blur(8px); */
      /* -webkit-backdrop-filter: blur(8px); */
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      animation: private-fadeIn 0.3s ease;
    }

    /* Outer wrapper to allow close btn outside card */
    .private-popup-wrapper {
      position: relative;
      width: 100%;
      max-width: 400px;
    }

    /* Popup card - responsive */
    .private-popup-card {
      position: relative;
      width: 100%;
      background: linear-gradient(165deg, #1a1a2e 0%, #16161d 50%, #1a1a2e 100%);
      border: 1px solid rgba(255, 45, 120, 0.15);
      border-radius: 20px;
      overflow: hidden;
      box-shadow:
        0 0 80px rgba(255, 45, 120, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      animation: private-slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 51;
      max-height: 90vh;
      max-height: 90dvh;
      overflow-y: auto;
    }

    /* Blurred image container - responsive height */
    .private-image-container {
      position: relative;
      width: 100%;
      height: clamp(220px, 45vw, 320px);
      overflow: hidden;
    }

    .private-teaser-image {
      width: 100%;
      height: 100%;
      transform: scale(1.15);
      transition: filter 0.6s ease;
    }
    .private-teaser-image.privateblur{
        filter: blur(5px) brightness(0.9) saturate(1.3);
    }

    .private-image-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0) 0%,
        rgba(26, 26, 46, 0.4) 50%,
        rgba(26, 26, 46, 0.95) 100%
      );
      z-index: 2;
    }

    .private-shimmer-line {
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 45, 120, 0.06),
        rgba(255, 45, 120, 0.12),
        rgba(255, 45, 120, 0.06),
        transparent
      );
      animation: private-shimmer 3s ease-in-out infinite;
      z-index: 3;
    }

    /* Lock overlay */
    .private-lock-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 4;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      animation: private-float 3s ease-in-out infinite;
    }

    .private-lock-circle {
      width: clamp(56px, 12vw, 72px);
      height: clamp(56px, 12vw, 72px);
      border-radius: 50%;
      background: rgba(255, 45, 120, 0.15);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 2px solid rgba(255, 45, 120, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      animation: private-pulse-glow 2s ease-in-out infinite;
      cursor: pointer;
      transition: all 0.3s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .private-lock-circle:hover {
      background: rgba(255, 45, 120, 0.25);
      border-color: rgba(255, 45, 120, 0.6);
      transform: scale(1.08);
    }

    .private-lock-icon {
      width: clamp(20px, 5vw, 28px);
      height: clamp(20px, 5vw, 28px);
      fill: none;
      stroke: #ff2d78;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* Badges */
    .private-image-count-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 5px;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 5px 10px;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .private-image-count-badge svg {
      width: 13px;
      height: 13px;
      stroke: rgba(255, 255, 255, 0.8);
      fill: none;
      stroke-width: 2;
    }

    .private-image-count-badge span {
      font-size: clamp(10px, 2.5vw, 12px);
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
    }

    .private-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 5px;
      background: linear-gradient(135deg, rgba(255, 45, 120, 0.2), rgba(168, 85, 247, 0.2));
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 5px 10px;
      border-radius: 20px;
      border: 1px solid rgba(255, 45, 120, 0.3);
    }

    .private-badge .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #ff2d78;
      animation: private-blink 1.5s ease-in-out infinite;
    }

    .private-badge span {
      font-size: clamp(9px, 2.5vw, 11px);
      color: #ff6ba3;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Content section - responsive */
    .private-popup-content {
      padding: 0 clamp(16px, 5vw, 24px) clamp(16px, 5vw, 24px);
      text-align: center;
      position: relative;
      margin-top: -20px;
      z-index: 5;
    }

    .private-girlfriend-name {
      font-size: clamp(17px, 4.5vw, 22px);
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .private-verified-badge {
      width: 18px;
      height: 18px;
      background: linear-gradient(135deg, #ff2d78, #a855f7);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .private-verified-badge svg {
      width: 10px;
      height: 10px;
      stroke: white;
      fill: none;
      stroke-width: 3;
    }

    .private-status-line {
      font-size: clamp(11px, 3vw, 13px);
      color: rgba(255, 255, 255, 0.4);
      margin-bottom: clamp(10px, 3vw, 14px);
    }

    .private-teaser-text {
      font-size: clamp(12px, 3.2vw, 14px);
      color: rgba(255, 255, 255, 0.6);
      line-height: 1.5;
      margin-bottom: clamp(14px, 4vw, 20px);
    }

    .private-teaser-text em {
      color: #ff6ba3;
      font-style: normal;
      font-weight: 500;
    }

    /* CTA Button - responsive */
    .private-cta-button {
      width: 100%;
      padding: clamp(12px, 3.5vw, 14px) 20px;
      border: none;
      border-radius: 14px;
      font-size: clamp(13px, 3.5vw, 15px);
      font-weight: 600;
      color: white;
      cursor: pointer;
      background: linear-gradient(135deg, #ff2d78 0%, #e91e6c 50%, #c2185b 100%);
      box-shadow:
        0 4px 20px rgba(255, 45, 120, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      letter-spacing: 0.3px;
      -webkit-tap-highlight-color: transparent;
    }

    .private-cta-button:hover {
      transform: translateY(-2px);
      box-shadow:
        0 8px 30px rgba(255, 45, 120, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .private-cta-button:active {
      transform: translateY(0) scale(0.98);
    }

    .private-cta-button .btn-shine {
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
      );
      animation: private-btnShine 2.5s ease-in-out infinite;
    }

    .private-cta-button svg {
      width: 16px;
      height: 16px;
      stroke: white;
      fill: none;
      stroke-width: 2;
      flex-shrink: 0;
    }

    /* Security footer - responsive */
    .private-security-info {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(10px, 3vw, 16px);
      margin-top: clamp(10px, 3vw, 14px);
      padding-top: clamp(10px, 3vw, 14px);
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      flex-wrap: wrap;
    }

    .private-security-item {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: clamp(9px, 2.5vw, 11px);
      color: rgba(255, 255, 255, 0.3);
      white-space: nowrap;
    }

    .private-security-item svg {
      width: 12px;
      height: 12px;
      stroke: rgba(255, 45, 120, 0.5);
      fill: none;
      stroke-width: 2;
      flex-shrink: 0;
    }

    /* Close button - positioned outside card */
    .private-close-btn {
      position: absolute;
      top: -16px;
      right: -16px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #1e1e2e;
      border: 1px solid rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 60;
      transition: all 0.2s ease;
      -webkit-tap-highlight-color: transparent;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .private-close-btn:hover {
      background: rgba(255, 45, 120, 0.2);
      border-color: rgba(255, 45, 120, 0.4);
    }

    .private-close-btn svg {
      width: 14px;
      height: 14px;
      stroke: rgba(255, 255, 255, 0.5);
      fill: none;
      stroke-width: 2;
    }

    /*unlock card*/
    .unlock-card {
        position: relative;
        height: 320px;
        overflow: hidden;
        border-radius: 10px;
        border: 3px solid var(--border-color);
    }
    .unlock-card.confirm {
        border: 3px solid #35d300;
    }
    .unlock-card.tokenerror {
        border: 3px solid #ff3f3f;
    }
    .unlock-card-image-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .unlock-card .unlock-card-background-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .unlock-card.locked .unlock-card-background-image {
        /* filter: blur(8px); */
        transform: scale(1.1);
    }
    .unlock-card .unlock-card-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.2);
    }
    .unlock-card.tokenerror .unlock-card-image-overlay {
        background-color: rgba(218, 2, 2, 0.2);
    }
    .unlock-card-overlay {
        position: absolute;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        padding: 10px;
        text-align: center;
    }
    .unlock-card-overlay.top {
        top: 0;
    }
    .unlock-card-overlay.center {
        top: 45%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 10px;
    }
    .unlock-card-overlay.bottom {
        bottom: 0;
    }
    .unlock-card-overlay.bottom .bottom-text {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-color);
        margin-bottom: 5px;
        font-size: 14px;
    }
    .unlock-card-img-video-count {
        background: var(--primary-color);
        border-radius: 5px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-color);
    }
    .unlock-card-img-video-count .icon {
        width: 25px;
        height: 25px;
    }
    .unlock-card-img-video-count .div-count {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4px 10px;
    }
    .unlock-card-img-video-count .div-count:not(:last-child) {
        border-right: 1px solid var(--border-color);
    }

    /* ========== RESPONSIVE BREAKPOINTS ========== */

    @media (max-width: 576px) {
      .unlock-card {
          height: 260px;
      }
      .unlock-card-overlay.center .icon {
          height: 40px;
          width: 40px;
      }
      .unlock-card .token-btn .token-btn-text {
          font-size: 14px;
      }
      .unlock-card .token-btn .token-btn-left-icon {
          width: 30px;
          height: 30px;
      }
      .unlock-card .btn-gradient-primary,
      .unlock-card .primary-btn,
      .unlock-card .confirm-btn,
      .unlock-card .btn-red {
          font-size: 14px;
          padding: 8px 12px;
      }
    }
    /* Small phones (< 360px) */
    @media (max-width: 359px) {
      .private-popup-card {
        border-radius: 16px;
      }
      .private-image-container {
        height: 200px;
      }
      .private-lock-circle {
        width: 50px;
        height: 50px;
      }
      .private-lock-icon {
        width: 18px;
        height: 18px;
      }
      .private-close-btn {
        top: -14px;
        right: -6px;
        width: 30px;
        height: 30px;
      }
      .private-close-btn svg {
        width: 12px;
        height: 12px;
      }
    }

    /* Phones (360px - 480px) */
    @media (min-width: 360px) and (max-width: 480px) {
      .private-popup-card {
        border-radius: 20px;
      }
      .private-close-btn {
        top: -14px;
        right: -8px;
      }
    }

    /* Tablets and up (> 768px) */
    @media (min-width: 768px) {
      .private-popup-card {
        max-width: 420px;
        border-radius: 24px;
      }
      .private-image-container {
        height: 340px;
      }
    }

    /* Desktop (> 1024px) */
    @media (min-width: 1024px) {
      .private-popup-card {
        max-width: 440px;
      }
      .private-image-container {
        height: 360px;
      }
    }

    /* Landscape phones */
    @media (max-height: 500px) and (orientation: landscape) {
      .private-popup-backdrop {
        align-items: flex-start;
        padding-top: 8px;
      }
      .private-popup-card {
        max-width: 340px;
      }
      .private-image-container {
        height: 160px;
      }
      .private-popup-content {
        margin-top: -10px;
      }
      .private-teaser-text br { display: none; }
    }

    /* Animations */
    @keyframes private-fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes private-slideUp {
      from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes private-shimmer {
      0% { left: -100%; }
      50% { left: 100%; }
      100% { left: 100%; }
    }

    @keyframes private-pulse-glow {
      0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 120, 0.15); }
      50% { box-shadow: 0 0 40px rgba(255, 45, 120, 0.3); }
    }

    @keyframes private-blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    @keyframes private-btnShine {
      0% { left: -100%; }
      60% { left: 100%; }
      100% { left: 100%; }
    }

    @keyframes private-float {
      0%, 100% { transform: translate(-50%, -50%) translateY(0); }
      50% { transform: translate(-50%, -50%) translateY(-6px); }
    }

    /* Reduce motion for accessibility */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }