From e2a2dff301d2b4532d7002a13c997947627976ec Mon Sep 17 00:00:00 2001 From: southseact-3d Date: Wed, 11 Feb 2026 18:27:02 +0000 Subject: [PATCH] Fix topup page: resolve JS error, improve styling, remove redundant buttons --- chat/public/topup.html | 153 +++++++++++++++++++++++------------------ 1 file changed, 86 insertions(+), 67 deletions(-) diff --git a/chat/public/topup.html b/chat/public/topup.html index d987a50..8b41618 100644 --- a/chat/public/topup.html +++ b/chat/public/topup.html @@ -75,9 +75,9 @@ } .shell { - max-width: 1180px; + max-width: 1000px; margin: 0 auto; - padding: 32px 20px 48px; + padding: 0 24px 64px; } .topbar { @@ -195,16 +195,26 @@ } .btn.primary { - background: var(--shopify-green); + background: linear-gradient(135deg, #008060 0%, #004c3f 100%); color: #fff; border: none; - box-shadow: 0 4px 12px rgba(0, 128, 96, 0.15); + box-shadow: 0 4px 14px rgba(0, 128, 96, 0.25); + font-weight: 600; + padding: 14px 24px; + margin-top: auto; } .btn.primary:hover { - background: var(--shopify-green-dark); - box-shadow: 0 6px 16px rgba(0, 128, 96, 0.25); - transform: translateY(-1px); + background: linear-gradient(135deg, #00664d 0%, #003d33 100%); + box-shadow: 0 6px 20px rgba(0, 128, 96, 0.35); + transform: translateY(-2px); + } + + .btn.primary:disabled { + background: #9ca3af; + cursor: not-allowed; + transform: none; + box-shadow: none; } .btn.ghost { @@ -219,61 +229,76 @@ .grid { display: grid; - grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); - gap: 16px; + grid-template-columns: repeat(2, 1fr); + gap: 24px; + max-width: 900px; + margin: 0 auto; + } + + @media (max-width: 768px) { + .grid { + grid-template-columns: 1fr; + gap: 20px; + } } .card { background: #fff; border: 1px solid var(--border); - border-radius: 14px; - padding: 24px; - box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05); + border-radius: 16px; + padding: 28px; + box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02); display: flex; flex-direction: column; - gap: 16px; + gap: 12px; position: relative; - transition: all 0.2s ease; + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .card:hover { - transform: translateY(-2px); - box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); - border-color: rgba(0, 128, 96, 0.2); + transform: translateY(-4px); + box-shadow: 0 20px 25px -5px rgba(0, 128, 96, 0.1), 0 10px 10px -5px rgba(0, 128, 96, 0.04); + border-color: rgba(0, 128, 96, 0.3); } .pill { display: inline-flex; align-items: center; gap: 6px; - padding: 6px 12px; + padding: 6px 14px; border-radius: 999px; - font-size: 12px; + font-size: 11px; font-weight: 700; - letter-spacing: 0.02em; - background: var(--shopify-green-light); - color: var(--shopify-green); - border: 1px solid rgba(0, 128, 96, 0.15); + letter-spacing: 0.05em; + text-transform: uppercase; + background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); + color: #15803d; + border: 1px solid rgba(0, 128, 96, 0.2); + width: fit-content; } .muted { - color: var(--muted); - font-size: 14px; + color: #4b5563; + font-size: 15px; line-height: 1.5; + font-weight: 500; } .price { - font-size: 36px; - font-weight: 700; - letter-spacing: -0.01em; + font-size: 42px; + font-weight: 800; + letter-spacing: -0.03em; color: #0f172a; + line-height: 1; + margin: 8px 0; } .old-price { - color: var(--muted); + color: #9ca3af; text-decoration: line-through; font-weight: 500; - font-size: 20px; + font-size: 22px; + margin-left: 8px; } .status { @@ -310,16 +335,18 @@ } .discount { - color: #166534; - font-weight: 700; + color: #15803d; + font-weight: 600; font-size: 13px; + margin-top: 4px; } .products-label { - font-size: 18px; + font-size: 20px; font-weight: 700; - margin-bottom: 20px; + margin-bottom: 24px; color: #0f172a; + text-align: center; } .payment-modal-overlay { @@ -433,9 +460,12 @@ .nav-bar { background: white; - border-bottom: 1px solid #e9ecef; + border-bottom: 1px solid #e5e7eb; padding: 16px 24px; - margin-bottom: 32px; + margin-bottom: 40px; + position: sticky; + top: 0; + z-index: 100; } .nav-content { @@ -1110,10 +1140,7 @@

Token Top-ups

Purchase additional AI credits with automatic plan discounts (Professional: 2.5% off, Enterprise: 5% off)

-
- Back to builder - Account -
+
@@ -1143,6 +1170,25 @@
+ +
+
+
+

+ + + + + Complete Payment +

+ +
+
+ +
+
+
+ - - - -
-
-
-

- - - - - Complete Payment -

- -
-
- -
-
-
\ No newline at end of file