reward-history.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /* ===== Reward History page ===== */
  2. .reward-history-container {
  3. background-color: #F5F5F5;
  4. height: 100vh !important;
  5. overflow: hidden !important;
  6. position: relative;
  7. display: flex;
  8. flex-direction: column;
  9. }
  10. /* Card */
  11. .reward-card {
  12. background: #fff;
  13. border-radius: 14px;
  14. margin: 14px 0;
  15. box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  16. border: 1px solid #F1F1F1;
  17. overflow: hidden;
  18. position: relative;
  19. }
  20. .reward-card-top {
  21. padding: 14px 16px 14px 16px;
  22. background: #fff;
  23. }
  24. .reward-card-bottom {
  25. padding: 12px 16px;
  26. background: #FDFDFD;
  27. border-top: 1px dashed #E5E7EB;
  28. }
  29. .reward-card-perforation {
  30. height: 4px;
  31. background-image: radial-gradient(circle, #F3F4F6 6px, transparent 6px);
  32. background-size: 24px 24px;
  33. background-position: center;
  34. background-repeat: repeat-x;
  35. margin: 0 -10px;
  36. }
  37. /* Header row */
  38. .reward-card-header {
  39. display: flex;
  40. justify-content: space-between;
  41. align-items: center;
  42. margin-bottom: 10px;
  43. }
  44. .reward-id {
  45. font-size: 13px;
  46. color: #9CA3AF;
  47. font-weight: 700;
  48. font-family: 'Bricolage Grotesque', sans-serif;
  49. }
  50. /* Status pill */
  51. .reward-status {
  52. padding: 6px 14px;
  53. border-radius: 30px;
  54. font-size: 11px;
  55. font-weight: 900;
  56. text-transform: uppercase;
  57. letter-spacing: 0.5px;
  58. white-space: nowrap;
  59. }
  60. .reward-status-success { background: #DCFCE7; color: #15803D; }
  61. .reward-status-processing { background: #FFF9C4; color: #B45309; }
  62. .reward-status-pending { background: #DBEAFE; color: #1D4ED8; }
  63. .reward-status-reverted { background: #FEE2E2; color: #B91C1C; }
  64. .reward-status-unknown { background: #F3F4F6; color: #6B7280; }
  65. /* Amount display */
  66. .reward-amount-wrap {
  67. display: flex;
  68. align-items: baseline;
  69. gap: 8px;
  70. margin-top: 4px;
  71. }
  72. .reward-amount {
  73. font-size: 28px;
  74. font-weight: 900;
  75. color: #0062FF;
  76. line-height: 1;
  77. font-family: 'Bricolage Grotesque', sans-serif;
  78. }
  79. .reward-currency {
  80. font-size: 13px;
  81. font-weight: 800;
  82. color: #0062FF;
  83. text-transform: uppercase;
  84. }
  85. /* Info grid */
  86. .reward-info-grid {
  87. display: flex;
  88. flex-direction: column;
  89. gap: 8px;
  90. }
  91. .reward-info-row {
  92. display: flex;
  93. justify-content: space-between;
  94. align-items: center;
  95. gap: 12px;
  96. }
  97. .reward-info-label {
  98. font-size: 12px;
  99. color: #9CA3AF;
  100. font-weight: 700;
  101. text-transform: uppercase;
  102. letter-spacing: 0.4px;
  103. flex-shrink: 0;
  104. }
  105. .reward-info-value {
  106. font-size: 13px;
  107. color: #1F2937;
  108. font-weight: 800;
  109. text-align: right;
  110. overflow: hidden;
  111. text-overflow: ellipsis;
  112. white-space: nowrap;
  113. }
  114. /* Empty state */
  115. .reward-empty {
  116. width: 100%;
  117. padding: 96px 24px;
  118. display: flex;
  119. flex-direction: column;
  120. align-items: center;
  121. justify-content: center;
  122. color: #9CA3AF;
  123. opacity: 0.7;
  124. }
  125. .reward-empty i {
  126. font-size: 48px;
  127. margin-bottom: 16px;
  128. }
  129. .reward-empty p {
  130. font-weight: 700;
  131. font-size: 14px;
  132. }
  133. /* List container */
  134. .reward-list-container {
  135. flex: 1;
  136. height: calc(100vh - 80px) !important;
  137. overflow-y: auto !important;
  138. overflow-x: hidden !important;
  139. padding-bottom: calc(120px + env(safe-area-inset-bottom));
  140. scrollbar-width: thin !important;
  141. scrollbar-color: #fce303 transparent !important;
  142. }
  143. .reward-list-container::-webkit-scrollbar {
  144. width: 6px !important;
  145. display: block !important;
  146. }
  147. .reward-list-container::-webkit-scrollbar-track {
  148. background: transparent !important;
  149. }
  150. .reward-list-container::-webkit-scrollbar-thumb {
  151. background-color: #fce303 !important;
  152. border-radius: 20px !important;
  153. }
  154. /* Pagination */
  155. .reward-pagination {
  156. display: flex;
  157. justify-content: center;
  158. align-items: center;
  159. gap: 16px;
  160. padding: 32px 0 96px 0;
  161. }
  162. .reward-page-btn {
  163. padding: 8px 24px;
  164. background: #fff;
  165. border-radius: 12px;
  166. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  167. font-weight: 800;
  168. color: #6B7280;
  169. transition: transform 0.15s;
  170. cursor: pointer;
  171. border: none;
  172. }
  173. .reward-page-btn:active:not(:disabled) {
  174. transform: scale(0.95);
  175. }
  176. .reward-page-btn:disabled {
  177. opacity: 0.3;
  178. pointer-events: none;
  179. }
  180. .reward-page-indicator {
  181. display: flex;
  182. flex-direction: column;
  183. align-items: center;
  184. }
  185. .reward-page-label {
  186. font-size: 10px;
  187. color: #9CA3AF;
  188. font-weight: 800;
  189. text-transform: uppercase;
  190. letter-spacing: 0.15em;
  191. }
  192. .reward-page-value {
  193. font-weight: 900;
  194. color: #0062FF;
  195. font-size: 18px;
  196. }