/* Resip theme — visual 1:1 inspired by https://resip.net/ */
:root {
  --rs-bg: #0c0c10;
  --rs-bg-2: #0f1117;
  --rs-surface: #141416;
  --rs-surface-2: #111113;
  --rs-line: rgba(255, 255, 255, 0.08);
  --rs-line-strong: rgba(255, 255, 255, 0.15);
  --rs-text: #f4f4f5;
  --rs-muted: #9ca3af;
  --rs-faint: rgba(255, 255, 255, 0.4);
  --rs-purple: #a78bfa;
  --rs-violet: #c084fc;
  --rs-teal: #2dd4bf;
  --rs-good: #10b981;
  --rs-warn: #f59e0b;
  --rs-bad: #ef4444;
  --rs-radius: 16px;
  --rs-radius-sm: 10px;
  --rs-font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --rs-max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.resip-theme {
  margin: 0;
  min-height: 100vh;
  background: var(--rs-bg);
  color: var(--rs-text);
  font-family: var(--rs-font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, select { font: inherit; }

.resip-container {
  width: min(100% - 32px, var(--rs-max));
  margin: 0 auto;
}
.resip-container--narrow { width: min(100% - 32px, 760px); }

/* Header */
.resip-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(12, 12, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.resip-header.is-scrolled { border-bottom-color: var(--rs-line); }
.resip-header__inner {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.resip-logo img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.resip-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 2px;
}
.resip-nav a {
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rs-faint);
  transition: .15s ease;
}
.resip-nav a:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}
.resip-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.resip-user-menu {
  position: relative;
}
.resip-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.resip-user-trigger:hover,
.resip-user-menu.is-open .resip-user-trigger {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.resip-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}
.resip-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}
.resip-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.resip-user-balance {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.resip-user-balance b {
  color: #34d399;
  font-weight: 700;
}
.resip-user-caret {
  flex: 0 0 auto;
  opacity: 0.65;
  transition: transform .2s ease;
}
.resip-user-menu.is-open .resip-user-caret {
  transform: rotate(180deg);
}
.resip-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: none;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(18, 18, 24, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}
.resip-user-menu.is-open .resip-user-dropdown {
  display: block;
}
.resip-user-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.resip-user-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.resip-user-dropdown a.is-danger {
  color: #fb7185;
}
.resip-user-dropdown hr {
  margin: 6px 4px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 767.98px) {
  .resip-user-meta {
    display: none;
  }
  .resip-user-trigger {
    padding-right: 6px;
  }
}
.resip-lang {
  display: none;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  font-size: 12px;
  font-weight: 500;
}
.resip-lang span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--rs-faint);
}
.resip-lang .is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.resip-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.resip-menu-btn span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .2s ease;
}
.resip-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.resip-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.resip-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.resip-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--rs-line);
}
.resip-mobile-nav.is-open { display: flex; }
.resip-mobile-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
.resip-mobile-nav a:hover { background: rgba(255, 255, 255, 0.05); }

@media (min-width: 900px) {
  .resip-nav { display: flex; }
  .resip-lang { display: flex; }
  .resip-menu-btn, .resip-mobile-nav { display: none !important; }
}

