html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #09090d;
  }

  #exp-app,
  #exp-app * {
    box-sizing: border-box;
  }

  #exp-app {
    width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    background: #09090d;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
  }

  .exp-video-area {
    position: relative;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
    background: #080808;
  }

  .exp-background-video {
    position: absolute;
    inset: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    object-fit: cover;
    filter: blur(28px);
    opacity: 0.4;
    transform: scale(1.08);
  }

  .exp-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.44);
  }

  .exp-video-header {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    min-height: 72px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .exp-profile {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .exp-profile-image {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #dc3d91;
  }

  .exp-profile-name {
    display: block;
    font-size: 15px;
  }

  .exp-online {
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #a9a9b5;
    font-size: 11px;
  }

  .exp-online span {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #22c55e;
  }

  .exp-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
  }

  .exp-viewers,
  .exp-timer {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(10, 10, 14, 0.72);
  }

  .exp-viewers {
    color: #fff;
    border-color: rgba(225, 61, 142, 0.55);
    background: rgba(99, 20, 57, 0.72);
  }

  .exp-signal {
    color: #22c55e;
    letter-spacing: 3px;
  }

  .exp-video-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 72px 0 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .exp-main-video {
    width: min(100%, calc((100vh - 150px) * 16 / 9));
    height: auto;
    max-height: calc(100vh - 150px);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
    background: #000;
  }

  .exp-camera-wrapper {
    position: absolute;
    right: 18px;
    bottom: 96px;
    z-index: 6;
    width: 128px;
    height: 170px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: #24242e;
    color: #aaaab5;
    font-size: 12px;
  }

  .exp-camera-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
  }

  .exp-camera-wrapper span {
    position: absolute;
  }

  .exp-controls {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 20px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
  }

  .exp-control-button {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #292934;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
  }

  .exp-control-button:hover {
    transform: translateY(-2px);
    background: #393947;
  }

  .exp-control-button.exp-active {
    background: #df3e91;
  }

  .exp-end-button {
    background: #ef4444;
  }

  .exp-end-button:hover {
    background: #dc2626;
  }

  .exp-chat {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #12121c;
    border-left: 1px solid #292934;
  }

  .exp-chat-header {
    min-height: 58px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #292934;
    font-size: 15px;
    font-weight: 600;
  }

  .exp-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    scroll-behavior: smooth;
  }

  .exp-message {
    width: fit-content;
    max-width: 84%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    line-height: 1.4;
    font-size: 13px;
    word-break: break-word;
  }

  .exp-message-app {
    margin-right: auto;
    background: #292934;
  }


  .exp-message-user {
    margin-left: auto;
    background: linear-gradient(135deg, #dc3d91, #9544db);
  }

  .exp-typing {
    display: none;
    min-height: 30px;
    padding: 7px 16px;
    color: #9999a8;
    font-size: 11px;
  }

  .exp-gift-button {
    align-self: flex-start;
    margin: 0 14px 10px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #df3e91, #a542e2);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
  }

  .exp-chat-form {
    min-height: 70px;
    padding: 11px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #292934;
  }

  .exp-chat-form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #3b3b49;
    border-radius: 999px;
    outline: none;
    background: #24242e;
    color: #fff;
  }

  .exp-chat-form input:focus {
    border-color: #df3e91;
  }

  .exp-chat-form button {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 0;
    border-radius: 50%;
    background: #df3e91;
    color: #fff;
    cursor: pointer;
  }

  .exp-chat-form input:disabled,
  .exp-chat-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .exp-modal {
    position: fixed !important;
    z-index: 2147483000 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vw, 24px);
    overflow: auto;
    isolation: isolate;
  }

  .exp-modal.exp-open {
    display: flex;
  }

  .exp-modal.exp-payment-locked .exp-close-modal {
    display: none !important;
  }

  .exp-modal.exp-payment-locked .exp-modal-backdrop {
    cursor: default;
  }

  body.exp-payment-locked {
    overflow: hidden !important;
  }

  .exp-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(9px);
  }

  .exp-modal-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: clamp(18px, 3vw, 28px);
    overflow-y: auto;
    border: 1px solid #383844;
    border-radius: 16px;
    background: rgba(15, 12, 19, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }

  .exp-modal-content h2 {
    margin: 0 0 22px;
    text-align: center;
  }

  .exp-close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid #44444f;
    border-radius: 50%;
    background: #22222b;
    color: #fff;
    cursor: pointer;
  }

  .exp-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .exp-plan {
    position: relative;
    padding: 22px;
    border: 1px solid #393944;
    border-radius: 14px;
    background: #1a181e;
  }

  .exp-featured-plan {
    border-color: #df3e91;
  }

  .exp-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    padding: 4px 10px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #df3e91, #9347e7);
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
  }

  .exp-plan h3 {
    margin: 8px 0;
  }

  .exp-plan p,
  .exp-plan li {
    color: #b3b3bd;
    font-size: 13px;
  }

  .exp-plan ul {
    min-height: 90px;
    padding: 0;
    list-style: none;
  }

  .exp-price {
    display: block;
    margin: 16px 0;
    font-size: 28px;
  }

  .exp-payment-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #df3e91, #9148df);
    color: #fff !important;
    font-weight: bold;
    text-decoration: none !important;
  }

  .exp-secondary-button {
    background: #34343b;
  }

  .exp-toast {
    position: fixed;
    z-index: 100000;
    left: 50%;
    bottom: 24px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 10px;
    transform: translate(-50%, 120px);
    background: #272730;
    color: #fff;
    opacity: 0;
    transition: 0.25s;
  }

  .exp-toast.exp-show {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  @media (max-width: 850px) {
    html,
    body {
      overflow: auto;
    }

    #exp-app {
      min-height: 100svh;
      grid-template-columns: 1fr;
      grid-template-rows: 68svh 50svh;
      overflow: visible;
    }

    .exp-video-area {
      height: 68svh;
    }

    .exp-video-content {
      padding: 62px 0 70px;
    }

    .exp-main-video {
      width: min(100%, calc((68svh - 132px) * 16 / 9));
      max-height: calc(68svh - 132px);
      aspect-ratio: 16 / 9;
      object-fit: contain;
    }

    .exp-chat {
      height: 50svh;
      border-top: 1px solid #292934;
      border-left: 0;
    }

    .exp-video-header {
      padding: 10px 12px;
    }

    .exp-viewers {
      display: none;
    }

    .exp-camera-wrapper {
      width: 88px;
      height: 118px;
      right: 10px;
      bottom: 82px;
    }

    .exp-controls {
      bottom: 14px;
      gap: 7px;
    }

    .exp-control-button {
      width: 44px;
      height: 44px;
      font-size: 15px;
    }

    .exp-plans {
      grid-template-columns: 1fr;
      max-height: 70vh;
      overflow-y: auto;
    }
  }

