/* Clean Minimalist Modern UI with Golden Stars Video Background */
:root {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --accent-blue: #0088CC;
  --accent-blue-hover: #0077B5;
  --accent-gold: #D97706;
  --accent-purple: #7E22CE;
  --border-light: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 28px -4px rgba(0,0,0,0.12), 0 4px 8px -2px rgba(0,0,0,0.06);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
  user-select: none;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-main);
  padding-bottom: 8px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  height: 60px;
  box-sizing: border-box;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.profile-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.profile-header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-header-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

.profile-header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  max-width: 170px;
}

.profile-header-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.profile-header-name-row .user-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prem-badge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 1px 4px rgba(168, 85, 247, 0.4);
  flex-shrink: 0;
}

.profile-chevron-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 2px;
}

.profile-header-btn:hover .profile-chevron-wrap {
  color: var(--accent);
  transform: translateY(1px);
}

.header-right-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-brand-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-blue, #009bde);
  background: rgba(0, 155, 222, 0.08);
  border: 1px solid rgba(0, 155, 222, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  user-select: none;
}

.user-profile { display: flex; align-items: center; gap: 12px; }
.avatar-wrap { position: relative; }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  display: block;
}

.avatar-premium-glow {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  animation: pulse-glow 2s infinite ease-in-out;
}

.avatar-prem-star-img { width: 14px; height: 14px; object-fit: contain; }

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #C084FC); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 8px #9333EA); }
}

.user-info { display: flex; flex-direction: column; }
.user-name-row { display: flex; align-items: center; gap: 6px; }
.user-name { font-weight: 700; font-size: 15px; color: var(--text-primary); }

.premium-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FAF5FF;
  border: 1px solid #E9D5FF;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  color: #7E22CE;
}

.tag-prem-star-img { width: 12px; height: 12px; object-fit: contain; vertical-align: middle; }
.user-handle { font-size: 12px; color: var(--text-secondary); }

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: var(--bg-card-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--bg-card);
  color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

/* Tabs */
.tab-nav {
  display: flex;
  margin: 14px 20px 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  gap: 4px;
}

.tab-item {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-item.active {
  background: #F0F9FF;
  color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
  border: 1px solid #BAE6FD;
}

.tab-lottie-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.payment-choice[data-method="card"] { grid-column: 1 / -1; }
.payment-choice .payment-card-icons { display: flex; align-items: center; gap: 5px; width: auto; flex: 0 0 auto; }
.payment-card-logo { display: grid; place-items: center; width: 28px; height: 28px; }
.payment-card-logo svg { width: 100% !important; height: 100% !important; }

.main-content { padding: 12px 20px; flex: 1; position:relative; isolation:isolate; }
.main-content > .catalog-section,.main-content > .catalog-status { position:relative; z-index:1; }

.catalog-section {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

/* Golden Stars Falling Video Background */
.stars-catalog-section {
  position: relative;
  isolation: isolate;
  background: rgba(255,249,235,.5);
}

.stars-video-bg-container {
  position: fixed;
  top: 148px;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%,480px);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-lg);
}

.stars-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.3) brightness(1.05);
}

.stars-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.45) 100%);
  pointer-events: none;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.section-title-row h2 { font-size: 15px; font-weight: 700; color: var(--text-primary); }

.rate-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-gold);
  background: #FEF3C7;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #FDE68A;
}

.premium-badge-pill { color: #7E22CE; background: #F3E8FF; border-color: #E9D5FF; }

/* Packages Grid (Stars) */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.package-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.package-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.package-card.selected {
  border-color: var(--accent-blue);
  background: #F0F9FF;
  box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.25), var(--shadow-md);
}

.card-star-anim-wrap {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(245, 158, 11, 0.35));
  transition: transform 0.2s ease;
}

.package-card.selected .card-star-anim-wrap { transform: scale(1.15); }
.card-stars-count { font-size: 13px; font-weight: 800; color: var(--text-primary); margin-bottom: 2px; }
.card-stars-label { font-size: 9.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

.card-price {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-blue);
  background: #E0F2FE;
  padding: 3px 4px;
  border-radius: var(--radius-full);
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

/* Custom Stars Stepper */
.custom-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.custom-card.selected {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.2);
}

.custom-header { display: flex; flex-direction: column; margin-bottom: 12px; }
.custom-title { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.custom-hint { font-size: 12px; color: var(--text-secondary); }

.stepper-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.step-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-card-subtle);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.step-btn:active { background: #E2E8F0; transform: scale(0.96); }

.input-wrap { flex: 1; position: relative; display: flex; align-items: center; }

.input-star-anim {
  position: absolute;
  left: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  padding: 0 12px 0 38px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-family);
  background: var(--bg-card);
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.12);
}

