/* surveyhub-vip-cards-ui-v1 — scoped only to /packages */
.sh-vip-page {
  --sh-vip-gold: #e5c77b;
  --sh-vip-bright: #ffe8a6;
  --sh-vip-muted: #b9b5aa;
  --sh-vip-border: rgba(236, 207, 139, .19);
  color: #f5f0e5;
  width: 100%;
  max-width: 1330px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.sh-vip-page, .sh-vip-page * { box-sizing: border-box; }
.sh-vip-page .sh-vip-hero {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  overflow: hidden; isolation: isolate; gap: 20px;
  padding: clamp(26px, 4.5vw, 48px);
  border: 1px solid rgba(230, 187, 95, .29);
  border-radius: 24px;
  background: radial-gradient(ellipse at 96% 5%, rgba(207, 164, 73, .23), transparent 48%),
              linear-gradient(120deg, #222019 0%, #141514 65%, #262016 100%);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .20);
  margin-bottom: 23px;
}
.sh-vip-page .sh-vip-hero-content { position: relative; z-index: 1; max-width: 680px; }
.sh-vip-page .sh-vip-eyebrow {
  display: block; text-transform: uppercase; font-size: 10px; line-height: 1.6;
  font-weight: 800; letter-spacing: .19em; color: var(--sh-vip-gold); margin-bottom: 10px;
}
.sh-vip-page .sh-vip-hero h1 {
  color: #fff5dd; font-size: clamp(31px, 4.3vw, 52px); line-height: 1.13;
  letter-spacing: -.04em; font-weight: 800; margin: 0 0 15px;
}
.sh-vip-page .sh-vip-hero p {
  color: #e6dfce; font-size: 14px; line-height: 1.75; margin: 0;
}
.sh-vip-page .sh-vip-hero-tags { display:flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.sh-vip-page .sh-vip-hero-tags span {
  display: inline-flex; align-items: center; padding: 8px 11px;
  border: 1px solid rgba(229, 199, 123, .23); background: rgba(229, 199, 123, .06);
  color: #f2e0b3; border-radius: 99px; font-size: 11px; font-weight: 650;
}
.sh-vip-page .sh-vip-hero-icon {
  flex-shrink: 0; color: rgba(249, 208, 115, .25); font-size: clamp(82px, 14vw, 175px);
  text-shadow: 0 0 72px rgba(247, 197, 75, .18); transform: rotate(-15deg);
}
.sh-vip-page .sh-vip-preview-notice {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(234, 178, 82, .105); border: 1px solid rgba(238, 184, 79, .36);
  margin: 0 0 27px; color: #f7e2b1;
}
.sh-vip-page .sh-vip-notice-symbol { font-size: 22px; line-height: 1; color: #eec476; flex-shrink: 0; }
.sh-vip-page .sh-vip-preview-notice strong { font-size: 13px; font-weight: 800; color: #ffedc7; display: block; }
.sh-vip-page .sh-vip-preview-notice p { font-size: 12px; margin: 5px 0 0; color: #e6d5ae; line-height: 1.65; }
.sh-vip-page .sh-vip-list-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 15px; margin: 33px 0 20px;
}
.sh-vip-page .sh-vip-list-heading h2 {
  color: #faf1dc; font-size: clamp(21px, 2vw, 28px); line-height: 1.25;
  font-weight: 750; letter-spacing: -.025em; margin: 0 0 6px;
}
.sh-vip-page .sh-vip-list-heading p { color: #c2bdb1; font-size: 12px; line-height: 1.6; margin: 0; }
.sh-vip-page .sh-vip-count {
  font-size: 11px; font-weight: 700; color: #e8ca85; padding: 8px 12px;
  background: rgba(211, 174, 99, .08); border: 1px solid var(--sh-vip-border);
  border-radius: 99px; white-space: nowrap;
}
.sh-vip-page .sh-vip-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px;
  margin-bottom: 30px;
}
.sh-vip-page .sh-vip-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 23px; border-radius: 19px;
  border: 1px solid rgba(228, 190, 108, .20);
  background: linear-gradient(152deg, #29271f 0%, #181a19 53%, #1d1e1c 100%);
  box-shadow: 0 7px 24px rgba(0, 0, 0, .14);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sh-vip-page .sh-vip-card::before {
  content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, #e7c16b, transparent); opacity: .74;
}
.sh-vip-page .sh-vip-card:hover {
  transform: translateY(-3px); border-color: rgba(235, 197, 118, .50);
  box-shadow: 0 17px 36px rgba(0, 0, 0, .24);
}
.sh-vip-page .sh-vip-card-top { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.sh-vip-page .sh-vip-plan-chip {
  color: #f9e4ad; background: rgba(224, 181, 87, .12); border: 1px solid rgba(225, 188, 108, .26);
  border-radius: 99px; padding: 6px 11px; font-size: 11px; font-weight: 800; letter-spacing: .035em;
}
.sh-vip-page .sh-vip-duration { color: #d0c9b8; font-size: 11px; white-space: nowrap; }
.sh-vip-page .sh-vip-card-price { margin: 23px 0 16px; }
.sh-vip-page .sh-vip-card-price > span, .sh-vip-page .sh-vip-metric span {
  display: block; color: #c1b9a9; font-size: 11px; font-weight: 550; line-height: 1.5;
}
.sh-vip-page .sh-vip-card-price > strong {
  display: block; overflow-wrap: anywhere; margin-top: 7px; font-weight: 800;
  font-size: clamp(24px, 2.7vw, 34px); letter-spacing: -.035em; line-height: 1.2;
  color: #ffe5a0;
}
.sh-vip-page .sh-vip-rate-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sh-vip-page .sh-vip-rate { color: #75dfa7; font-size: 15px; font-weight: 850; }
.sh-vip-page .sh-vip-rate-row > span:last-child { color: #c0beb2; font-size: 10px; }
.sh-vip-page .sh-vip-divider { height: 1px; background: var(--sh-vip-border); margin: 20px 0; }
.sh-vip-page .sh-vip-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-vip-page .sh-vip-metric {
  padding: 13px 11px; border-radius: 12px; min-width: 0;
  border: 1px solid rgba(229, 207, 155, .13); background: rgba(255, 255, 255, .035);
}
.sh-vip-page .sh-vip-metric--daily { background: rgba(30, 139, 82, .12); border-color: rgba(66, 203, 124, .27); }
.sh-vip-page .sh-vip-metric--total { background: rgba(210, 168, 73, .09); border-color: rgba(225, 186, 101, .25); }
.sh-vip-page .sh-vip-metric--daily strong { color: #8cedb5; }
.sh-vip-page .sh-vip-metric--total strong { color: #f8d892; }
.sh-vip-page .sh-vip-metric strong {
  display: block; margin-top: 7px; font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.25; font-weight: 800; overflow-wrap: anywhere;
}
.sh-vip-page .sh-vip-task-row {
  display: flex; align-items: center; gap: 9px; margin: 19px 0 20px;
  color: #e0dbc9; font-size: 11px;
}
.sh-vip-page .sh-vip-task-row > span:first-child {
  display: inline-grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0;
  color: #7ce8ac; background: rgba(73, 190, 117, .13); border-radius: 50%;
}
.sh-vip-page .sh-vip-card form { display: block; margin-top: auto; }
.sh-vip-page .sh-vip-card input[type="hidden"] { display: none; }
.sh-vip-page .sh-vip-card button.sh-vip-activate {
  display: flex; width: 100%; min-height: 45px; align-items: center; justify-content: center;
  border-radius: 11px; border: 1px solid #eccb87; padding: 11px 14px;
  color: #252013; font-weight: 800; font-size: 12px;
  background: linear-gradient(110deg, #b98d3f, #f2d58e 46%, #c3994a);
  box-shadow: 0 5px 18px rgba(191, 144, 58, .16); cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}
.sh-vip-page .sh-vip-card button.sh-vip-activate:not(:disabled):hover { filter: brightness(1.1); transform: translateY(-1px); }
.sh-vip-page .sh-vip-card button.sh-vip-activate:disabled {
  cursor: not-allowed; transform: none; opacity: 1;
  box-shadow: none; color: #d7c7a7;
  background: #51483a; border-color: rgba(230, 198, 127, .28);
}
.sh-vip-page .sh-vip-card .sh-vip-card-footnote {
  margin: 12px 0 0; text-align: center; color: #b9b1a2;
  font-size: 10px; line-height: 1.55;
}
.sh-vip-page .sh-vip-history {
  padding: 23px; border-radius: 20px; border: 1px solid var(--sh-vip-border);
  background: linear-gradient(145deg, #24241f, #191b19); margin-top: 24px;
}
.sh-vip-page .sh-vip-history-heading { margin: 0 0 20px; }
.sh-vip-page .sh-vip-history-scroll { overflow-x: auto; }
.sh-vip-page .sh-vip-history table { width: 100%; min-width: 620px; border-collapse: collapse; color: #e8e2d5; }
.sh-vip-page .sh-vip-history th {
  padding: 13px; border-bottom: 1px solid rgba(241, 216, 160, .18);
  color: #ecd19b; background: rgba(212, 167, 78, .08);
  font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em;
}
.sh-vip-page .sh-vip-history td {
  padding: 14px 13px; color: #dfdacc; font-size: 11px;
  border-bottom: 1px solid rgba(236, 207, 139, .10);
}
.sh-vip-page .sh-vip-history td strong { color: #fff1d0; font-size: 11px; }
.sh-vip-page .sh-vip-empty { text-align: center; padding: 28px 13px !important; color: #d0c9b9 !important; }
.sh-vip-page .sh-vip-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: 99px; border: 1px solid transparent;
  font-size: 10px; font-weight: 700; white-space: nowrap;
}
.sh-vip-page .sh-vip-status--success { background: rgba(27, 174, 86, .14); border-color: rgba(78, 207, 130, .32); color: #86edb3; }
.sh-vip-page .sh-vip-status--danger { background: rgba(226, 64, 64, .15); border-color: rgba(238, 94, 94, .34); color: #ffabab; }
.sh-vip-page .sh-vip-status--pending { background: rgba(228, 159, 45, .13); border-color: rgba(235, 178, 75, .30); color: #f7d18b; }
.sh-vip-page .sh-vip-status--neutral { background: rgba(178, 184, 189, .11); border-color: rgba(183, 190, 193, .23); color: #c6c6c1; }
.sh-vip-page .sh-vip-disclaimer {
  padding: 16px 5px 4px; color: #bcb4a5; font-size: 11px;
  line-height: 1.7; max-width: 1040px;
}
@media (max-width: 1100px) {
  .sh-vip-page .sh-vip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sh-vip-page .sh-vip-hero { padding: 25px 19px; border-radius: 18px; }
  .sh-vip-page .sh-vip-hero-icon { display: none; }
  .sh-vip-page .sh-vip-hero-tags { margin-top: 18px; gap: 6px; }
  .sh-vip-page .sh-vip-hero-tags span { font-size: 10px; padding: 6px 9px; }
  .sh-vip-page .sh-vip-list-heading { align-items: flex-start; margin: 29px 0 17px; }
  .sh-vip-page .sh-vip-grid { grid-template-columns: 1fr; gap: 14px; }
  .sh-vip-page .sh-vip-card { padding: 20px; border-radius: 17px; }
  .sh-vip-page .sh-vip-card-price > strong { font-size: 29px; }
  .sh-vip-page .sh-vip-metric strong { font-size: 19px; }
  .sh-vip-page .sh-vip-history { padding: 18px 12px; }
  .sh-vip-page .sh-vip-history-heading { padding: 0 5px; }
}
@media (max-width: 360px) {
  .sh-vip-page .sh-vip-metrics { grid-template-columns: 1fr; }
  .sh-vip-page .sh-vip-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-vip-page .sh-vip-card { transition: none; }
  .sh-vip-page .sh-vip-card:hover { transform: none; }
}
/* surveyhub-vip-compact-v2 -- small heading and space-efficient mobile VIP cards */
.sh-vip-page { max-width: 1240px; }
.sh-vip-page .sh-vip-compact-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 0 0 14px; padding: 2px 2px 0;
}
.sh-vip-page .sh-vip-compact-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sh-vip-page .sh-vip-compact-title h1 {
  color: #fff0c8; font-weight: 780; font-size: clamp(22px, 2.6vw, 29px);
  line-height: 1.2; letter-spacing: -.025em; margin: 0;
}
.sh-vip-page .sh-vip-compact-header .sh-vip-count {
  display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px;
  font-size: 10px; border-color: rgba(229, 198, 117, .23);
}
.sh-vip-page .sh-vip-compact-preview {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(226, 177, 78, .08); border: 1px solid rgba(230, 184, 93, .22);
  color: #e6c88c; border-radius: 20px; padding: 5px 11px;
  margin: 0; font-size: 10px; line-height: 1.4;
}
.sh-vip-page .sh-vip-compact-preview::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #edb765; flex: none;
}
.sh-vip-page .sh-vip-grid { gap: 13px; margin-bottom: 22px; }
.sh-vip-page .sh-vip-card { padding: 19px; border-radius: 16px; }
.sh-vip-page .sh-vip-card::before { left: 16px; right: 16px; }
.sh-vip-page .sh-vip-card-price { margin: 14px 0 11px; }
.sh-vip-page .sh-vip-card-price > span, .sh-vip-page .sh-vip-metric span { font-size: 10px; }
.sh-vip-page .sh-vip-card-price > strong { margin-top: 4px; font-size: clamp(23px, 2.4vw, 30px); }
.sh-vip-page .sh-vip-rate-row { gap: 7px; }
.sh-vip-page .sh-vip-rate { font-size: 16px; }
.sh-vip-page .sh-vip-rate-row > span:last-child { font-size: 10px; }
.sh-vip-page .sh-vip-divider { margin: 13px 0; }
.sh-vip-page .sh-vip-metrics { gap: 8px; }
.sh-vip-page .sh-vip-metric { padding: 10px 9px; border-radius: 10px; }
.sh-vip-page .sh-vip-metric strong { font-size: clamp(15px, 1.5vw, 19px); margin-top: 5px; }
.sh-vip-page .sh-vip-task-row { margin: 12px 0 12px; font-size: 10px; }
.sh-vip-page .sh-vip-task-row > span:first-child { width: 18px; height: 18px; }
.sh-vip-page .sh-vip-closed {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 39px; padding: 9px 12px; margin-top: auto;
  border-radius: 10px; border: 1px solid rgba(216, 186, 115, .20);
  color: #c8bca5; background: rgba(225, 197, 129, .055);
  font-weight: 650; font-size: 11px; text-align: center;
}
.sh-vip-page .sh-vip-closed > span { font-size: 12px; }
.sh-vip-page .sh-vip-history { margin-top: 20px; }
.sh-vip-page .sh-vip-history .sh-vip-list-heading { margin: 0 0 15px; }
@media (max-width: 700px) {
  .sh-vip-page { padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
  .sh-vip-page .sh-vip-compact-header { margin: 0 0 12px; gap: 5px; }
  .sh-vip-page .sh-vip-compact-title h1 { font-size: 22px; }
  .sh-vip-page .sh-vip-compact-preview { font-size: 9px; padding: 4px 9px; }
  .sh-vip-page .sh-vip-grid { gap: 12px; }
  .sh-vip-page .sh-vip-card { padding: 16px; border-radius: 15px; }
  .sh-vip-page .sh-vip-card-price { margin: 13px 0 9px; }
  .sh-vip-page .sh-vip-card-price > strong { font-size: clamp(23px, 6.9vw, 30px); }
  .sh-vip-page .sh-vip-metric strong { font-size: clamp(14px, 4.1vw, 20px); }
  .sh-vip-page .sh-vip-task-row { margin: 11px 0; }
  .sh-vip-page .sh-vip-closed { min-height: 37px; }
}
@media (max-width: 375px) {
  .sh-vip-page .sh-vip-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sh-vip-page .sh-vip-metric { padding: 9px 7px; }
  .sh-vip-page .sh-vip-metric strong { font-size: 14px; }
  .sh-vip-page .sh-vip-compact-header .sh-vip-count { display: inline-flex; }
}


/* surveyhub-vip-mobile-overflow-fix-v2 */

@media screen and (max-width: 760px) {

    /* Package content must fit within the viewport. */
    body.app-shell .sh-vip-page {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        overflow: visible;
        box-sizing: border-box;
    }

    body.app-shell .sh-vip-page *,
    body.app-shell .sh-vip-page *::before,
    body.app-shell .sh-vip-page *::after {
        box-sizing: border-box;
    }

    /* Keep package grids responsive. */
    body.app-shell .sh-vip-page
    :is(.packages-grid, .sh-vip-grid, .sh-vip-cards) {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 100%;
        min-width: 0;
    }

    /* Allow package card content to grow vertically. */
    body.app-shell .sh-vip-page
    :is(.package, .sh-vip-card) {
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    /* Long labels and amounts wrap naturally. */
    body.app-shell .sh-vip-page
    :is(h1, h2, h3, p, small, strong, label) {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Forms and buttons remain inside cards. */
    body.app-shell .sh-vip-page
    :is(input, select, textarea) {
        max-width: 100%;
        min-width: 0;
    }

    /* Wide transaction history scrolls independently. */
    body.app-shell .sh-vip-page
    .sh-vip-history-scroll {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    body.app-shell .sh-vip-page
    .sh-vip-history-scroll table {
        min-width: 620px;
        width: 100%;
    }

    /* Footer remains accessible below page content. */
    body.app-shell .main-wrap {
        min-width: 0;
        height: auto;
        min-height: 100dvh;
    }

    body.app-shell .main-wrap > footer {
        position: relative;
        display: block;
        visibility: visible;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-bottom:
            calc(105px + env(safe-area-inset-bottom, 0px))
            !important;
    }
}