.exp-plans {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.exp-plan ul {
  margin: 0;
}

.exp-payment-button[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

.exp-message-sender{display:block;margin-bottom:3px;color:#9999a8;font-size:10px}.exp-payment-status{min-height:24px;margin-top:14px;text-align:center;color:#b3b3bd;font-size:13px}.exp-payment-button{border:0;cursor:pointer}.exp-payment-button:disabled{opacity:.55;cursor:wait}


@media (max-width: 760px) {
  .exp-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .exp-modal-content {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    margin-top: 0;
    border-radius: 14px;
  }

  .exp-modal-content h2 {
    padding-right: 34px;
    font-size: 22px;
  }

  .exp-plans {
    grid-template-columns: 1fr !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* Modal color isolation: prevents the active WordPress/Elementor theme
   from overriding offer text with black. */
body > .exp-modal,
body > .exp-modal .exp-modal-content,
body > .exp-modal .exp-plan,
body > .exp-modal .exp-plan h2,
body > .exp-modal .exp-plan h3,
body > .exp-modal .exp-price,
body > .exp-modal .exp-plan-badge {
  color: #ffffff !important;
}

body > .exp-modal .exp-modal-content h2,
body > .exp-modal .exp-plan h3,
body > .exp-modal .exp-price {
  color: #ffffff !important;
}

body > .exp-modal .exp-plan p,
body > .exp-modal .exp-plan li {
  color: #b3b3bd !important;
}

body > .exp-modal .exp-payment-button,
body > .exp-modal .exp-payment-button:hover,
body > .exp-modal .exp-payment-button:focus,
body > .exp-modal .exp-payment-button:visited {
  color: #ffffff !important;
  background: linear-gradient(135deg, #df3e91, #9148df) !important;
  text-decoration: none !important;
}

body > .exp-modal .exp-plan {
  background: #1a181e !important;
}

body > .exp-modal .exp-modal-content {
  background: rgba(15, 12, 19, 0.98) !important;
}


/* Separate Send gift modal */
.exp-gift-modal {
  position: fixed !important;
  z-index: 2147483100 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  isolation: isolate;
}

.exp-gift-modal.exp-gift-open {
  display: flex;
}

.exp-gift-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.exp-gift-modal-content {
  position: relative;
  z-index: 2;
  width: min(400px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 34px 18px 18px;
  overflow-y: auto;
  color: #fff !important;
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(13, 11, 18, .97);
  box-shadow: 0 28px 90px rgba(0,0,0,.62);
}

.exp-gift-close-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: #24232b;
  color: #fff;
  cursor: pointer;
}

.exp-gift-main-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg,#df3e91,#a640df);
  font-size: 27px;
}

.exp-gift-modal-content h2 {
  margin: 0 0 7px;
  color: #fff !important;
  font-size: 21px;
}

.exp-gift-modal-content > p {
  margin: 0 0 20px;
  color: #e5e3e8 !important;
  font-size: 13px;
}

.exp-gift-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-gift-item {
  min-height: 72px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
  text-align: left;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #1b1920;
  transition: transform .18s ease, border-color .18s ease;
}

.exp-gift-item:hover {
  transform: translateY(-1px);
  border-color: rgba(223,62,145,.75);
}

.exp-gift-item-media {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #2c2932;
  font-size: 23px;
}

.exp-gift-item-media.is-whatsapp {
  background: #21c063;
  color: white;
  font-size: 27px;
}

.exp-gift-item-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.exp-gift-item-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.exp-gift-item-text strong {
  color: #fff !important;
  font-size: 14px;
}

.exp-gift-item-text small {
  color: #d0ccd4 !important;
  font-size: 11px;
}

.exp-gift-item-price {
  padding: 9px 12px;
  color: #fff !important;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(135deg,#ef2b74,#a640df);
  font-size: 12px;
  font-weight: 700;
}

.exp-gift-close-button {
  margin-top: 15px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

body.exp-gift-modal-open {
  overflow: hidden !important;
}

@media (max-width: 480px) {
  .exp-gift-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .exp-gift-modal-content {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 30px 12px 14px;
  }

  .exp-gift-item {
    grid-template-columns: 46px minmax(0,1fr) auto;
    padding: 9px;
  }

  .exp-gift-item-media {
    width: 46px;
    height: 46px;
  }

  .exp-gift-item-price {
    padding: 8px 10px;
    font-size: 11px;
  }
}


.exp-gift-item.is-loading {
  opacity: .65;
  pointer-events: none;
}

.exp-gift-item.is-loading .exp-gift-item-price::after {
  content: "…";
}


/* Mobile call layout */
@media (max-width: 850px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000;
  }

  #exp-app {
    position: relative;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    display: block;
    overflow: hidden;
    background: #000;
  }

  .exp-video-area {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .exp-background-video {
    display: none;
  }

  .exp-dark-overlay {
    z-index: 3;
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,.34) 0%,
        rgba(0,0,0,.06) 30%,
        rgba(0,0,0,.05) 58%,
        rgba(0,0,0,.56) 100%
      );
  }

  .exp-video-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
    overflow: hidden;
  }

  .exp-main-video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center center;
    background: #000;
  }

  .exp-video-header {
    z-index: 12;
    min-height: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 12px 10px;
    align-items: flex-start;
  }

  .exp-profile {
    gap: 8px;
  }

  .exp-profile-image {
    width: 38px;
    height: 38px;
  }

  .exp-profile-name {
    font-size: 13px;
  }

  .exp-online {
    font-size: 10px;
  }

  .exp-header-actions {
    margin-top: 2px;
    gap: 6px;
  }

  .exp-viewers {
    display: flex;
    padding: 5px 8px;
    font-size: 10px;
    opacity: .72;
  }

  .exp-timer {
    padding: 5px 8px;
    font-size: 10px;
    opacity: .72;
  }

  .exp-signal {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .exp-camera-wrapper {
    display: none;
  }

  .exp-controls {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    gap: 8px;
    transform: translateX(-50%);
  }

  .exp-control-button {
    width: 44px;
    height: 44px;
    font-size: 15px;
    background: rgba(27, 28, 40, .88);
    backdrop-filter: blur(8px);
  }

  .exp-end-button {
    background: rgba(239, 68, 68, .94);
  }

  .exp-chat {
    position: absolute;
    z-index: 16;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    background: transparent;
    border: 0;
  }

  .exp-chat-header {
    display: none;
  }

  .exp-chat-messages {
    position: absolute;
    left: 12px;
    right: 76px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 126px);
    max-height: 31vh;
    padding: 0;
    overflow-y: auto;
    pointer-events: auto;
    scrollbar-width: none;
  }

  .exp-chat-messages::-webkit-scrollbar {
    display: none;
  }

  .exp-message {
    max-width: 84%;
    margin-bottom: 8px;
    padding: 9px 11px;
    border-radius: 11px;
    font-size: 12px;
    backdrop-filter: blur(9px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
  }

  .exp-message-app {
    background: rgba(26, 24, 29, .72);
  }

  .exp-message-user {
    background: rgba(211, 50, 145, .84);
  }

  .exp-message-sender {
    font-size: 9px;
  }

  .exp-typing {
    position: absolute;
    left: 14px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 110px);
    min-height: auto;
    padding: 0;
    color: rgba(255,255,255,.76);
    font-size: 10px;
    pointer-events: none;
  }

  .exp-gift-button {
    position: absolute;
    z-index: 22;
    top: calc(env(safe-area-inset-top, 0px) + 62px);
    right: 12px;
    margin: 0;
    padding: 9px 14px;
    pointer-events: auto;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.24);
  }

  .exp-chat-form {
    position: absolute;
    z-index: 22;
    left: 10px;
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 66px);
    min-height: auto;
    padding: 0;
    gap: 7px;
    pointer-events: auto;
    border: 0;
    background: transparent;
  }

  .exp-chat-form input {
    height: 44px;
    padding: 0 15px;
    border-color: rgba(255,255,255,.1);
    background: rgba(24, 23, 30, .78);
    backdrop-filter: blur(10px);
    font-size: 13px;
  }

  .exp-chat-form button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
  }

  .exp-modal-content,
  .exp-gift-modal-content {
    max-height: calc(100dvh - 20px);
  }
}