/* Buttons */
.resip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
}
.resip-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.resip-btn--lg { height: 48px; padding: 0 28px; font-size: 15px; }
.resip-btn--solid {
  background: #fff;
  color: #0f1117;
}
.resip-btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}
.resip-btn--ghost {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}
.resip-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.resip-btn--outline {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  backdrop-filter: blur(8px);
}
.resip-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Hero */
.resip-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 16px 56px;
}
.resip-hero__glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 420px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.22), transparent 55%),
    radial-gradient(ellipse at 30% 20%, rgba(45, 212, 191, 0.1), transparent 45%),
    radial-gradient(ellipse at 70% 10%, rgba(99, 102, 241, 0.14), transparent 50%);
  pointer-events: none;
}
.resip-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rs-muted);
  font-size: 13px;
}
.resip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rs-good);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.resip-hero__title {
  display: block;
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.resip-hero__grad {
  display: block;
  margin-top: 6px;
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(90deg, #c084fc, #a78bfa, #ddd6fe, #c084fc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: resip-grad 6s linear infinite;
}
@keyframes resip-grad {
  to { background-position: 200% center; }
}
.resip-hero__desc {
  position: relative;
  margin: 20px auto 28px;
  max-width: 680px;
  color: var(--rs-muted);
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.9;
}
.resip-hero__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.resip-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 20px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius);
  background: rgba(255, 255, 255, 0.02);
}
.resip-stats strong {
  display: block;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.resip-stats span {
  color: var(--rs-muted);
  font-size: 13px;
}
.resip-hero__chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.resip-hero__chips span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rs-muted);
  font-size: 12px;
}
.resip-hero__chips b { color: #fff; font-weight: 600; }

@media (min-width: 700px) {
  .resip-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .resip-hero { padding: 96px 24px 72px; }
}

/* Sections */
.resip-section { padding: 72px 0; }
.resip-section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.resip-kicker {
  margin: 0 0 10px;
  color: var(--rs-purple);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.resip-h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.resip-lead {
  margin: 0 0 36px;
  max-width: 640px;
  color: var(--rs-muted);
  font-size: 15px;
  line-height: 1.8;
}

.resip-feat-grid,
.resip-isp-grid,
.resip-case-grid,
.resip-asn-grid,
.resip-price-grid {
  display: grid;
  gap: 16px;
}
.resip-feat-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.resip-feat-grid article,
.resip-case-grid article {
  padding: 22px;
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.025);
}
.resip-feat-grid h3,
.resip-case-grid h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.resip-feat-grid p,
.resip-case-grid p {
  margin: 0;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.7;
}

.resip-isp-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.resip-isp-card {
  padding: 24px;
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-line);
  background: var(--rs-surface);
}
.resip-isp-card img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.resip-isp-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.resip-isp-card h3 span {
  display: block;
  margin-top: 2px;
  color: var(--rs-muted);
  font-size: 13px;
  font-weight: 500;
}
.resip-isp-tag {
  margin: 0 0 12px !important;
  color: var(--rs-teal) !important;
  font-size: 13px !important;
  font-weight: 600;
}
.resip-isp-card p {
  margin: 0 0 14px;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.7;
}
.resip-isp-card em {
  display: inline-block;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.resip-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.resip-steps > div {
  padding: 24px;
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.025);
}
.resip-steps span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  font-weight: 800;
  margin-bottom: 14px;
}
.resip-steps h3 { margin: 0 0 8px; font-size: 18px; }
.resip-steps p { margin: 0; color: var(--rs-muted); font-size: 14px; }

/* Pricing */
.resip-price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 800px) {
  .resip-price-grid { grid-template-columns: 1fr; }
}
.resip-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--rs-line);
  background: var(--rs-surface);
}
.resip-price-card.is-hot {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.15), 0 20px 50px rgba(0, 0, 0, 0.35);
}
.resip-hot {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.resip-price-card h3 { margin: 4px 0 0; font-size: 20px; }
.resip-price-sub { margin: 0; color: var(--rs-purple); font-size: 13px; font-weight: 600; }
.resip-price-card > p { margin: 0; color: var(--rs-muted); font-size: 13px; line-height: 1.6; }
.resip-price-line { font-size: 12px !important; }
.resip-price-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0;
  flex-wrap: wrap;
}
.resip-price-num b {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.resip-price-num span { color: var(--rs-muted); font-size: 14px; }
.resip-price-list {
  color: var(--rs-muted);
  font-size: 16px;
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0.75;
  margin-right: 2px;
}
.resip-price-list[hidden] { display: none !important; }
.resip-badge-soft {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.12);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 600;
}
.resip-pick { display: flex; flex-direction: column; gap: 8px; }
.resip-pick label {
  font-size: 12px;
  color: var(--rs-muted);
  font-weight: 600;
}
.resip-https-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rs-line-strong);
  border-radius: 10px;
  background: #0c0c10;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  user-select: none;
}
.resip-https-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--rs-teal, #2dd4bf);
  cursor: pointer;
}
.resip-https-check .resip-https-fee {
  margin-left: 4px;
  color: var(--rs-teal, #2dd4bf);
  font-weight: 600;
}
.resip-https-check.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.resip-https-check.is-disabled input {
  cursor: not-allowed;
}
.resip-pick select {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--rs-line-strong);
  background: #0c0c10;
  color: #fff;
  padding: 0 12px;
  outline: none;
}
.resip-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resip-seg button {
  flex: 1;
  min-width: 72px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--rs-line);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.resip-seg button span {
  display: block;
  font-size: 10px;
  color: var(--rs-teal);
  font-weight: 500;
}
.resip-seg button.is-on {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.12);
  color: #fff;
}
.resip-buy { width: 100%; margin-top: 8px; height: 44px; }
.resip-price-tip {
  margin: 0 !important;
  text-align: center;
  font-size: 12px !important;
  color: var(--rs-faint) !important;
}

/* ASN */
.resip-asn-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.resip-asn {
  padding: 22px;
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.025);
}
.resip-asn.is-good { border-color: rgba(16, 185, 129, 0.35); }
.resip-asn.is-warn { border-color: rgba(245, 158, 11, 0.35); }
.resip-asn.is-bad { border-color: rgba(239, 68, 68, 0.35); }
.resip-asn__head span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--rs-good);
  font-size: 11px;
  font-weight: 700;
}
.resip-asn h3 { margin: 0 0 4px; font-size: 18px; }
.resip-asn__head p { margin: 0 0 10px; color: var(--rs-muted); font-size: 13px; }
.resip-asn > p { margin: 0 0 14px; color: var(--rs-muted); font-size: 14px; }
.resip-asn ul { list-style: none; margin: 0 0 14px; padding: 0; }
.resip-asn li { margin-bottom: 12px; }
.resip-asn li b { display: block; font-size: 13px; margin-bottom: 2px; }
.resip-asn li span { color: var(--rs-muted); font-size: 12px; line-height: 1.5; }
.resip-asn h4 { margin: 0 0 8px; font-size: 13px; color: rgba(255,255,255,.8); }
.resip-asn__feat li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px !important;
  color: var(--rs-muted);
  font-size: 13px;
}
.resip-asn__feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

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

