:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17202a; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #e4efff 0, transparent 35%), #f5f7fb; }
.shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; }
.card { width: min(100%, 640px); background: rgba(255,255,255,.96); border: 1px solid #e2e8f0; border-radius: 22px; padding: 36px; box-shadow: 0 20px 60px rgba(30, 54, 90, .10); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #667085; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #635bff; box-shadow: 0 0 0 4px #ebeaff; }
h1 { margin: 22px 0 8px; font-size: clamp(30px, 7vw, 42px); letter-spacing: -.045em; line-height: 1.05; }
.intro { margin: 0 0 28px; color: #667085; font-size: 15px; line-height: 1.6; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid #e7ebf1; border-radius: 14px; background: #fff; }
.product-card.featured { border-color: #c9c6ff; background: linear-gradient(145deg, #fff 45%, #f7f6ff); }
.product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.product-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #fff; background: #17202a; font-size: 19px; font-weight: 700; }
.product-icon.purple { color: #635bff; background: #ebeaff; }
.tag { padding: 4px 7px; border-radius: 999px; color: #667085; background: #f0f2f5; font-size: 10px; font-weight: 700; }
.purple-tag { color: #5148e8; background: #ebeaff; }
.product-card strong { font-size: 14px; }
.product-description { min-height: 35px; margin-top: 5px; color: #98a2b3; font-size: 12px; line-height: 1.5; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 18px; }
.price { white-space: nowrap; font-size: 18px; font-weight: 750; }
.price span { color: #98a2b3; font-size: 11px; font-weight: 600; }
button { border: 0; border-radius: 10px; padding: 11px 12px; color: #fff; background: #635bff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
button:hover { background: #5148e8; transform: translateY(-1px); }
button:disabled { opacity: .65; cursor: wait; transform: none; }
.action-button { flex: 1; }
.status { min-height: 22px; margin: 17px 0 0; color: #667085; font-size: 13px; line-height: 1.5; }
.status.success { color: #087443; } .status.warning { color: #a15c00; } .status.error { color: #c4320a; }
.hint { margin: 12px 0 0; color: #98a2b3; font-size: 11px; line-height: 1.7; }
code { padding: 2px 5px; border-radius: 5px; background: #f0f2f5; color: #667085; }
.history { margin-top: 30px; padding-top: 24px; border-top: 1px solid #edf0f4; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.history-heading p { margin: 4px 0 0; color: #98a2b3; font-size: 11px; }
.refresh-button { color: #667085; background: #f0f2f5; }
.refresh-button:hover { color: #17202a; background: #e4e7ec; }
.history-list { display: grid; gap: 8px; margin-top: 14px; }
.history-empty { padding: 18px 12px; border: 1px dashed #d9dee7; border-radius: 10px; color: #98a2b3; font-size: 12px; text-align: center; }
.error-text { color: #c4320a; }
.order-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #edf0f4; border-radius: 11px; }
.order-main, .order-meta { min-width: 0; }
.order-title { display: flex; align-items: center; gap: 7px; }
.order-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.order-mode, .order-status { flex: none; padding: 3px 6px; border-radius: 999px; color: #667085; background: #f0f2f5; font-size: 9px; }
.order-date { display: block; margin-top: 4px; color: #98a2b3; font-size: 10px; }
.order-meta { display: grid; justify-items: end; gap: 4px; }
.order-meta > strong { white-space: nowrap; font-size: 12px; }
.order-status.success { color: #087443; background: #e8f7ef; }
footer { margin-top: 18px; color: #98a2b3; font-size: 11px; text-align: center; }
@media (max-width: 560px) { .card { padding: 28px 22px; } .products { grid-template-columns: 1fr; } .product-description { min-height: 0; } }