@media (max-width: 390px) {
  .exp-chat-messages {
    right: 58px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 122px);
  }

  .exp-gift-button {
    right: 10px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .exp-control-button {
    width: 42px;
    height: 42px;
  }
}


@media (max-width: 850px) {
  #exp-app .exp-chat-messages,
  #exp-app .exp-typing,
  #exp-app .exp-chat-form,
  #exp-app .exp-gift-button {
    transition:
      opacity .22s ease,
      transform .22s ease,
      visibility .22s ease;
  }

  #exp-app.exp-mobile-chat-hidden .exp-chat-messages,
  #exp-app.exp-mobile-chat-hidden .exp-typing,
  #exp-app.exp-mobile-chat-hidden .exp-chat-form,
  #exp-app.exp-mobile-chat-hidden .exp-gift-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  #exp-app.exp-mobile-chat-hidden .exp-chat-messages,
  #exp-app.exp-mobile-chat-hidden .exp-typing {
    transform: translateY(12px);
  }

  #exp-app.exp-mobile-chat-hidden .exp-chat-form {
    transform: translateY(18px);
  }

  #exp-app.exp-mobile-chat-hidden .exp-gift-button {
    transform: translateY(-8px);
  }

  #exp-app.exp-mobile-chat-hidden .exp-controls,
  #exp-app.exp-mobile-chat-hidden .exp-video-header {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}