/* FAQ */
.resip-faq details {
  border: 1px solid var(--rs-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 10px;
  overflow: hidden;
}
.resip-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
}
.resip-faq summary::-webkit-details-marker { display: none; }
.resip-faq p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.75;
}
.resip-compliance {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.03);
}
.resip-compliance h3 { margin: 0 0 8px; font-size: 16px; }
.resip-compliance p { margin: 0 0 12px; color: var(--rs-muted); font-size: 13px; line-height: 1.7; }
.resip-compliance a { color: var(--rs-purple); font-size: 13px; font-weight: 600; }

/* Footer */
.resip-footer {
  border-top: 1px solid var(--rs-line);
  padding: 18px 0;
  background: #09090b;
}
.resip-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.resip-footer__brand p {
  margin: 14px 0 0;
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
}
.resip-footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.resip-footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--rs-muted);
  font-size: 13px;
}
.resip-footer a:hover { color: #fff; }
.resip-footer__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--rs-faint);
  font-size: 12px;
}

.resip-simple-page {
  max-width: 720px;
  margin: 80px auto;
  padding: 24px;
  text-align: center;
  color: var(--rs-muted);
}

/* Checkout modal */
body.resip-checkout-open { overflow: hidden; }
.resip-checkout {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.resip-checkout[hidden] { display: none !important; }
.resip-checkout__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}
.resip-checkout__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--rs-line);
  background: linear-gradient(180deg, #16161a, #111114);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  animation: resip-fade-up .28s ease;
}
@keyframes resip-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.resip-checkout__x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rs-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.resip-checkout__x:hover { color: #fff; background: rgba(255,255,255,0.06); }
.resip-checkout__panel h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}
.resip-checkout__meta {
  margin: 0 0 16px;
  color: var(--rs-muted);
  font-size: 0.88rem;
}
.resip-checkout__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.22);
}
.resip-checkout__price span { color: var(--rs-muted); font-size: 0.86rem; }
.resip-checkout__price b {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--rs-violet);
  letter-spacing: -0.02em;
}
.resip-checkout__label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--rs-muted);
  font-weight: 600;
}
.resip-checkout__pays {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.resip-checkout__pay {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--rs-line);
  background: rgba(255,255,255,0.02);
  color: var(--rs-text);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.resip-checkout__pay img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.resip-checkout__pay span { flex: 1; font-weight: 600; font-size: 0.92rem; }
.resip-checkout__pay em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--rs-teal);
}
.resip-checkout__pay.is-on {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.1);
}
.resip-checkout__pay:hover { border-color: rgba(255,255,255,0.2); }
.resip-checkout__loading,
.resip-checkout__empty {
  padding: 16px;
  text-align: center;
  color: var(--rs-muted);
  font-size: 0.88rem;
  border: 1px dashed var(--rs-line);
  border-radius: 12px;
}
.resip-checkout__coupon { margin-bottom: 14px; }
.resip-checkout__coupon input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.92rem;
}
.resip-checkout__coupon input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
}
.resip-checkout__coupon input::placeholder { color: rgba(255,255,255,0.35); }
.resip-checkout__coupon-tip {
  margin: 8px 0 0;
  font-size: 0.82rem;
}
.resip-checkout__coupon-tip.is-ok { color: #5bd6a2; }
.resip-checkout__coupon-tip.is-err { color: #f87171; }
.resip-checkout__captcha { margin-bottom: 12px; }
.resip-checkout__captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.resip-checkout__captcha-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--rs-line);
  background: rgba(0,0,0,0.25);
  color: #fff;
  outline: none;
}
.resip-checkout__captcha-row input:focus {
  border-color: rgba(167, 139, 250, 0.5);
}
.resip-checkout__captcha-row img {
  height: 42px;
  width: 110px;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  object-fit: cover;
}
.resip-checkout__err {
  margin: 0 0 12px;
  color: #f87171;
  font-size: 0.84rem;
}
.resip-checkout__submit {
  width: 100%;
  justify-content: center;
}
.resip-checkout__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .resip-footer__grid { grid-template-columns: 1fr 1fr; }
  .resip-footer__brand { grid-column: 1 / -1; }
  .resip-header__actions .resip-btn--ghost { display: none; }
}
@media (max-width: 560px) {
  .resip-footer__grid { grid-template-columns: 1fr; }
  .resip-btn--lg { width: 100%; }
}
