diff --git a/miniapp/index.html b/miniapp/index.html index ca90e322..a65c1a08 100644 --- a/miniapp/index.html +++ b/miniapp/index.html @@ -506,7 +506,6 @@ cursor: pointer; transition: all 0.2s ease; min-width: 0; - position: relative; } .subscription-settings-toggle:hover:not(.disabled) { @@ -680,262 +679,6 @@ font-weight: 600; } - /* Subscription purchase – traffic */ - #subscriptionPurchaseTrafficSection .subscription-purchase-options { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); - gap: 12px; - } - - #subscriptionPurchaseTrafficSection .subscription-settings-toggle { - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; - gap: 12px; - padding: 16px; - border-radius: var(--radius-lg); - border: 1.5px solid rgba(var(--primary-rgb), 0.15); - background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.01)); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); - } - - #subscriptionPurchaseTrafficSection .subscription-settings-toggle:hover:not(.disabled) { - transform: translateY(-2px); - box-shadow: var(--shadow-sm); - } - - #subscriptionPurchaseTrafficSection .subscription-settings-toggle.active { - border-color: transparent; - color: var(--text-primary); - background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.08)); - box-shadow: var(--shadow-md); - } - - #subscriptionPurchaseTrafficSection .subscription-settings-toggle.disabled { - opacity: 0.65; - backdrop-filter: saturate(90%); - } - - #subscriptionPurchaseTrafficSection .subscription-settings-toggle-label { - gap: 8px; - width: 100%; - } - - #subscriptionPurchaseTrafficSection .subscription-settings-toggle-title { - font-size: 15px; - font-weight: 700; - white-space: normal; - } - - #subscriptionPurchaseTrafficSection .subscription-settings-toggle-meta { - display: flex; - flex-direction: column; - align-items: flex-start; - gap: 6px; - width: 100%; - color: var(--text-secondary); - } - - #subscriptionPurchaseTrafficSection .subscription-purchase-option-price { - align-items: flex-start; - gap: 4px; - font-size: 13px; - } - - #subscriptionPurchaseTrafficSection .subscription-purchase-option-price-current { - font-size: 18px; - font-weight: 700; - color: inherit; - } - - #subscriptionPurchaseTrafficSection .subscription-purchase-option-price-original { - font-size: 12px; - opacity: 0.85; - } - - #subscriptionPurchaseTrafficSection .subscription-purchase-price-discount { - display: inline-flex; - align-items: center; - gap: 4px; - padding: 3px 10px; - border-radius: 999px; - background: rgba(var(--primary-rgb), 0.15); - color: var(--primary); - font-size: 11px; - font-weight: 700; - text-transform: uppercase; - letter-spacing: 0.04em; - } - - #subscriptionPurchaseTrafficSection .subscription-settings-toggle.active .subscription-purchase-price-discount { - background: var(--primary); - color: #ffffff; - } - - #subscriptionPurchaseTrafficSection .subscription-purchase-option-note { - font-size: 12px; - color: var(--text-secondary); - background: rgba(var(--primary-rgb), 0.08); - padding: 4px 8px; - border-radius: var(--radius); - } - - /* Subscription purchase – devices */ - #subscriptionPurchaseDevicesSection .subscription-purchase-section-header { - flex-direction: column; - align-items: flex-start; - gap: 10px; - } - - #subscriptionPurchaseDevicesSection .subscription-purchase-section-meta { - font-size: 12px; - font-weight: 700; - color: var(--text-secondary); - letter-spacing: 0.04em; - } - - #subscriptionPurchaseDevicesSection .subscription-settings-stepper { - width: 100%; - justify-content: space-between; - background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.02)); - border-radius: var(--radius-xl); - border: 1.5px solid rgba(var(--primary-rgb), 0.18); - padding: 10px; - gap: 8px; - } - - #subscriptionPurchaseDevicesSection .subscription-settings-stepper button { - flex: 0 0 44px; - height: 44px; - border-radius: 14px; - border: none; - background: rgba(var(--primary-rgb), 0.12); - color: var(--primary); - font-size: 22px; - font-weight: 800; - box-shadow: var(--shadow-sm); - } - - #subscriptionPurchaseDevicesSection .subscription-settings-stepper button:hover:not(:disabled) { - transform: translateY(-1px); - box-shadow: var(--shadow-md); - background: rgba(var(--primary-rgb), 0.18); - } - - #subscriptionPurchaseDevicesSection .subscription-settings-stepper button:disabled { - opacity: 0.4; - box-shadow: none; - } - - #subscriptionPurchaseDevicesSection .subscription-settings-stepper-value { - flex: 1 1 auto; - text-align: center; - font-size: 24px; - font-weight: 800; - color: var(--text-primary); - } - - #subscriptionPurchaseDevicesSection .subscription-settings-price-note { - margin-top: 10px; - padding: 10px 12px; - border-radius: var(--radius); - background: rgba(var(--primary-rgb), 0.12); - color: var(--text-primary); - font-size: 13px; - line-height: 1.45; - } - - #subscriptionPurchaseDevicesSection .subscription-purchase-section-hint { - font-size: 12px; - color: var(--text-secondary); - } - - /* Subscription purchase – summary actions */ - #subscriptionPurchaseCard { - overflow: visible; - } - - #subscriptionPurchaseCard .card-content { - overflow: visible; - } - - #subscriptionPurchaseCard .subscription-purchase-actions { - margin-top: 16px; - padding: 16px; - background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.02)); - border-radius: var(--radius-xl); - box-shadow: var(--shadow-md); - gap: 14px; - padding-bottom: calc(16px + env(safe-area-inset-bottom, 0)); - } - - #subscriptionPurchaseCard .subscription-purchase-actions .btn-primary { - min-height: 56px; - font-size: 16px; - } - - #subscriptionPurchaseCard .subscription-purchase-actions .btn-secondary { - min-height: 52px; - } - - :root[data-theme="dark"] #subscriptionPurchaseTrafficSection .subscription-settings-toggle { - border-color: rgba(var(--primary-rgb), 0.25); - background: linear-gradient(145deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.6)); - box-shadow: none; - } - - :root[data-theme="dark"] #subscriptionPurchaseTrafficSection .subscription-settings-toggle.active { - border-color: rgba(var(--primary-rgb), 0.4); - background: linear-gradient(145deg, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.8)); - box-shadow: var(--shadow-md); - } - - :root[data-theme="dark"] #subscriptionPurchaseTrafficSection .subscription-purchase-price-discount { - background: rgba(var(--primary-rgb), 0.28); - color: #fff; - } - - :root[data-theme="dark"] #subscriptionPurchaseTrafficSection .subscription-settings-toggle.active .subscription-purchase-price-discount { - background: #fff; - color: var(--primary); - } - - :root[data-theme="dark"] #subscriptionPurchaseDevicesSection .subscription-settings-stepper { - background: rgba(15, 23, 42, 0.7); - border-color: rgba(var(--primary-rgb), 0.35); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); - } - - :root[data-theme="dark"] #subscriptionPurchaseDevicesSection .subscription-settings-stepper button { - background: rgba(var(--primary-rgb), 0.25); - color: #fff; - } - - :root[data-theme="dark"] #subscriptionPurchaseDevicesSection .subscription-settings-price-note { - background: rgba(var(--primary-rgb), 0.32); - } - - :root[data-theme="dark"] #subscriptionPurchaseCard .subscription-purchase-actions { - background: rgba(15, 23, 42, 0.85); - border: 1px solid rgba(var(--primary-rgb), 0.35); - box-shadow: var(--shadow-md); - } - - @media (max-width: 420px) { - #subscriptionPurchaseTrafficSection .subscription-purchase-options { - grid-template-columns: 1fr; - } - - #subscriptionPurchaseCard .subscription-purchase-actions { - padding: 14px 12px; - } - - #subscriptionPurchaseCard .subscription-purchase-actions .btn-primary { - min-height: 54px; - font-size: 15px; - } - } - .subscription-settings-disabled-note { font-size: 13px; color: var(--text-secondary);