@outerjoyn/react-native 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outerjoyn/react-native",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Drop-in loyalty SDK for React Native. Works in Expo Go.",
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
@@ -85,14 +85,23 @@ type Step = 'catalog' | 'detail' | 'confirm' | 'processing' | 'success' | 'error
85
85
  // Demo data
86
86
  // =============================================================================
87
87
 
88
- /** Category badge colors for fallback display when no image is available */
89
- const CATEGORY_COLORS: Record<string, string> = {
90
- 'Gift Cards': '#6366F1',
91
- 'Electronics': '#0EA5E9',
92
- 'Experiences': '#F59E0B',
93
- 'Merchandise': '#8B5CF6',
94
- 'Wellness': '#10B981',
88
+ /**
89
+ * Category visuals for image-less rewards (2026-07-21 Plaid-grade redesign,
90
+ * built against the approved HTML rendering): a soft pastel tile background
91
+ * plus an emoji monogram in a floating white square — replaces the old flat
92
+ * saturated color block with the category name shouting in white caps.
93
+ */
94
+ const CATEGORY_VISUALS: Record<string, { bg: string; emoji: string }> = {
95
+ 'Gift Cards': { bg: '#EEF4FF', emoji: '🎁' },
96
+ 'Electronics': { bg: '#EDF7FE', emoji: '🎧' },
97
+ 'Experiences': { bg: '#EEF4FF', emoji: '🌴' },
98
+ 'Merchandise': { bg: '#F5F0FE', emoji: '👕' },
99
+ 'Wellness': { bg: '#EFFDF4', emoji: '🧘' },
100
+ 'Skincare': { bg: '#FDF2F8', emoji: '✨' },
101
+ 'Rewards': { bg: '#F6F9FC', emoji: '⭐' },
95
102
  };
103
+ const categoryVisual = (category: string) =>
104
+ CATEGORY_VISUALS[category] ?? { bg: '#F6F9FC', emoji: '⭐' };
96
105
 
97
106
  const DEMO_CATALOG: CatalogItem[] = [
98
107
  { product_id: 1, name: '$10 Coffee Gift Card', description: 'Redeemable at any Urban Coffee Co location.', category: 'Gift Cards', points_cost: 2000, cash_price: 1000, image_url: 'https://images.unsplash.com/photo-1509042239860-f550ce710b93?w=400&h=400&fit=crop' },
@@ -145,6 +154,18 @@ export function RedeemScreen({
145
154
  const [walletState, setWalletState] = useState<'idle' | 'adding' | 'added' | 'unavailable'>('idle');
146
155
  // Start at 0 for real sessions; demo mode explicitly sets DEMO_BALANCE below.
147
156
  const [balance, setBalance] = useState(0);
157
+ // Category chip filter ('' = All) — Plaid-grade redesign 2026-07-21.
158
+ const [categoryFilter, setCategoryFilter] = useState('');
159
+
160
+ // "Available to spend": /api/sdk/balance only reads the single brand
161
+ // Member.points_balance, which is 0 for cross-program demo members even
162
+ // when the provider holds six-figure payable balances — the infamous
163
+ // "Total Available Value: 0 pts" header. Prefer the provider's
164
+ // cross-program total (same source as LoyaltyBanner/BalanceSummary) and
165
+ // fall back to the endpoint value.
166
+ const effectiveBalance = Math.max(balance, ctx.totalAvailablePoints ?? 0);
167
+ const effectiveValueCents = ctx.totalAvailableValue ?? 0;
168
+ const programCount = ctx.linkedPrograms?.length ?? 0;
148
169
  const [reloadKey, setReloadKey] = useState(0);
149
170
  const searchTimer = useRef<ReturnType<typeof setTimeout> | null>(null);
150
171
 
@@ -217,16 +238,27 @@ export function RedeemScreen({
217
238
  }
218
239
  }, [visible]);
219
240
 
220
- // Debounced search filter
241
+ // Category chips (derived from the loaded catalog, insertion-ordered).
242
+ const categories = useMemo(() => {
243
+ const seen: string[] = [];
244
+ for (const item of catalog) {
245
+ if (item.category && !seen.includes(item.category)) seen.push(item.category);
246
+ }
247
+ return seen;
248
+ }, [catalog]);
249
+
250
+ // Debounced search filter + category chip filter
221
251
  const filteredCatalog = useMemo(() => {
222
- if (!search.trim()) return catalog;
252
+ let items = catalog;
253
+ if (categoryFilter) items = items.filter((i) => i.category === categoryFilter);
254
+ if (!search.trim()) return items;
223
255
  const q = search.toLowerCase();
224
- return catalog.filter(
256
+ return items.filter(
225
257
  (item) =>
226
258
  item.name.toLowerCase().includes(q) ||
227
259
  item.category.toLowerCase().includes(q),
228
260
  );
229
- }, [catalog, search]);
261
+ }, [catalog, search, categoryFilter]);
230
262
 
231
263
  const handleSearchChange = useCallback((text: string) => {
232
264
  setSearch(text);
@@ -239,12 +271,12 @@ export function RedeemScreen({
239
271
 
240
272
  const handleRedeem = useCallback(() => {
241
273
  if (!selectedItem) return;
242
- if (selectedItem.points_cost > balance) {
274
+ if (selectedItem.points_cost > effectiveBalance) {
243
275
  Alert.alert(t('redeem.insufficient'), t('redeem.points', { cost: String(selectedItem.points_cost) }));
244
276
  return;
245
277
  }
246
278
  setStep('confirm');
247
- }, [selectedItem, balance]);
279
+ }, [selectedItem, effectiveBalance]);
248
280
 
249
281
  const handleConfirmRedeem = useCallback(async () => {
250
282
  if (!selectedItem) return;
@@ -346,32 +378,62 @@ export function RedeemScreen({
346
378
  // Render steps
347
379
  // =========================================================================
348
380
 
349
- const renderCatalogItem = ({ item }: { item: CatalogItem }) => (
350
- <Pressable style={styles.catalogCard} onPress={() => handleSelectItem(item)}>
351
- <View style={[styles.catalogImagePlaceholder, !item.image_url && { backgroundColor: CATEGORY_COLORS[item.category] ?? COLORS.accent }]}>
352
- {item.image_url ? (
353
- <Image source={{ uri: item.image_url }} style={styles.catalogImage} resizeMode="cover" />
354
- ) : (
355
- <Text style={styles.catalogCategoryBadge}>{item.category}</Text>
356
- )}
357
- </View>
358
- <Text style={styles.catalogName} numberOfLines={2}>{item.name}</Text>
359
- <Text style={styles.catalogPoints}>{fmt(item.points_cost)} pts</Text>
360
- {item.cash_price != null && (
361
- <Text style={styles.catalogCash}>${(item.cash_price / 100).toFixed(2)}</Text>
362
- )}
363
- </Pressable>
364
- );
381
+ // Plaid-grade card (2026-07-21, built against the approved rendering):
382
+ // rounded tile, image or pastel monogram fallback, points pill overlay,
383
+ // name + category eyebrow + points/value row.
384
+ const renderCatalogItem = ({ item }: { item: CatalogItem }) => {
385
+ const visual = categoryVisual(item.category);
386
+ return (
387
+ <Pressable style={styles.catalogCard} onPress={() => handleSelectItem(item)}>
388
+ <View style={[styles.catalogThumb, !item.image_url && { backgroundColor: visual.bg }]}>
389
+ {item.image_url ? (
390
+ <Image source={{ uri: item.image_url }} style={styles.catalogImage} resizeMode="cover" />
391
+ ) : (
392
+ <View style={styles.monogram}>
393
+ <Text style={styles.monogramEmoji}>{visual.emoji}</Text>
394
+ </View>
395
+ )}
396
+ <View style={styles.pointsPill}>
397
+ <Text style={styles.pointsPillText}>{fmt(item.points_cost)} pts</Text>
398
+ </View>
399
+ </View>
400
+ <View style={styles.catalogBody}>
401
+ <Text style={styles.catalogName} numberOfLines={2}>{item.name}</Text>
402
+ <Text style={styles.catalogCategory}>{item.category}</Text>
403
+ <View style={styles.catalogPriceRow}>
404
+ <Text style={styles.catalogPoints}>{fmt(item.points_cost)} pts</Text>
405
+ {item.cash_price != null && (
406
+ <Text style={styles.catalogCash}>${(item.cash_price / 100).toFixed(0)} value</Text>
407
+ )}
408
+ </View>
409
+ </View>
410
+ </Pressable>
411
+ );
412
+ };
365
413
 
366
414
  const renderCatalog = () => (
367
415
  <View style={styles.content}>
368
- {/* Balance */}
369
- <View style={styles.balanceBanner}>
370
- <Text style={styles.balanceLabel}>{t('balance.total_value')}</Text>
371
- <Text style={styles.balanceValue}>{fmt(balance)} pts</Text>
416
+ {/* Available-to-spend chip — cross-program totals from the provider
417
+ (the old header read /api/sdk/balance = single-brand
418
+ Member.points_balance, which rendered "0 pts" for cross-program
419
+ demo members). */}
420
+ <View style={styles.balanceChip}>
421
+ <View style={styles.balanceChipLeft}>
422
+ <Text style={styles.balanceChipLabel}>AVAILABLE TO SPEND</Text>
423
+ <Text style={styles.balanceChipPts}>{fmt(effectiveBalance)} pts</Text>
424
+ {effectiveValueCents > 0 && (
425
+ <Text style={styles.balanceChipUsd}>
426
+ {'≈'} ${(effectiveValueCents / 100).toFixed(2)}
427
+ {programCount > 1 ? ` across ${programCount} programs` : ''}
428
+ </Text>
429
+ )}
430
+ </View>
431
+ <View style={styles.balanceChipSpark}>
432
+ <Text style={styles.balanceChipSparkText}>{'✦'}</Text>
433
+ </View>
372
434
  </View>
373
435
 
374
- {/* Search */}
436
+ {/* Search (pill, parity with the Connect picker) */}
375
437
  <View style={styles.searchContainer}>
376
438
  <TextInput
377
439
  style={styles.searchInput}
@@ -383,6 +445,32 @@ export function RedeemScreen({
383
445
  />
384
446
  </View>
385
447
 
448
+ {/* Category chips */}
449
+ {categories.length > 1 && (
450
+ <View>
451
+ <FlatList
452
+ horizontal
453
+ showsHorizontalScrollIndicator={false}
454
+ data={['', ...categories]}
455
+ keyExtractor={(c: string) => c || '__all__'}
456
+ contentContainerStyle={styles.chipsRow}
457
+ renderItem={({ item: cat }: { item: string }) => {
458
+ const on = categoryFilter === cat;
459
+ return (
460
+ <Pressable
461
+ style={[styles.chip, on && styles.chipOn]}
462
+ onPress={() => setCategoryFilter(cat)}
463
+ >
464
+ <Text style={[styles.chipText, on && styles.chipTextOn]}>
465
+ {cat === '' ? 'All' : cat}
466
+ </Text>
467
+ </Pressable>
468
+ );
469
+ }}
470
+ />
471
+ </View>
472
+ )}
473
+
386
474
  {loading ? (
387
475
  <View style={styles.loadingContainer}>
388
476
  <ActivityIndicator size="large" color={COLORS.primary} />
@@ -391,7 +479,7 @@ export function RedeemScreen({
391
479
  <FlatList
392
480
  data={filteredCatalog}
393
481
  renderItem={renderCatalogItem}
394
- keyExtractor={(item) => String(item.product_id)}
482
+ keyExtractor={(item: CatalogItem) => String(item.product_id)}
395
483
  numColumns={2}
396
484
  columnWrapperStyle={styles.catalogRow}
397
485
  contentContainerStyle={styles.catalogList}
@@ -406,41 +494,72 @@ export function RedeemScreen({
406
494
 
407
495
  const renderDetail = () => {
408
496
  if (!selectedItem) return null;
409
- const affordable = selectedItem.points_cost <= balance;
497
+ const affordable = selectedItem.points_cost <= effectiveBalance;
498
+ const shortfall = Math.max(0, selectedItem.points_cost - effectiveBalance);
499
+ const progress = selectedItem.points_cost > 0
500
+ ? Math.max(0.03, Math.min(1, effectiveBalance / selectedItem.points_cost))
501
+ : 1;
502
+ const visual = categoryVisual(selectedItem.category);
410
503
  return (
411
504
  <View style={styles.content}>
412
505
  <Pressable onPress={() => setStep('catalog')} style={styles.backButton}>
413
- <Text style={styles.backText}>{'\u2190'} Back</Text>
506
+ <Text style={styles.backText}>{'\u2039'} All rewards</Text>
414
507
  </Pressable>
415
508
 
416
- <View style={[styles.detailImagePlaceholder, !selectedItem.image_url && { backgroundColor: CATEGORY_COLORS[selectedItem.category] ?? COLORS.accent }]}>
509
+ <View style={[styles.detailHero, !selectedItem.image_url && { backgroundColor: visual.bg }]}>
417
510
  {selectedItem.image_url ? (
418
511
  <Image source={{ uri: selectedItem.image_url }} style={styles.detailImage} resizeMode="cover" />
419
512
  ) : (
420
- <Text style={styles.detailCategoryBadge}>{selectedItem.category}</Text>
513
+ <View style={[styles.monogram, styles.detailMonogram]}>
514
+ <Text style={styles.detailMonogramEmoji}>{visual.emoji}</Text>
515
+ </View>
421
516
  )}
517
+ <View style={[styles.pointsPill, styles.detailPointsPill]}>
518
+ <Text style={styles.pointsPillText}>{fmt(selectedItem.points_cost)} pts</Text>
519
+ </View>
422
520
  </View>
423
521
 
522
+ <Text style={styles.detailEyebrow}>{selectedItem.category}</Text>
424
523
  <Text style={styles.detailName}>{selectedItem.name}</Text>
425
- <Text style={styles.detailCategory}>{selectedItem.category}</Text>
426
524
  <Text style={styles.detailDescription}>{selectedItem.description}</Text>
427
525
 
428
- <View style={styles.detailPriceRow}>
429
- <Text style={styles.detailPoints}>{fmt(selectedItem.points_cost)} pts</Text>
430
- {selectedItem.cash_price != null && (
431
- <Text style={styles.detailCash}>${(selectedItem.cash_price / 100).toFixed(2)} value</Text>
432
- )}
526
+ {/* Affordability card: points + retail value + progress toward the
527
+ cost, with an honest shortfall line instead of a pale disabled
528
+ button labelled "Not enough points". */}
529
+ <View style={styles.priceCard}>
530
+ <View style={styles.priceCardRow}>
531
+ <Text style={styles.detailPoints}>{fmt(selectedItem.points_cost)} pts</Text>
532
+ {selectedItem.cash_price != null && (
533
+ <Text style={styles.detailCash}>${(selectedItem.cash_price / 100).toFixed(2)} retail value</Text>
534
+ )}
535
+ </View>
536
+ <View style={styles.meterTrack}>
537
+ <View style={[styles.meterFill, { width: `${Math.round(progress * 100)}%` }]} />
538
+ </View>
539
+ <Text style={styles.meterHint}>
540
+ You have <Text style={styles.meterHintStrong}>{fmt(effectiveBalance)} pts</Text>
541
+ {affordable
542
+ ? ' \u2014 plenty to redeem this'
543
+ : <Text> \u2014 <Text style={styles.meterHintAccent}>{fmt(shortfall)} more</Text> to unlock this</Text>}
544
+ </Text>
433
545
  </View>
434
546
 
435
547
  <Pressable
436
- style={[styles.primaryButton, !affordable && styles.disabledButton]}
548
+ style={[styles.primaryButton, !affordable && styles.insufficientButton]}
437
549
  disabled={!affordable}
438
550
  onPress={handleRedeem}
439
551
  >
440
- <Text style={styles.primaryButtonText}>
441
- {affordable ? t('redeem.title') : t('redeem.insufficient')}
552
+ <Text style={[styles.primaryButtonText, !affordable && styles.insufficientButtonText]}>
553
+ {affordable
554
+ ? `Redeem for ${fmt(selectedItem.points_cost)} pts`
555
+ : `${fmt(shortfall)} more points needed`}
442
556
  </Text>
443
557
  </Pressable>
558
+ <Text style={styles.ctaHint}>
559
+ {affordable
560
+ ? 'Points are deducted after you confirm on the next step'
561
+ : 'Keep earning, or exchange points from another program'}
562
+ </Text>
444
563
  </View>
445
564
  );
446
565
  };
@@ -453,7 +572,7 @@ export function RedeemScreen({
453
572
  <Text style={styles.confirmLabel}>{fmt(selectedItem?.points_cost ?? 0)} points</Text>
454
573
  </View>
455
574
  <Text style={styles.confirmBalance}>
456
- Remaining balance: {fmt(balance - (selectedItem?.points_cost ?? 0))} pts
575
+ Remaining balance: {fmt(effectiveBalance - (selectedItem?.points_cost ?? 0))} pts
457
576
  </Text>
458
577
  <Pressable style={styles.primaryButton} onPress={handleConfirmRedeem}>
459
578
  <Text style={styles.primaryButtonText}>{t('exchange.confirm')}</Text>
@@ -623,76 +742,138 @@ const styles = StyleSheet.create({
623
742
  poweredByText: { fontSize: 11, color: '#9CA3AF' },
624
743
  poweredByLogo: { width: 80, height: 16 },
625
744
 
626
- // Balance banner
627
- balanceBanner: {
745
+ // Available-to-spend chip (Plaid-grade redesign, 2026-07-21 — built
746
+ // against the approved HTML rendering; solid navy in lieu of a gradient
747
+ // to avoid an expo-linear-gradient peer dep)
748
+ balanceChip: {
628
749
  flexDirection: 'row',
629
750
  justifyContent: 'space-between',
630
751
  alignItems: 'center',
631
- padding: 14,
632
- borderRadius: 12,
633
- backgroundColor: COLORS.primary + '0D',
634
- marginBottom: 12,
752
+ paddingVertical: 16,
753
+ paddingHorizontal: 18,
754
+ borderRadius: 18,
755
+ backgroundColor: COLORS.navy,
756
+ marginBottom: 14,
757
+ },
758
+ balanceChipLeft: { flex: 1 },
759
+ balanceChipLabel: {
760
+ fontSize: 11, fontWeight: '600', letterSpacing: 0.5,
761
+ color: 'rgba(255,255,255,0.72)', marginBottom: 3,
762
+ },
763
+ balanceChipPts: { fontSize: 22, fontWeight: '800', color: '#FFFFFF', letterSpacing: -0.4 },
764
+ balanceChipUsd: { fontSize: 12.5, fontWeight: '500', color: 'rgba(255,255,255,0.78)', marginTop: 2 },
765
+ balanceChipSpark: {
766
+ width: 44, height: 44, borderRadius: 22,
767
+ backgroundColor: 'rgba(255,255,255,0.14)',
768
+ alignItems: 'center', justifyContent: 'center',
635
769
  },
636
- balanceLabel: { fontSize: 14, color: COLORS.text, fontWeight: '500' },
637
- balanceValue: { fontSize: 18, fontWeight: '700', color: COLORS.primary },
770
+ balanceChipSparkText: { fontSize: 20, color: '#FFFFFF' },
638
771
 
639
- // Search
772
+ // Search (pill — parity with the Connect picker)
640
773
  searchContainer: { marginBottom: 12 },
641
774
  searchInput: {
642
775
  borderWidth: 1,
643
776
  borderColor: COLORS.border,
644
- borderRadius: 10,
645
- padding: 12,
777
+ borderRadius: 999,
778
+ paddingVertical: 12,
779
+ paddingHorizontal: 18,
646
780
  fontSize: 15,
647
781
  color: COLORS.text,
648
782
  backgroundColor: COLORS.surface,
649
783
  },
650
784
 
785
+ // Category chips
786
+ chipsRow: { gap: 8, paddingBottom: 14 },
787
+ chip: {
788
+ paddingVertical: 7, paddingHorizontal: 14, borderRadius: 999,
789
+ borderWidth: 1, borderColor: COLORS.border, backgroundColor: COLORS.bg,
790
+ },
791
+ chipOn: { backgroundColor: COLORS.navy, borderColor: COLORS.navy },
792
+ chipText: { fontSize: 12.5, fontWeight: '600', color: '#5B6472' },
793
+ chipTextOn: { color: '#FFFFFF' },
794
+
651
795
  // Catalog grid
652
796
  catalogList: { paddingBottom: 16 },
653
797
  catalogRow: { justifyContent: 'space-between' },
654
798
  catalogCard: {
655
799
  width: '48%',
656
800
  borderWidth: 1,
657
- borderColor: COLORS.border,
658
- borderRadius: 12,
801
+ borderColor: '#EDF0F4',
802
+ borderRadius: 18,
659
803
  backgroundColor: COLORS.bg,
660
804
  marginBottom: 12,
661
805
  overflow: 'hidden',
806
+ shadowColor: COLORS.navy,
807
+ shadowOpacity: 0.05,
808
+ shadowRadius: 10,
809
+ shadowOffset: { width: 0, height: 2 },
810
+ elevation: 2,
662
811
  },
663
- catalogImagePlaceholder: {
664
- height: 100,
812
+ catalogThumb: {
813
+ height: 112,
665
814
  backgroundColor: COLORS.surface,
666
815
  justifyContent: 'center',
667
816
  alignItems: 'center',
668
817
  },
669
818
  catalogImage: { width: '100%', height: '100%' },
670
- catalogCategoryBadge: { fontSize: 11, fontWeight: '700', color: '#FFFFFF', textTransform: 'uppercase', letterSpacing: 0.5 },
671
- catalogName: { fontSize: 14, fontWeight: '600', color: COLORS.text, paddingHorizontal: 10, paddingTop: 8 },
672
- catalogPoints: { fontSize: 14, fontWeight: '700', color: COLORS.primary, paddingHorizontal: 10, paddingTop: 4 },
673
- catalogCash: { fontSize: 12, color: COLORS.muted, paddingHorizontal: 10, paddingBottom: 10 },
819
+ monogram: {
820
+ width: 44, height: 44, borderRadius: 14,
821
+ backgroundColor: 'rgba(255,255,255,0.9)',
822
+ alignItems: 'center', justifyContent: 'center',
823
+ shadowColor: COLORS.navy, shadowOpacity: 0.1, shadowRadius: 8,
824
+ shadowOffset: { width: 0, height: 2 }, elevation: 2,
825
+ },
826
+ monogramEmoji: { fontSize: 20 },
827
+ pointsPill: {
828
+ position: 'absolute', bottom: 8, left: 8,
829
+ backgroundColor: 'rgba(16,24,74,0.82)',
830
+ paddingVertical: 4, paddingHorizontal: 9, borderRadius: 999,
831
+ },
832
+ pointsPillText: { fontSize: 11, fontWeight: '700', color: '#FFFFFF' },
833
+ catalogBody: { paddingHorizontal: 12, paddingTop: 10, paddingBottom: 12 },
834
+ catalogName: { fontSize: 13.5, fontWeight: '700', color: COLORS.text, lineHeight: 17, letterSpacing: -0.1, marginBottom: 3 },
835
+ catalogCategory: { fontSize: 10.5, fontWeight: '600', letterSpacing: 0.5, textTransform: 'uppercase', color: COLORS.muted, marginBottom: 8 },
836
+ catalogPriceRow: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' },
837
+ catalogPoints: { fontSize: 13, fontWeight: '800', color: COLORS.accent },
838
+ catalogCash: { fontSize: 11, fontWeight: '600', color: COLORS.muted },
674
839
  loadingContainer: { flex: 1, justifyContent: 'center', alignItems: 'center' },
675
840
  emptyText: { textAlign: 'center', color: COLORS.muted, marginTop: 40, fontSize: 15 },
676
841
 
677
842
  // Detail
678
843
  backButton: { marginBottom: 12 },
679
- backText: { fontSize: 15, color: COLORS.primary, fontWeight: '600' },
680
- detailImagePlaceholder: {
681
- height: 180,
682
- borderRadius: 12,
844
+ backText: { fontSize: 15, color: COLORS.accent, fontWeight: '700' },
845
+ detailHero: {
846
+ height: 200,
847
+ borderRadius: 20,
683
848
  backgroundColor: COLORS.surface,
684
849
  justifyContent: 'center',
685
850
  alignItems: 'center',
686
851
  marginBottom: 16,
852
+ overflow: 'hidden',
853
+ },
854
+ detailImage: { width: '100%', height: '100%' },
855
+ detailMonogram: { width: 64, height: 64, borderRadius: 20 },
856
+ detailMonogramEmoji: { fontSize: 30 },
857
+ detailPointsPill: { bottom: 12, left: 12, paddingVertical: 6, paddingHorizontal: 12 },
858
+ detailEyebrow: { fontSize: 11, fontWeight: '700', letterSpacing: 0.8, textTransform: 'uppercase', color: COLORS.accent, marginBottom: 6 },
859
+ detailName: { fontSize: 23, fontWeight: '800', color: COLORS.text, letterSpacing: -0.4, marginBottom: 8 },
860
+ detailDescription: { fontSize: 14.5, color: '#5B6472', lineHeight: 22, marginBottom: 18 },
861
+ priceCard: {
862
+ borderWidth: 1, borderColor: '#EDF0F4', borderRadius: 16,
863
+ paddingVertical: 14, paddingHorizontal: 16, marginBottom: 4,
864
+ backgroundColor: '#FAFBFD',
687
865
  },
688
- detailImage: { width: '100%', height: '100%', borderRadius: 12 },
689
- detailCategoryBadge: { fontSize: 16, fontWeight: '700', color: '#FFFFFF', textTransform: 'uppercase', letterSpacing: 1 },
690
- detailName: { fontSize: 22, fontWeight: '700', color: COLORS.text, marginBottom: 4 },
691
- detailCategory: { fontSize: 13, color: COLORS.muted, textTransform: 'uppercase', marginBottom: 12 },
692
- detailDescription: { fontSize: 15, color: COLORS.text, lineHeight: 22, marginBottom: 16 },
693
- detailPriceRow: { flexDirection: 'row', alignItems: 'baseline', marginBottom: 8 },
694
- detailPoints: { fontSize: 20, fontWeight: '700', color: COLORS.primary, marginRight: 10 },
695
- detailCash: { fontSize: 14, color: COLORS.muted },
866
+ priceCardRow: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'baseline', marginBottom: 10 },
867
+ detailPoints: { fontSize: 19, fontWeight: '800', color: COLORS.text },
868
+ detailCash: { fontSize: 12.5, fontWeight: '600', color: COLORS.muted },
869
+ meterTrack: { height: 6, borderRadius: 3, backgroundColor: '#E9EEF5', overflow: 'hidden', marginBottom: 8 },
870
+ meterFill: { height: '100%', borderRadius: 3, backgroundColor: COLORS.accent },
871
+ meterHint: { fontSize: 12, fontWeight: '500', color: '#5B6472' },
872
+ meterHintStrong: { fontWeight: '700', color: COLORS.text },
873
+ meterHintAccent: { fontWeight: '700', color: COLORS.accent },
874
+ ctaHint: { textAlign: 'center', fontSize: 12, fontWeight: '500', color: COLORS.muted, marginTop: 8 },
875
+ insufficientButton: { backgroundColor: '#F1F4F8' },
876
+ insufficientButtonText: { color: COLORS.muted },
696
877
 
697
878
  // Buttons
698
879
  primaryButton: {
@@ -715,7 +896,6 @@ const styles = StyleSheet.create({
715
896
  },
716
897
  walletButtonDisabled: { opacity: 0.7 },
717
898
  walletButtonText: { fontSize: 16, fontWeight: '700', color: '#FFFFFF' },
718
- disabledButton: { opacity: 0.4 },
719
899
  secondaryButton: { marginTop: 12, paddingVertical: 14, alignItems: 'center' },
720
900
  secondaryButtonText: { fontSize: 15, fontWeight: '600', color: COLORS.muted },
721
901