Files
co-lite/solvway-customer-portal/app/globals.css
T
ngqileandClaude Opus 5.5 5ee51d1913 chore: copy kept Tastefully modules and portals into Co-Lite
Backend modules from tastefully 8bd93d15: core-libs, core-session,
api-gateway, mobile-api, services-auth, services-system,
services-counter, services-member, services-log, services-email.
solvway-admin-portal from babyboo f64d096ea, solvway-customer-portal
from tastefully 8bd93d15. Copied as tracked files only.

Literal secrets replaced with environment placeholders:
- services-email: SMTP_PASSWORD, MAILGUN_API_KEY, SENDGRID_API_KEY,
  MAILJET_API_KEY, MAILJET_SECRET_KEY (optional, empty default)
- services-system: JUMIO_TOKEN, JUMIO_SECRET (optional)
- services-auth: USER_AUTH_API_SECRET (required); commented JWT secret removed
- core-libs: JWT_TOKEN default removed (required), XXL_JOB_TOKEN default
  removed, ipgeolocation key read from IPGEOLOCATION_API_KEY
- services-system EkycAppConfig: commented Jumio credentials removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 15:55:45 +08:00

191 lines
8.3 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* ── Theme tokens ──────────────────────────────────────────────────── */
:root {
--bg-primary: #fafafa;
--bg-backdrop: #E5DFDA;
--bg-card: #FFFFFF;
--bg-card-alt: #FAF7F4;
--text-primary: #1a1a1a;
--text-secondary:#5C5C5C;
--text-muted: #6B6B6B; /* 5.3:1 on white — was #9A9A9A (2.8:1, failed AA) */
--border-color: rgba(0,0,0,0.07);
--shadow-card: 0 2px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
--nav-bg: rgba(255,255,255,0.92);
--nav-border: rgba(0,0,0,0.07);
--tastefully-orange: #FF6B00;
--tastefully-dark: #1a1a1a;
--tastefully-accent: #290a81;
/* Orange used AS TEXT. Brand #FF6B00 is only 2.9:1 on light surfaces; this is 5.3:1. */
--orange-text: #B84700;
/* Native <option> popups need SOLID colors (translucent values composite
unpredictably in the OS-drawn dropdown). */
--option-bg: #FFFFFF;
--option-text: #1a1a1a;
}
.dark {
--bg-primary: #1a1a1a;
--bg-backdrop: #101010;
--bg-card: rgba(255,255,255,0.06);
--bg-card-alt: rgba(255,255,255,0.03);
--text-primary: #FFFFFF;
--text-secondary:rgba(255,255,255,0.8);
--text-muted: rgba(255,255,255,0.6); /* 6.3:1 on card — was 0.35 (3.1:1) */
--border-color: rgba(255,255,255,0.08);
--shadow-card: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
--nav-bg: rgba(10,10,10,0.95);
--nav-border: rgba(255,255,255,0.06);
--option-bg: #1a1a1a;
--option-text: #FFFFFF;
--orange-text: #FF6B00; /* 6.1:1 on #1a1a1a */
}
/* ── Text scaling ───────────────────────────────────────────────────────
Every font size is rem-based (see tailwind.config.ts fontSize), so the whole
UI follows the root font size.
- Android Chrome: applies the system "Font size" setting by itself.
- iOS Safari / home-screen app: ignores Dynamic Type unless the root uses a
-apple-system text style. Gate on @supports so other browsers are untouched.
That keyword also swaps the font family, so Geist is restored right after. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (font: -apple-system-body) {
html {
font: -apple-system-body;
font-family: var(--font-geist-sans), system-ui, sans-serif;
}
}
/* ── Reset ─────────────────────────────────────────────────────────── */
* {
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
}
html, body {
overscroll-behavior: none;
background-color: var(--bg-primary);
transition: background-color 0.25s ease;
}
/* Native select popups: readable in both themes (see --option-bg note above). */
option {
background: var(--option-bg);
color: var(--option-text);
}
/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 2px; height: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.3); border-radius: 999px; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
/* ── Dynamic-viewport shell height ───────────────────────────────────────
100dvh tracks the *visible* viewport as the mobile browser chrome (Safari's
top/bottom/compact address bar) shows and hides, so the fixed shell always
matches the visible area.
The 100vh base is the fallback for browsers without dvh; the dvh override
lives inside @supports rather than as a second same-property declaration,
because the build-time CSS minifier deduplicates equal properties within a
rule and would otherwise drop the 100vh fallback. Separate rule blocks
survive minification. */
@layer utilities {
.h-screen-safe { height: 100vh; }
.min-h-screen-safe { min-height: 100vh; }
}
/* Unlayered on purpose: a rule outside @layer outranks any layered rule
regardless of source order, so this dvh override always beats the @layer
utilities base above. (No other utility targets these two classes, so there
is nothing to conflict with today.) */
@supports (height: 100dvh) {
.h-screen-safe { height: 100dvh; }
.min-h-screen-safe { min-height: 100dvh; }
}
/* ── Component utilities ─────────────────────────────────────────────── */
@layer components {
/* Dark-mode glass cards (used by feed/checkin/store/draw pages) */
.glass-card {
@apply bg-white/5 backdrop-blur-xl border border-white/10 rounded-2xl;
box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.glass-card-orange {
@apply bg-tastefullyOrange/5 backdrop-blur-xl border border-tastefullyOrange/20 rounded-2xl;
box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 30px rgba(255,107,0,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
}
.glass-card-accent {
@apply bg-tastefullyAccent/10 backdrop-blur-xl border border-tastefullyAccent/30 rounded-2xl;
box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 30px rgba(41,10,129,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}
/* Theme-aware surface card (used by home page) */
.surface-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
box-shadow: var(--shadow-card);
border-radius: 1.25rem;
}
.glow-text-orange { text-shadow: 0 0 20px rgba(255,107,0,0.7), 0 0 40px rgba(255,107,0,0.3); }
.glow-text-accent { text-shadow: 0 0 20px rgba(41,10,129,0.9), 0 0 40px rgba(41,10,129,0.5); }
.shimmer-bg {
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
background-size: 200% auto;
animation: shimmer 2.5s linear infinite;
}
}
/* ── Keyframes ──────────────────────────────────────────────────────── */
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes stripeMove { 0% { background-position: 0 0; } 100% { background-position: 60px 60px; } }
@keyframes colorWave { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes teMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
/* ── Announcement marquee ───────────────────────────────────────────── */
.te-marquee { overflow: hidden; }
/* width:max-content -> track is exactly two groups wide, so translateX(-50%) shifts by
exactly one group for a seamless loop (no min-width stretching that would desync it). */
.te-marquee-track {
display: inline-flex;
width: max-content;
animation: teMarquee var(--te-marquee-duration, 20s) linear infinite;
}
/* Pause while the member hovers or presses, so links stay tappable. */
.te-marquee:hover .te-marquee-track,
.te-marquee:active .te-marquee-track { animation-play-state: paused; }
.stripe-animate {
background-image: repeating-linear-gradient(
-45deg,
transparent 0px, transparent 14px,
rgba(255, 107, 0, 0.07) 14px, rgba(255, 107, 0, 0.07) 15px
);
background-size: 60px 60px;
animation: stripeMove 6s linear infinite;
}
.wave-animate {
background: linear-gradient(
120deg,
rgba(255,107,0,0) 0%,
rgba(255,107,0,0.10) 18%,
rgba(41,10,129,0.09) 38%,
rgba(255,107,0,0.06) 55%,
rgba(41,10,129,0.07) 72%,
rgba(255,150,60,0.09) 88%,
rgba(255,107,0,0) 100%
);
background-size: 300% 300%;
animation: colorWave 9s ease infinite;
}