@media (max-width: 850px) {
  body > .exp-modal.exp-open,
  body > .exp-modal.exp-payment-locked,
  body > .exp-gift-modal.exp-gift-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body > .exp-modal .exp-modal-content,
  body > .exp-gift-modal .exp-gift-modal-content {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}


@media (max-width: 850px) {
  #exp-app .exp-video-content {
    pointer-events: auto;
    cursor: pointer;
  }

  #exp-app .exp-main-video {
    pointer-events: none;
  }

  #exp-app .exp-chat {
    pointer-events: none !important;
  }

  #exp-app .exp-chat-messages,
  #exp-app .exp-chat-form,
  #exp-app .exp-gift-button,
  #exp-app .exp-controls,
  #exp-app .exp-video-header {
    pointer-events: auto;
  }
}


@media (max-width: 850px) {
  #exp-app.exp-mobile-chat-hidden .exp-chat-messages,
  #exp-app.exp-mobile-chat-hidden .exp-typing,
  #exp-app.exp-mobile-chat-hidden .exp-chat-form,
  #exp-app.exp-mobile-chat-hidden .exp-gift-button {
    display: none !important;
  }
}


/* Compact mobile payment and gift modals */
@media (max-width: 850px) {
  .exp-modal,
  .exp-gift-modal {
    align-items: center !important;
    padding: 8px !important;
  }

  .exp-modal-content {
    width: min(92vw, 430px) !important;
    max-height: 88dvh !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .exp-modal-content h2 {
    margin: 0 0 14px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .exp-plans {
    gap: 10px !important;
  }

  .exp-plan {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .exp-plan-badge {
    top: -8px !important;
    padding: 3px 8px !important;
    font-size: 8px !important;
  }

  .exp-plan h3 {
    margin: 4px 0 8px !important;
    font-size: 16px !important;
  }

  .exp-plan p,
  .exp-plan li {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .exp-plan ul {
    min-height: 0 !important;
    margin: 8px 0 10px !important;
  }

  .exp-price {
    margin: 10px 0 !important;
    font-size: 24px !important;
  }

  .exp-payment-button {
    min-height: 42px !important;
    font-size: 12px !important;
  }

  .exp-payment-status {
    margin-top: 10px !important;
    font-size: 11px !important;
  }

  .exp-gift-modal-content {
    width: min(92vw, 360px) !important;
    max-height: 88dvh !important;
    padding: 28px 14px 14px !important;
    border-radius: 14px !important;
  }

  .exp-gift-main-icon {
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 10px !important;
    font-size: 22px !important;
  }

  .exp-gift-modal-content h2 {
    font-size: 18px !important;
  }

  .exp-gift-modal-content > p {
    margin-bottom: 14px !important;
    font-size: 11px !important;
  }

  .exp-gift-item {
    min-height: 62px !important;
    grid-template-columns: 44px minmax(0,1fr) auto !important;
    gap: 8px !important;
    padding: 8px 9px !important;
  }

  .exp-gift-item-media {
    width: 44px !important;
    height: 44px !important;
  }

  .exp-gift-item-text strong {
    font-size: 12px !important;
  }

  .exp-gift-item-text small {
    font-size: 10px !important;
  }

  .exp-gift-item-price {
    padding: 7px 9px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 420px) {
  .exp-modal-content {
    width: calc(100vw - 16px) !important;
    max-height: 90dvh !important;
    padding: 12px !important;
  }

  .exp-plan {
    padding: 12px !important;
  }

  .exp-plan h3 {
    font-size: 15px !important;
  }

  .exp-price {
    font-size: 22px !important;
  }
}


/* v3.3.1 — modal mobile um pouco menor, partindo da v3.3 */
@media (max-width: 850px) {
  .exp-modal {
    padding: 12px !important;
  }

  .exp-modal-content {
    width: min(86vw, 390px) !important;
    max-height: 82dvh !important;
    padding: 14px !important;
    border-radius: 13px !important;
  }

  .exp-modal-content h2 {
    margin-bottom: 12px !important;
    font-size: 18px !important;
  }

  .exp-plans {
    gap: 9px !important;
  }

  .exp-plan {
    padding: 12px !important;
  }

  .exp-plan h3 {
    font-size: 15px !important;
  }

  .exp-plan p,
  .exp-plan li {
    font-size: 10.5px !important;
  }

  .exp-plan ul {
    margin: 7px 0 9px !important;
  }

  .exp-price {
    margin: 9px 0 !important;
    font-size: 22px !important;
  }

  .exp-payment-button {
    min-height: 39px !important;
    font-size: 11px !important;
  }

  .exp-gift-modal-content {
    width: min(86vw, 340px) !important;
    max-height: 82dvh !important;
  }
}

@media (max-width: 420px) {
  .exp-modal-content {
    width: calc(100vw - 28px) !important;
    max-height: 84dvh !important;
  }

  .exp-plan {
    padding: 11px !important;
  }
}


/* v3.3.2 — centralização real dos modais no mobile */
@media (max-width: 850px) {
  body > .exp-modal,
  body > .exp-gift-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding:
      max(10px, env(safe-area-inset-top, 0px))
      max(10px, env(safe-area-inset-right, 0px))
      max(10px, env(safe-area-inset-bottom, 0px))
      max(10px, env(safe-area-inset-left, 0px)) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body > .exp-modal.exp-open,
  body > .exp-modal.exp-payment-locked,
  body > .exp-gift-modal.exp-gift-open {
    display: flex !important;
  }

  body > .exp-modal .exp-modal-content,
  body > .exp-gift-modal .exp-gift-modal-content {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: auto !important;
    transform: none !important;
    flex: 0 1 auto !important;
    align-self: center !important;
  }

  body > .exp-modal .exp-modal-content {
    width: min(86vw, 390px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(82dvh, calc(100dvh - 24px)) !important;
    overflow-y: auto !important;
  }

  body > .exp-gift-modal .exp-gift-modal-content {
    width: min(86vw, 340px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(82dvh, calc(100dvh - 24px)) !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 420px) {
  body > .exp-modal .exp-modal-content,
  body > .exp-gift-modal .exp-gift-modal-content {
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }
}


/* v3.3.3 — centralização horizontal exata no mobile */
@media (max-width: 850px) {
  body > .exp-modal,
  body > .exp-gift-modal {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    display: none;
    grid-template-columns: minmax(0, 1fr) !important;
    place-items: center !important;

    padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
    padding-right: max(14px, env(safe-area-inset-right, 0px)) !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    padding-left: max(14px, env(safe-area-inset-left, 0px)) !important;
  }

  body > .exp-modal.exp-open,
  body > .exp-modal.exp-payment-locked,
  body > .exp-gift-modal.exp-gift-open {
    display: grid !important;
  }

  body > .exp-modal .exp-modal-content,
  body > .exp-gift-modal .exp-gift-modal-content {
    position: relative !important;
    inset: auto !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body > .exp-modal .exp-modal-content {
    width: min(390px, calc(100% - 2px)) !important;
    max-width: 390px !important;
  }

  body > .exp-gift-modal .exp-gift-modal-content {
    width: min(340px, calc(100% - 2px)) !important;
    max-width: 340px !important;
  }
}

@media (max-width: 420px) {
  body > .exp-modal .exp-modal-content,
  body > .exp-gift-modal .exp-gift-modal-content {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* Acesso de presente liberado após confirmação do Stripe */
.exp-gift-success .exp-gift-main-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.exp-gift-unlocked-item {
  cursor: pointer;
}

.exp-gift-access-button {
  padding: 9px 12px;
  color: #fff !important;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  font-size: 11px;
  font-weight: 700;
}


/* v3.4.1 — evita zoom automático ao focar o input no mobile */
@media (max-width: 850px) {
  #exp-app .exp-chat-form input,
  #exp-app input,
  #exp-app textarea,
  #exp-app select {
    font-size: 16px !important;
  }

  #exp-app .exp-chat-form input {
    line-height: 1.2 !important;
    transform: none !important;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
  }
}


/* v3.4.2 — foto de perfil fixa e contador simplificado no mobile */
.exp-profile-image {
  display: block !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.exp-viewers {
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

@media (max-width: 850px) {
  .exp-profile-image {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }

  .exp-viewers {
    justify-content: center;
    min-width: 0 !important;
    padding: 5px 7px !important;
    gap: 3px !important;
  }

  .exp-viewer-label {
    display: none !important;
  }

  .exp-viewer-icon {
    font-size: 8px;
  }
}


/* v3.4.3 — exibe a prévia da câmera do visitante no mobile */
@media (max-width: 850px) {
  #exp-app .exp-camera-wrapper {
    display: flex !important;
    position: absolute !important;
    z-index: 18 !important;
    right: 10px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 70px) !important;
    width: 76px !important;
    height: 102px !important;
    min-width: 76px !important;
    min-height: 102px !important;
    max-width: 76px !important;
    max-height: 102px !important;
    border-radius: 11px !important;
    overflow: hidden !important;
    background: #24242e !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.42);
  }

  #exp-app .exp-camera-wrapper video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scaleX(-1) !important;
  }

  #exp-app .exp-camera-wrapper span {
    inset: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    text-align: center;
    font-size: 10px !important;
  }
}

@media (max-width: 420px) {
  #exp-app .exp-camera-wrapper {
    right: 8px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 66px) !important;
    width: 70px !important;
    height: 94px !important;
    min-width: 70px !important;
    min-height: 94px !important;
    max-width: 70px !important;
    max-height: 94px !important;
  }
}


/* v3.4.4 — sobe um pouco a prévia da câmera no mobile */
@media (max-width: 850px) {
  #exp-app .exp-camera-wrapper {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 92px) !important;
  }
}

@media (max-width: 420px) {
  #exp-app .exp-camera-wrapper {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 88px) !important;
  }
}


/* v3.4.5 — sobe ainda mais a prévia da câmera no mobile */
@media (max-width: 850px) {
  #exp-app .exp-camera-wrapper {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 126px) !important;
  }
}

@media (max-width: 420px) {
  #exp-app .exp-camera-wrapper {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 120px) !important;
  }
}


/* v3.4.6 — afasta a prévia da câmera da borda direita no mobile */
@media (max-width: 850px) {
  #exp-app .exp-camera-wrapper {
    right: 18px !important;
  }
}

@media (max-width: 420px) {
  #exp-app .exp-camera-wrapper {
    right: 16px !important;
  }
}