.custom-price-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
}

.custom-price-preview strong { font-size: 15px; font-weight: 800; color: var(--accent-blue); }

/* Premium Grid */
.premium-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.premium-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.premium-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.premium-card.selected {
  border-color: #9333EA;
  background: #FAF5FF;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.25), var(--shadow-md);
}

.premium-left { display: flex; align-items: center; gap: 14px; }

.prem-star-3d-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(168, 85, 247, 0.35));
  transition: transform 0.2s ease;
}

.premium-card.selected .prem-star-3d-img { transform: scale(1.12); }
.prem-info { display: flex; flex-direction: column; }
.prem-months { font-size: 15px; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }

.discount-pill {
  font-size: 11px;
  font-weight: 800;
  color: #DC2626;
  background: #FEE2E2;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.prem-desc { font-size: 12px; color: var(--text-secondary); }
.prem-price { font-size: 15px; font-weight: 800; color: #7E22CE; }
.lottie-host{position:relative}
.lottie-placeholder{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.lottie-native{display:grid;place-items:center;width:100%;height:100%}
.lottie-player{position:absolute;inset:0;display:block}
.prem-price { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.coupon-retail-price { font-size: 10px; font-weight: 500; color: #8492a6; }
.coupon-countdown { font-size: 10px; font-weight: 600; color: #059669; white-space: nowrap; }
.has-wheel-coupon { border-color: #a7e0c7; background: #f3fcf7; }
.wheel-coupon-pill { background: #d1fae5; color: #047857; }
.card-price .coupon-retail-price, .card-price .coupon-countdown { display: block; }
#bottomCouponCountdown { display: block; margin-top: 3px; }
.profile-coupons-list { display: flex; flex-direction: column; gap: 10px; }
.profile-coupon-art { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; background: #f5efff; }
.profile-coupon-art img { width: 32px; height: 32px; }
.profile-coupon-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-coupon-saving { font-size: 11px; color: #059669; font-weight: 600; }
.profile-coupon-item .live-countdown-wrap { flex-wrap: wrap; gap: 5px; }
.profile-coupon-item .coupon-countdown { font-size: 17px; color: #d97706; }

/* Bottom Action Bar */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  z-index: 99;
  pointer-events: auto;
}

.bottom-price-info { display: flex; flex-direction: column; }
.bottom-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.bottom-price { font-size: 18px; font-weight: 800; color: var(--accent-blue); }

.btn-primary-cta {
  flex: 1;
  height: 48px;
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 100;
}

.btn-primary-cta:hover { background: var(--accent-blue-hover); }
.btn-primary-cta:active { transform: scale(0.98); }
.arrow-right-icon { width: 18px; height: 18px; }

/* Modal Bottom Sheet */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 28px;
  box-shadow: var(--shadow-lg);
  animation: sheet-slide-up 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

@keyframes sheet-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: #CBD5E1;
  border-radius: var(--radius-full);
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.sheet-header h3 { font-size: 16px; font-weight: 800; color: var(--text-primary); }

.sheet-close-btn {
  border: none;
  background: var(--bg-card-subtle);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Summary Card */
.modal-summary-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.summary-icon-wrap {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.modal-item-anim {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(245, 158, 11, 0.4));
}

.summary-details { flex: 1; display: flex; flex-direction: column; }
.summary-item-name { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.summary-sub { font-size: 11.5px; color: var(--text-secondary); }
.summary-price { font-size: 15px; font-weight: 800; color: var(--accent-blue); }

/* Modal Recipient Section */
.modal-recipient-block { margin-bottom: 16px; flex-shrink: 0; }
.methods-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); display: block; margin-bottom: 8px; }

.recipient-toggle {
  display: flex;
  background: var(--bg-card-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
  margin-bottom: 10px;
}

.rec-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rec-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.rec-lottie-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-preview-card {
  background: #F8FAFC;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-avatar-wrap { position: relative; }
.preview-avatar { width: 40px; height: 40px; font-size: 14px; }
.friend-avatar { background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%); color: #FFFFFF; }

.preview-info { flex: 1; display: flex; flex-direction: column; }
.preview-name-row { display: flex; align-items: center; gap: 6px; }
.preview-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.preview-handle { font-size: 12px; color: var(--text-secondary); }

.verified-pill {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background: #D1FAE5;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.gift-badge {
  font-size: 11px;
  font-weight: 700;
  color: #7C3AED;
  background: #EDE9FE;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.friend-prem-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #7E22CE;
  background: #F3E8FF;
  border: 1px solid #E9D5FF;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.not-found-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #DC2626;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Friend Input */
.friend-input-group { display: flex; flex-direction: column; gap: 8px; }
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-prefix { position: absolute; left: 12px; font-size: 15px; font-weight: 700; color: var(--text-muted); }

.input-with-icon input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  padding: 0 12px 0 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-family);
  outline: none;
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.12);
}

.input-error-border {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-premium-border {
  border-color: #F87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

/* Competitor-Style Premium Card */
.competitor-prem-card {
  background: #EBF8FF;
  border: 1.5px solid #BAE6FD;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 8px;
  animation: slide-down 0.2s ease-out;
}

.comp-prem-icon-wrap {
  width: 38px;
  height: 38px;
  background: #BAE6FD;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-prem-star {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.comp-prem-content {
  display: flex;
  flex-direction: column;
}

.comp-prem-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0369A1;
}

.comp-prem-desc {
  font-size: 11.5px;
  font-weight: 600;
  color: #0284C7;
  line-height: 1.3;
}

/* Premium / User Warning Box */
.prem-warning-box {
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  animation: slide-down 0.2s ease-out;
}

.warning-icon { font-size: 18px; line-height: 1.2; }
.warning-text { font-size: 12.5px; font-weight: 600; color: #991B1B; line-height: 1.4; }

.btn-disabled-restriction {
  background: #94A3B8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.75 !important;
}

.pay-option-disabled {
  opacity: 0.45 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  border-color: var(--border-light) !important;
  background: var(--bg-card-subtle) !important;
}

/* Payment Methods */
.payment-methods-block { margin-bottom: 20px; flex-shrink: 0; }
.payment-options { display: flex; flex-direction: column; gap: 8px; }

.pay-option {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-card);
}

.pay-option.active {
  border-color: var(--accent-blue);
  background: #F0F9FF;
  box-shadow: 0 0 0 1.5px rgba(0, 136, 204, 0.2);
}

.pay-logo-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.pay-logo-img { width: 36px; height: 36px; object-fit: contain; }
.tab-item:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(1); }
.pay-info { flex: 1; display: flex; flex-direction: column; }
.pay-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.pay-sub { font-size: 12px; color: var(--text-secondary); }

.pay-option input[type="radio"] {
  accent-color: var(--accent-blue);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Modal Pay Button */
.modal-pay-btn {
  width: 100%;
  flex: 0 0 auto;
  min-height: 56px;
  height: 56px;
  padding: 14px 18px;
  margin-top: 18px;
  font-size: 16px;
  border-radius: 14px;
  flex-shrink: 0;
}

/* Utilities */
.catalog-status { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
.catalog-status:empty { display: none; }
.btn-primary-cta:disabled { opacity: .65; cursor: not-allowed; }
.lottie-fallback { display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.card-star-anim-wrap.lottie-fallback { font-size: 32px; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stars-bg-video {
    display: none;
  }
}

.rental-card{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--text-primary);font:inherit;cursor:pointer}.rental-icon{font-size:42px}.rental-days,.card-invoice{display:flex;flex-direction:column;gap:14px;margin-top:20px}.rental-days input{padding:14px;border:1px solid #5555;border-radius:12px;background:transparent;color:inherit}.card-invoice{gap:8px;margin-top:12px;padding:12px;border:1px solid #5555;border-radius:16px}.card-invoice>strong{font-size:28px}.card-invoice code{font-size:18px}.rental-status{line-height:1.6;opacity:.8;margin:16px 0}.hidden{display:none!important}
.rental-toolbar,.rental-trait-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rental-toolbar label,.rental-trait-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--text-secondary);min-width:0}
.rental-toolbar select,.rental-trait-filters select{width:100%;min-width:0;min-height:44px;padding:10px 8px;border:1px solid var(--border-light);border-radius:10px;background:var(--bg-card-subtle);color:var(--text-primary);font:inherit;font-size:12px}
.rental-filter-panel{margin-top:12px;border:1px solid var(--border-light);border-radius:12px;padding:12px;background:var(--bg-card-subtle)}
.rental-filter-panel summary{cursor:pointer;font-size:13px;font-weight:600}.rental-filter-hint{font-size:12px;color:var(--text-secondary);margin:10px 0}
.rental-trait-filters{grid-template-columns:1fr}.rental-trait-filters select:disabled{opacity:.55}.rental-reset{background:none;border:0;color:var(--accent-blue);padding:12px 0 0;font:inherit;font-size:12px;cursor:pointer}
.rental-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.rental-card{gap:6px;padding:0 0 12px;overflow:hidden;text-align:left;align-items:stretch;min-width:0}
.rental-art{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;background:var(--bg-card-subtle);overflow:hidden}
.rental-art img{width:100%;height:100%;object-fit:cover}.rental-art .rental-icon{font-size:48px}
.rental-card>strong,.rental-card>span{margin:0 10px}.rental-card>strong{font-size:12px;overflow-wrap:anywhere}.rental-trait{color:var(--text-secondary);font-size:10px}.rental-price{font-size:12px;font-weight:700;color:var(--accent-blue)}.rental-term{font-size:10px;color:var(--text-secondary)}
.rental-selection{display:grid;grid-template-columns:76px 1fr;gap:12px;padding:14px;margin-top:18px;border:1px solid var(--accent-blue);border-radius:14px;background:var(--bg-card-subtle)}
.rental-preview{border-radius:12px;overflow:hidden;align-self:start}.rental-selection-info{min-width:0}.rental-selection-info strong{font-size:14px;overflow-wrap:anywhere}.rental-selection-info p,.rental-selection-info span{font-size:11px;color:var(--text-secondary)}
.rental-selection .rental-days{grid-column:1/-1;gap:6px;margin-top:0;font-size:12px}.rental-selection .rental-days input{min-height:44px;font:inherit;background:white;border-color:var(--border-light)}
#rentalMore,#rentalRetry{width:100%;margin:8px 0}

.rental-filter-search{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--border-light);border-radius:10px;background:var(--bg-card-subtle);color:var(--text-primary);font:inherit;font-size:13px}
.rental-visual-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:290px;overflow-y:auto;overscroll-behavior:contain;padding:3px}
.rental-filter-option{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:8px 5px;border:1px solid var(--border-light);border-radius:12px;background:var(--bg-card-subtle);color:var(--text-primary);font:inherit;font-size:11px;cursor:pointer}
.rental-filter-option>span{overflow-wrap:anywhere}.rental-filter-option small{font-size:10px;color:var(--text-secondary)}
.rental-filter-option .rental-art{width:64px;height:64px;margin:0;border-radius:9px;overflow:hidden}.rental-filter-option .rental-art img{width:100%;height:100%;object-fit:contain}
.rental-filter-placeholder{display:grid;place-items:center;width:64px;height:64px;font-size:25px;background:var(--bg-card-subtle);border-radius:9px;color:var(--text-secondary)}
.rental-filter-option.selected{border-color:var(--accent-blue);box-shadow:0 0 0 1px var(--accent-blue)}
.rental-filter-option:focus-visible,.rental-filter-search:focus-visible{outline:2px solid var(--accent-blue);outline-offset:2px}
.rental-trait-filters label{display:block}.rental-trait-filters label>span{display:block;margin-bottom:7px}.rental-filter-search{margin-bottom:8px}

.rental-trait-field{font-size:12px;color:var(--text-secondary);min-width:0}.rental-trait-field>span{display:block;margin-bottom:7px}
.rental-backdrop-picker{border:1px solid var(--border-light);border-radius:12px;background:var(--bg-card-subtle)}
.rental-backdrop-picker summary{display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 12px;list-style:none;cursor:pointer;color:var(--text-primary)}
.rental-backdrop-picker summary::-webkit-details-marker{display:none}.rental-backdrop-picker summary>span:last-child{margin-left:auto}
.rental-backdrop-picker summary[aria-disabled="true"]{opacity:.5;pointer-events:none}.rental-backdrop-content{padding:0 10px 10px}
.rental-backdrop-swatch{width:22px;height:22px;border-radius:7px;flex-shrink:0}
.rental-backdrop-art{display:grid;place-items:center;width:64px;height:64px;border-radius:10px;flex-shrink:0}
.rental-backdrop-art>span{font-size:30px;font-weight:600;color:rgba(255,255,255,.45);text-shadow:0 1px 6px rgba(0,0,0,.12)}

.rental-toolbar-field{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--text-secondary)}
.rental-menu{position:relative;color:var(--text-primary);font-family:inherit}
.rental-menu summary{display:flex;align-items:center;gap:6px;min-height:48px;padding:8px 10px;border:1px solid var(--border-light);border-radius:12px;background:var(--bg-card-subtle);list-style:none;cursor:pointer;font-size:12px;font-weight:500}
.rental-menu summary::-webkit-details-marker{display:none}.rental-menu[open] summary{border-color:var(--accent-blue)}
.rental-menu-choice{display:flex;align-items:center;gap:7px;min-width:0;flex:1}.rental-menu-choice>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rental-menu-arrow{flex-shrink:0;color:var(--text-secondary)}
.rental-menu-popup{position:absolute;top:calc(100% + 7px);left:0;width:min(310px,calc(100vw - 64px));padding:10px;background:var(--bg-card);border:1px solid var(--border-light);border-radius:16px;box-shadow:0 12px 32px rgba(28,55,90,.14);z-index:60}
#rentalSortMenu .rental-menu-popup{left:auto;right:0}
.rental-menu-options{max-height:340px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:3px}
.rental-menu-option{display:flex;align-items:center;gap:10px;flex-shrink:0;width:100%;min-height:46px;padding:8px;border:0;border-radius:10px;background:transparent;text-align:left;font:inherit;font-size:13px;font-weight:500;color:var(--text-primary);cursor:pointer}
.rental-menu-option[aria-pressed="true"]{background:rgba(73,170,220,.12);color:var(--accent-blue)}.rental-menu-option:hover{background:rgba(73,170,220,.08)}
.rental-menu-option-name{flex:1;min-width:0;overflow-wrap:anywhere}.rental-menu-check{width:19px;height:19px;border:1px solid var(--border-light);border-radius:6px;display:grid;place-items:center;font-size:12px;flex-shrink:0}
.rental-menu-option[aria-pressed="true"] .rental-menu-check{background:var(--accent-blue);color:white;border-color:var(--accent-blue)}
.rental-collection-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:9px;background:var(--bg-card-subtle);font-size:21px;overflow:hidden}.rental-collection-icon img{width:100%;height:100%;object-fit:contain}
.rental-menu-choice .rental-collection-icon{width:28px;height:28px;font-size:17px;border-radius:7px}
.rental-menu summary:focus-visible,.rental-menu-option:focus-visible{outline:2px solid var(--accent-blue);outline-offset:2px}

.rental-menu-popup{display:flex;flex-direction:column;max-height:var(--rental-menu-height,380px)}.rental-menu-popup>.rental-filter-search{flex-shrink:0}.rental-menu-options{min-height:0;flex:1}

#sectionRental{overflow:visible}

#tabStars{position:relative;overflow:hidden;isolation:isolate}#tabStars>.tab-lottie-icon,#tabStars>[data-i18n]{position:relative;z-index:1}
#tabStars .stars-video-bg-container{position:absolute;inset:0;width:100%;height:100%;transform:none;border-radius:inherit;z-index:0}
#tabStars .stars-bg-video{opacity:.28}#tabStars .stars-video-overlay{background:rgba(255,255,255,.25)}
.prem-custom-emoji{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0}.prem-custom-emoji svg{width:100%!important;height:100%!important}
.rental-menu-shade,.rental-collection-scroll{display:none}
@media(min-width:768px){
 #rentalCollectionMenu .rental-menu-popup{position:fixed;top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:420px;max-width:calc(100vw - 48px);max-height:var(--rental-menu-height,600px);padding:16px}
 #rentalCollectionMenu .rental-menu-options{max-height:none;scrollbar-width:auto;scrollbar-color:#8bbbd5 #edf4f9;padding-right:8px}
 #rentalCollectionMenu .rental-menu-options::-webkit-scrollbar{width:12px}#rentalCollectionMenu .rental-menu-options::-webkit-scrollbar-track{background:#edf4f9;border-radius:8px}#rentalCollectionMenu .rental-menu-options::-webkit-scrollbar-thumb{background:#8bbbd5;border-radius:8px;border:2px solid #edf4f9}
 #rentalCollectionMenu[open] .rental-menu-shade{display:block;position:fixed;inset:0;background:rgba(20,39,64,.18);z-index:59}
 .rental-collection-scroll{display:flex;gap:8px;padding-top:10px;flex-shrink:0}.rental-collection-scroll button{flex:1;min-height:40px;border:1px solid var(--border-light);border-radius:10px;background:var(--bg-card-subtle);color:var(--accent-blue);font:inherit;font-size:20px;cursor:pointer}
 #rentalCollectionMenu .rental-menu-option{min-height:54px;font-size:14px}
}

.stars-tab-background{position:absolute;inset:0;pointer-events:none;overflow:hidden;background:linear-gradient(130deg,rgba(255,214,103,.12),rgba(255,245,210,.05))}
.stars-tab-background>span{position:absolute;color:#ffc947;opacity:.22;font-size:18px;animation:starsTabFloat 6s ease-in-out infinite}.stars-tab-background>span:nth-child(1){left:10%;top:8%}.stars-tab-background>span:nth-child(2){left:48%;top:45%;animation-delay:-2s;font-size:24px}.stars-tab-background>span:nth-child(3){right:10%;top:18%;animation-delay:-4s}
@keyframes starsTabFloat{0%,100%{transform:translateY(-5px) rotate(-12deg)}50%{transform:translateY(8px) rotate(12deg)}}
@media(prefers-reduced-motion:reduce){.stars-tab-background>span{animation:none}}
.card-payment-wait{display:inline-flex;align-items:center;gap:8px}.card-payment-wait::before{content:'';width:14px;height:14px;border:2px solid #dceef8;border-top-color:var(--accent-blue);border-radius:50%;animation:paymentWait 1s linear infinite}
@keyframes paymentWait{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.card-payment-wait::before{animation:none}}

.invoice-value-row{display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;column-gap:8px;row-gap:4px;min-width:0;padding:10px;border:1px solid var(--border-color,#dce7ef);border-radius:14px}.invoice-value-label{grid-column:1;font-size:11px;font-weight:700;color:var(--text-secondary)}.invoice-amount-row{background:#edf8ff;border-color:#b8e1f8}.invoice-value-row strong{grid-column:1;font-size:clamp(18px,5vw,24px);line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.card-invoice .invoice-value-row code{grid-column:1;font-size:clamp(13px,3.6vw,16px);overflow-wrap:anywhere;user-select:all}.invoice-copy{grid-column:2;grid-row:1 / 3;display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:44px;padding:8px 5px;border:1px solid var(--border-color,#dce7ef);border-radius:11px;background:var(--bg-secondary,#f1f6fa);color:var(--accent-blue,#009bde);font:inherit;font-size:11px;line-height:1.25;font-weight:700;cursor:pointer}.invoice-copy svg{flex:0 0 18px;width:18px;height:18px}.invoice-amount-row .invoice-copy{background:var(--accent-blue,#009bde);border-color:transparent;color:#fff}.invoice-copy.copied{color:#137749;background:#e4f9ef}.invoice-copy:disabled{opacity:.5;cursor:default}.invoice-copy:focus-visible{outline:2px solid #009bde;outline-offset:2px}.invoice-amount-breakdown{margin:0;font-size:12px;line-height:1.55;color:var(--text-secondary)}.invoice-exact-notice{padding:9px 10px;background:#fff7e8;border:1px solid #f0daab;border-radius:12px;color:#73551c}.invoice-exact-notice strong{font-size:12px}.invoice-exact-notice p{margin:3px 0 0;font-size:12px;line-height:1.4}.invoice-card-holder{font-size:13px;color:var(--text-secondary)}

.session-recovery{margin-top:16px;padding:16px;background:#fff6e5;border:1px solid #f3dba6;border-radius:14px;line-height:1.5;color:#65491d}.session-recovery p{margin:0 0 12px}.session-recovery button{width:100%;min-height:48px;border:1px solid #e0bd76}

.current-card-order{display:flex;flex-direction:column;gap:7px;width:calc(100% - 40px);margin:14px 20px 0;padding:16px;text-align:left;font:inherit;color:var(--text-primary);background:#edf8ff;border:1px solid #b8e1f8;border-radius:16px;cursor:pointer}.current-card-order strong{font-size:14px}.current-card-order span{font-size:13px;color:var(--accent-blue)}.invoice-countdown{font-weight:700;color:var(--accent-blue)}.card-invoice .rec-btn{min-height:48px}.invoice-dismiss{border:1px solid #dce7ef}

.payment-method-picker{margin-top:20px}.payment-method-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.payment-choice{display:flex;align-items:center;gap:10px;min-height:66px;padding:12px;border:1px solid #dce7ef;border-radius:14px;background:var(--bg-card);color:var(--text-primary);text-align:left;font:inherit;cursor:pointer}.payment-choice.active{border-color:var(--accent-blue);background:#edf8ff}.payment-choice[data-unavailable=true]{background:#f6f8fb;color:var(--text-secondary)}.payment-choice strong,.payment-choice small{display:block}.payment-choice small{font-size:10px;margin-top:4px}.payment-choice-icon{width:28px;height:28px;flex:0 0 28px}.payment-choice-icon img,.payment-choice-icon video{width:100%;height:100%;object-fit:contain}.payment-method-note{font-size:12px;line-height:1.5;color:var(--text-secondary);margin:10px 0}.payment-method-note:empty{display:none}
.delivery-progress{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:24px 16px;border-radius:16px;background:linear-gradient(135deg,#eaf8ff,#f2edff);color:var(--text-primary)}.delivery-progress p{margin:0;font-size:13px;line-height:1.5}.delivery-orbit{position:relative;width:60px;height:60px;display:grid;place-items:center;color:var(--accent-blue);font-size:26px}.delivery-orbit:before{content:'';position:absolute;inset:0;border:3px solid #c9eafb;border-top-color:var(--accent-blue);border-right-color:#a079e8;border-radius:50%;animation:delivery-spin 1.4s linear infinite}.delivery-steps{display:flex;gap:10px;width:100%}.delivery-steps span{flex:1;padding-top:10px;border-top:3px solid #dce5ef;font-size:11px}.delivery-steps .done{border-color:#36ba90;color:#178966}.delivery-steps .running{border-color:var(--accent-blue);animation:delivery-pulse 1.5s ease-in-out infinite}.delivery-progress.completed .delivery-orbit:before,.delivery-progress.failed .delivery-orbit:before{animation:none;border-color:#36ba90}.delivery-progress.failed .delivery-orbit:before{border-color:#e6a544}.delivery-progress.failed{background:#fff7e8}.delivery-support-code{font-size:12px;overflow-wrap:anywhere;user-select:all}.delivery-progress button{width:100%;min-height:48px}@keyframes delivery-spin{to{transform:rotate(360deg)}}@keyframes delivery-pulse{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){.delivery-orbit:before,.delivery-steps .running{animation:none}}

.prem-warning-box.premium-note{background:#f5f2fd;border:1px solid #e0d8f3;color:#716096;align-items:center}.premium-note .warning-text{color:#716096;font-weight:500}.premium-note .warning-icon{color:#9370cd;font-size:21px}.premium-gift-action{display:block;margin-top:10px;padding:0;border:0;background:none;font:inherit;font-size:13px;font-weight:700;color:#8057bd;cursor:pointer}.competitor-prem-card{background:#f5f2fd;border-color:#e0d8f3}.comp-prem-title,.comp-prem-desc{color:#716096}.premium-updates{display:grid;gap:12px;margin-top:26px}.premium-updates h3{font-size:14px;color:var(--text-secondary);margin:0 0 2px}.update-card{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:94px;padding:18px 20px;border:0;border-radius:20px;color:#fff;text-align:left;font:inherit;cursor:pointer;overflow:hidden;position:relative}.update-card strong,.update-card small{display:block;position:relative;z-index:1}.update-card strong{font-size:14px;font-weight:800;line-height:1.4}.update-card small{font-size:12px;margin-top:6px;line-height:1.45;opacity:.94}.update-card:after{content:'✧';position:absolute;right:85px;top:5px;font-size:38px;opacity:.24}.update-rental{background:linear-gradient(110deg,#20b8a0,#58c8b6)}.update-wheel{background:linear-gradient(110deg,#8c4de8,#a972f5)}.update-payments{background:linear-gradient(110deg,#159cf0,#5cb9f9)}.update-art{flex:0 0 52px;font-size:36px;filter:drop-shadow(0 4px 6px #0002)}.wheel-mini{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:6px solid #fff6;background:conic-gradient(#ffce6b 0 90deg,#bf9cf7 90deg 180deg,#a9def8 180deg 270deg,#fff0bc 270deg);color:#fff;font-size:25px}.fortune-sheet{align-items:center;gap:16px}.fortune-sheet .sheet-header{width:100%;margin:0}.fortune-description{font-size:12px;line-height:1.6;color:var(--text-secondary);margin:0;text-align:center}.fortune-art{position:relative;padding-top:20px}.fortune-pointer{position:absolute;top:0;left:50%;transform:translateX(-50%);z-index:2;font-size:28px;color:#8057bd;filter:drop-shadow(0 2px 2px #0002)}.fortune-disc{position:relative;width:246px;height:246px;border:9px solid #fff;border-radius:50%;background:conic-gradient(#ede2ff 0 90deg,#d8f0ff 90deg 180deg,#e2faf1 180deg 270deg,#fff0cd 270deg);box-shadow:0 0 0 2px #e0d8f3,0 12px 36px #7b55bf26;transition:transform 2.8s cubic-bezier(.15,.75,.15,1);display:grid;place-items:center}.fortune-disc>span{display:grid;place-items:center;width:66px;height:66px;border-radius:50%;background:#9a6bde;color:white;font-size:32px;border:5px solid #fff;box-shadow:0 4px 8px #0001}.fortune-disc i{position:absolute;font-style:normal;font-size:13px;font-weight:700;color:#716096}.fortune-disc i:nth-of-type(1){right:23px;top:54px}.fortune-disc i:nth-of-type(2){right:28px;bottom:50px}.fortune-disc i:nth-of-type(3){left:25px;bottom:50px}.fortune-disc i:nth-of-type(4){left:22px;top:54px}.fortune-result{min-height:36px;font-weight:700;font-size:14px;line-height:1.6;color:#8057bd;text-align:center;margin:0}.fortune-spin{flex:0 0 auto;width:100%;min-height:54px;background:#9464d8}.fortune-sheet>.rec-btn{width:100%;min-height:48px}.wheel-discount-notice{margin:0 0 14px;padding:12px;border-radius:12px;background:#f1eafa;color:#8057bd;font-size:13px;font-weight:600}@media(prefers-reduced-motion:reduce){.fortune-disc{transition:none}}

/* ==========================================================================
   Profile Bottom Sheet & Components (Telegram Native Design)
   ========================================================================== */

.profile-sheet {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  border-radius: 24px 24px 0 0;
  background: var(--bg-card, #ffffff);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  padding: 12px 18px 28px 18px;
  overflow: hidden;
}

.sheet-drag-handle {
  width: 38px;
  height: 4px;
  background: var(--border-light, #e2e8f0);
  border-radius: 4px;
  margin: 0 auto 12px auto;
  opacity: 0.8;
}

.profile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.profile-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-user-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.profile-user-handle {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue, #009bde);
}

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 20px;
}

.profile-lang-switcher .lang-btn {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 14px;
}

.profile-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light, #e2e8f0);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

.profile-sheet-content {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 2px 8px 2px;
  -webkit-overflow-scrolling: touch;
}

.profile-card {
  background: var(--bg-card-subtle, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

.profile-card-desc {
  font-size: 11px;
  color: var(--text-secondary, #64748b);
  margin: 2px 0 0 0;
}

.profile-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.profile-badge.badge-success {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.profile-badge.badge-neutral {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-secondary, #64748b);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.profile-timer-block {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timer-nft-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.timer-nft-icon {
  font-size: 16px;
}

.profile-rentals-list { display: flex; flex-direction: column; gap: 10px; }
.profile-rental-item .timer-nft-info { gap: 12px; min-width: 0; }
.profile-rental-art { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #f1f5f9; }
.profile-rental-art img { width: 100%; height: 100%; object-fit: contain; }
.profile-rental-details { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.profile-rental-details .timer-nft-title { overflow-wrap: anywhere; }
.profile-rental-expiry { font-size: 11px; font-weight: 500; color: #64748b; }
.profile-rental-item .live-countdown-wrap { flex-wrap: wrap; gap: 4px 8px; }
.profile-rental-item .countdown-digits { white-space: nowrap; font-size: 16px; }

.live-countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
}

.countdown-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.countdown-digits {
  font-family: 'Plus Jakarta Sans', monospace, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.countdown-digits.discount-digits {
  color: #d97706;
}

.cd-unit {
  font-size: 11px;
  margin-right: 4px;
  opacity: 0.8;
}

.cd-colon {
  opacity: 0.6;
}

.profile-empty-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.empty-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.btn-profile-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-profile-action:active {
  transform: scale(0.98);
}

.btn-profile-action.discount-action-btn {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(239, 68, 68, 0.1));
  border-color: rgba(217, 119, 6, 0.3);
  color: #d97706;
}

.profile-counter-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 155, 222, 0.1);
  color: var(--accent-blue, #009bde);
}

.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 2px;
}

.order-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 8px 12px;
  gap: 8px;
}

.order-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.order-item-icon {
  font-size: 17px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  flex-shrink: 0;
}

.order-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.order-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.order-item-date {
  font-size: 10px;
  color: var(--text-secondary, #64748b);
  margin-top: 1px;
}

.order-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.order-item-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

.order-status-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.order-status-pill.status-completed {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.order-status-pill.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.order-status-pill.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.orders-empty, .orders-loading {
  padding: 16px;
  text-align: center;
  color: var(--text-secondary, #64748b);
  font-size: 12px;
}

/* Telegram-Style Settings & Navigation Menu */
.tg-menu-section {
  margin: 6px 0;
  width: 100%;
}

.tg-menu-card {
  background: var(--bg-card-subtle, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tg-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tg-menu-item:last-child {
  border-bottom: none;
}

.tg-menu-item:hover {
  background: rgba(0, 0, 0, 0.025);
}

.tg-menu-item:active {
  background: rgba(0, 0, 0, 0.05);
}

.tg-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tg-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tg-menu-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.tg-menu-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-menu-sub {
  font-size: 11px;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-menu-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tg-menu-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.tg-menu-arrow {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  line-height: 1;
}

.tg-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(0, 155, 222, 0.08);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-blue, #009bde);
}

.tg-lang-opt {
  opacity: 0.65;
  transition: opacity 0.2s, font-weight 0.2s;
}

.tg-lang-opt.active {
  opacity: 1;
  font-weight: 900;
  text-decoration: underline;
}

.tg-lang-sep {
  opacity: 0.4;
  font-size: 9px;
}

/* Public Offer Modal */
.offer-sheet {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  padding: 18px 20px 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.offer-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--text-primary, #0f172a);
}

.offer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-bottom: 16px;
}

.offer-text-block {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary, #475569);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-text-block p {
  margin: 0;
}

.offer-close-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: var(--accent-blue, #009bde);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.offer-close-btn:active {
  opacity: 0.85;
}

