@charset "UTF-8";
/* =============================================================================
   JPH foundation.css - Foundation & Design System
   Date: 2024-09-27
   Purpose: CSS Custom Properties, base layout, and utility classes
   Encoding: UTF-8 (no BOM)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS Custom Properties (Design System)
   ----------------------------------------------------------------------------- */
:root {
  /* Colors - ANA compliant neutral tones */
  --jph-primary: #d0576b;
  --jph-primary-soft: #b84b5d;
  --jph-text-main: #111827;
  --jph-text-secondary: #6B7280;
  --jph-border: #E5E7EB;
  --jph-bg: #FFFFFF;
  --jph-bg-secondary: #F9FAFB;
  
  /* Layout - 8pt grid system */
  --jph-radius-card: 16px;
  --jph-radius-button: 8px;
  --jph-radius-pill: 9999px;
  --jph-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
  --jph-space-xs: 8px;
  --jph-space-sm: 16px;
  --jph-space-md: 24px;
  --jph-space-lg: 32px;
  
  /* Navigation */
  --jph-nav-height: 80px;
  --jph-safe-area-bottom: env(safe-area-inset-bottom, 0);
  
  /* Typography */
  --jph-font-family: 'Noto Sans JP', sans-serif;
  
  /* Animation */
  --jph-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------------------
   Base Layout Container
   ----------------------------------------------------------------------------- */
.jph-nav-container {
  position: relative;
  min-height: 100vh;
  padding-bottom: calc(var(--jph-nav-height) + 20px);
  background: var(--jph-bg);
}

.jph-tab-content {
  padding: 16px;
  padding-bottom: calc(var(--jph-nav-height) + 40px);
  max-width: 100%;
  margin: 0 auto;
  background: var(--jph-bg);
  min-height: calc(100vh - var(--jph-nav-height));
}

/* -----------------------------------------------------------------------------
   Container & Layout Utilities
   ----------------------------------------------------------------------------- */
.jph-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Grid Layouts */
.jph-grid {
  display: grid;
  gap: var(--jph-space-md);
  padding: var(--jph-space-sm);
}

.jph-grid--1col {
  grid-template-columns: 1fr;
}

.jph-grid--2col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.jph-grid--3col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* -----------------------------------------------------------------------------
   Utility Classes
   ----------------------------------------------------------------------------- */

/* Display control */
.jph-hidden {
  display: none !important;
}

.jph-invisible {
  visibility: hidden !important;
}

.jph-visible {
  visibility: visible !important;
}

/* Responsive display control */
.jph-mobile-only {
  display: block;
}

.jph-desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .jph-mobile-only {
    display: none;
  }
  
  .jph-desktop-only {
    display: block;
  }
}

/* Text alignment */
.jph-text-center {
  text-align: center;
}

.jph-text-left {
  text-align: left;
}

.jph-text-right {
  text-align: right;
}

/* Spacing utilities */
.jph-mt-0 { margin-top: 0; }
.jph-mt-sm { margin-top: var(--jph-space-sm); }
.jph-mt-md { margin-top: var(--jph-space-md); }
.jph-mt-lg { margin-top: var(--jph-space-lg); }

.jph-mb-0 { margin-bottom: 0; }
.jph-mb-sm { margin-bottom: var(--jph-space-sm); }
.jph-mb-md { margin-bottom: var(--jph-space-md); }
.jph-mb-lg { margin-bottom: var(--jph-space-lg); }

/* Flexbox utilities */
.jph-flex {
  display: flex;
}

.jph-flex-col {
  flex-direction: column;
}

.jph-justify-center {
  justify-content: center;
}

.jph-justify-between {
  justify-content: space-between;
}

.jph-align-center {
  align-items: center;
}

.jph-gap-sm {
  gap: var(--jph-space-sm);
}

/* Size utilities */
.jph-w-full {
  width: 100%;
}

.jph-h-full {
  height: 100%;
}

/* State utilities */
.jph-loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

.jph-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Color utilities */
.jph-text-primary {
  color: var(--jph-primary);
}

.jph-text-secondary {
  color: var(--jph-text-secondary);
}

.jph-text-success {
  color: #059669;
}

.jph-text-error {
  color: #dc2626;
}

.jph-text-warning {
  color: #f59e0b;
}

/* Border utilities */
.jph-border {
  border: 1px solid var(--jph-border);
}

.jph-border-t {
  border-top: 1px solid var(--jph-border);
}

.jph-border-b {
  border-bottom: 1px solid var(--jph-border);
}

.jph-rounded {
  border-radius: var(--jph-radius-button);
}

.jph-rounded-card {
  border-radius: var(--jph-radius-card);
}

/* Shadow utilities */
.jph-shadow {
  box-shadow: var(--jph-shadow-card);
}

.jph-shadow-none {
  box-shadow: none;
}

/* Transition utilities */
.jph-transition {
  transition: var(--jph-transition);
}

.jph-transition-none {
  transition: none;
}

/* -----------------------------------------------------------------------------
   Accessibility
   ----------------------------------------------------------------------------- */
.jph-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content link */
.jph-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--jph-primary);
  color: white;
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 2000;
  font-size: 14px;
  font-weight: 600;
}

.jph-skip-link:focus {
  top: 6px;
}

/* -----------------------------------------------------------------------------
   Responsive Grid Adjustments
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .jph-grid {
    padding: var(--jph-space-xs);
    gap: var(--jph-space-sm);
  }
  
  .jph-grid--2col,
  .jph-grid--3col {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .jph-nav-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .jph-tab-content {
    padding: var(--jph-space-md);
    padding-bottom: calc(var(--jph-nav-height) + 60px);
  }
  
  .jph-container {
    padding: 0 var(--jph-space-md);
  }
}

/* -----------------------------------------------------------------------------
   Motion & Accessibility Preferences
   ----------------------------------------------------------------------------- */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .jph-transition {
    transition: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --jph-border: #000000;
    --jph-text-secondary: #000000;
    --jph-shadow-card: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
}

/* Force light mode (disable dark mode) */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
  
  body,
  .jph-nav-container,
  .jph-tab-content {
    background: var(--jph-bg) !important;
    color: var(--jph-text-main) !important;
  }
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .jph-nav-container {
    padding-bottom: 0;
  }
  
  .jph-tab-content {
    padding-bottom: 20px;
    padding-top: 0;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .jph-shadow {
    box-shadow: none;
  }
}

/* -----------------------------------------------------------------------------
   Performance Optimizations
   ----------------------------------------------------------------------------- */

/* Box-sizing reset for consistency */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Font display optimization */
.jph-nav-container {
  font-display: swap;
}

/* Text rendering optimization */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Browser Compatibility */
@supports (-webkit-backdrop-filter: blur(10px)) {
  .jph-backdrop-blur {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* Firefox support */
@-moz-document url-prefix() {
  .jph-transition {
    transition: all 320ms ease-out;
  }
}

/* Edge support */
@supports (-ms-ime-align: auto) {
  .jph-container {
    min-height: 48px;
  }
}

/* End foundation.css */

/* =============================================================================
   JPH navigation.css - Navigation System
   Date: 2024-09-27
   Purpose: Bottom navigation, loading states, and navigation interactions
   Encoding: UTF-8 (no BOM)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Bottom Navigation (PayPay-style)
   ----------------------------------------------------------------------------- */
.jph-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--jph-nav-height);
  background: var(--jph-bg);
  border-top: 1px solid var(--jph-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding-bottom: var(--jph-safe-area-bottom);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jph-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 8px 16px calc(8px + var(--jph-safe-area-bottom)) 16px;
  position: relative;
}

/* -----------------------------------------------------------------------------
   Navigation Items
   ----------------------------------------------------------------------------- */
.jph-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--jph-transition);
  padding: 6px 6px 8px 6px;
  min-width: 50px;
  min-height: 44px;
  position: relative;
  border-radius: 8px;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  color: var(--jph-text-secondary);
}

/* Central "Use" tab (PayPay-style special design) */
.jph-nav-use {
  transform: translateY(-16px);
  background: linear-gradient(135deg, var(--jph-primary) 0%, var(--jph-primary-soft) 100%);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  padding: 0;
  box-shadow: 0 4px 14px 0 rgba(208, 87, 107, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin: 0 8px;
  color: white;
}

.jph-nav-use.active {
  background: linear-gradient(135deg, var(--jph-primary-soft) 0%, #a0434f 100%);
  transform: translateY(-16px) scale(1.05);
}

/* -----------------------------------------------------------------------------
   Icons and Labels
   ----------------------------------------------------------------------------- */
.jph-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  transition: var(--jph-transition);
}

.jph-nav-icon-use {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  transition: var(--jph-transition);
}

.jph-nav-item svg {
  width: 100%;
  height: 100%;
  transition: var(--jph-transition);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jph-nav-label {
  font-size: 10px;
  font-weight: 500;
  color: inherit;
  transition: var(--jph-transition);
  text-align: center;
  line-height: 1.2;
  margin-top: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.jph-nav-use .jph-nav-label {
  font-weight: 600;
  font-size: 9px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* -----------------------------------------------------------------------------
   Interaction States
   ----------------------------------------------------------------------------- */
.jph-nav-item.active:not(.jph-nav-use) {
  color: var(--jph-primary);
}

.jph-nav-item.active:not(.jph-nav-use) svg {
  transform: scale(1.1);
}

.jph-nav-item.active .jph-nav-label {
  color: var(--jph-primary);
  font-weight: 600;
  text-shadow: none;
}

/* Desktop hover effects */
@media (hover: hover) and (pointer: fine) {
  .jph-nav-item:not(.jph-nav-use):hover {
    color: var(--jph-primary);
    transform: translateY(-2px);
    background: rgba(208, 87, 107, 0.04);
  }

  .jph-nav-use:hover {
    transform: translateY(-18px) scale(1.02);
    box-shadow: 0 4px 14px 0 rgba(208, 87, 107, 0.25), 0 12px 30px -5px rgba(208, 87, 107, 0.5);
  }
}

/* Mobile touch feedback */
@media (hover: none) {
  .jph-nav-item:active:not(.jph-nav-use) {
    transform: translateY(-1px) scale(0.98);
    background: rgba(208, 87, 107, 0.08);
  }

  .jph-nav-use:active {
    transform: translateY(-14px) scale(1.03);
  }
}

/* -----------------------------------------------------------------------------
   Loading States
   ----------------------------------------------------------------------------- */
.jph-tab-content.loading {
  opacity: 0.7;
  pointer-events: none;
  transition: var(--jph-transition);
}

.jph-loading-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--jph-border);
  border-top: 3px solid var(--jph-primary);
  border-radius: 50%;
  animation: jph-spin 1s linear infinite;
  z-index: 1001;
}

.jph-tab-content.loading .jph-loading-spinner {
  display: block;
}

@keyframes jph-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Loading spinner utility */
.jph-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--jph-border);
  border-top: 2px solid var(--jph-primary);
  border-radius: 50%;
  animation: jph-spin 1s linear infinite;
}

/* -----------------------------------------------------------------------------
   Accessibility & Focus States
   ----------------------------------------------------------------------------- */
.jph-nav-item:focus {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(208, 87, 107, 0.1);
}

.jph-nav-use:focus {
  outline: 2px solid white;
  outline-offset: 3px;
  box-shadow: 0 4px 14px 0 rgba(208, 87, 107, 0.25), 0 0 0 4px rgba(208, 87, 107, 0.2);
}

.jph-nav-item:focus-visible {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   Responsive Navigation
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --jph-nav-height: 72px;
  }
  
  .jph-nav-items {
    padding: 6px 8px calc(6px + var(--jph-safe-area-bottom)) 8px;
  }
  
  .jph-nav-item {
    min-width: 44px;
    padding: 4px 4px 6px 4px;
    gap: 1px;
  }
  
  .jph-nav-use {
    width: 56px;
    height: 56px;
    transform: translateY(-14px);
    margin: 0 6px;
  }
  
  .jph-nav-use.active {
    transform: translateY(-14px) scale(1.05);
  }
  
  .jph-nav-label {
    font-size: 9px;
  }
  
  .jph-nav-use .jph-nav-label {
    font-size: 8px;
  }
  
  .jph-tab-content {
    padding: 12px;
    padding-bottom: calc(var(--jph-nav-height) + 32px);
  }
}

@media (max-width: 390px) {
  .jph-nav-item {
    min-width: 40px;
    padding: 3px 2px 5px 2px;
  }
  
  .jph-nav-use {
    width: 52px;
    height: 52px;
    margin: 0 4px;
  }
  
  .jph-nav-icon {
    width: 20px;
    height: 20px;
  }
  
  .jph-nav-icon-use {
    width: 28px;
    height: 28px;
  }
}

/* Large screens optimization */
@media (min-width: 769px) {
  .jph-bottom-nav {
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* -----------------------------------------------------------------------------
   Motion Preferences
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jph-nav-item,
  .jph-nav-use,
  .jph-loading-spinner,
  .jph-spinner {
    transition: none !important;
    animation: none !important;
  }
  
  .jph-nav-use:hover,
  .jph-nav-item:hover {
    transform: none !important;
  }
  
  .jph-loading-spinner {
    border-top-color: var(--jph-primary);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .jph-nav-item:focus,
  .jph-nav-use:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
  }
  
  .jph-nav-use:focus {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
  }
}

/* -----------------------------------------------------------------------------
   Touch Device Optimizations
   ----------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .jph-nav-item {
    min-height: 48px;
  }
  
  .jph-nav-item:hover {
    transform: none;
    background-color: inherit;
  }
  
  .jph-nav-use:hover {
    transform: translateY(-16px);
  }
  
  .jph-nav-item:active {
    transform: scale(0.98);
    background-color: rgba(208, 87, 107, 0.12);
  }
}

/* iOS Safari specific adjustments */
@supports (-webkit-touch-callout: none) {
  .jph-nav-item {
    -webkit-appearance: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* -----------------------------------------------------------------------------
   Performance Optimizations
   ----------------------------------------------------------------------------- */

/* GPU acceleration for moving elements */
.jph-nav-use {
  will-change: transform;
}

/* Prevent text selection on navigation elements */
.jph-nav-item,
.jph-nav-label {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Font display optimization */
.jph-nav-label {
  font-display: swap;
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .jph-bottom-nav,
  .jph-loading-spinner,
  .jph-spinner {
    display: none !important;
  }
}

/* End navigation.css */

/* =============================================================================
   JPH home.css - Home Screen Layout & Components
   Date: 2024-09-27
   Purpose: Home screen layout, hero section, quick actions, and preview cards
   Encoding: UTF-8 (no BOM)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Home Screen Base
   ----------------------------------------------------------------------------- */
.jph-home {
  background: var(--jph-bg);
  font-family: var(--jph-font-family);
  color: var(--jph-text-main);
  padding: 0 20px;
  min-height: 100vh;
  color-scheme: light;
}

/* -----------------------------------------------------------------------------
   Hero Section
   ----------------------------------------------------------------------------- */
.jph-hero {
  background: var(--jph-bg);
  border-radius: var(--jph-radius-card);
  border: 1px solid var(--jph-border);
  box-shadow: var(--jph-shadow-card);
  padding: 28px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: var(--jph-space-sm);
}

.jph-hero__illustration {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--jph-primary), var(--jph-primary-soft));
  border-radius: var(--jph-radius-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  background-image: linear-gradient(135deg, var(--jph-primary), var(--jph-primary-soft)),
                    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.jph-hero__info {
  flex: 1;
  min-width: 0;
}

.jph-hero__status {
  background: rgba(208, 87, 107, 0.12);
  color: var(--jph-primary);
  padding: 4px 12px;
  border-radius: var(--jph-radius-pill);
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--jph-space-xs);
}

.jph-hero__points {
  margin-bottom: var(--jph-space-xs);
}

.jph-hero__points-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--jph-text-main);
  line-height: 1.1;
}

.jph-hero__points-unit {
  font-size: 13px;
  color: var(--jph-text-secondary);
  font-weight: 500;
}

.jph-hero__progress {
  margin-top: var(--jph-space-xs);
}

.jph-hero__progress-bar {
  width: 100%;
  height: 8px;
  background: var(--jph-border);
  border-radius: var(--jph-radius-pill);
  overflow: hidden;
  margin-bottom: 4px;
}

.jph-hero__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--jph-primary), var(--jph-primary-soft));
  border-radius: var(--jph-radius-pill);
  width: 0%;
  transition: width 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.jph-hero__progress-text {
  font-size: 12px;
  color: var(--jph-text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

/* -----------------------------------------------------------------------------
   Quick Actions (4x2 Grid)
   ----------------------------------------------------------------------------- */
.jph-quick-actions {
  margin-bottom: 32px;
}

.jph-quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.jph-quick-actions__tile {
  aspect-ratio: 1;
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--jph-text-main);
  transition: all 120ms cubic-bezier(0.22, 0.61, 0.36, 1);
  min-height: 64px;
  padding: 6px 2px;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
}

.jph-quick-actions__tile:hover,
.jph-quick-actions__tile:focus {
  transform: scale(0.98);
  box-shadow: var(--jph-shadow-card);
}

.jph-quick-actions__icon {
  width: 18px;
  height: 18px;
  color: var(--jph-primary);
  flex-shrink: 0;
}

.jph-quick-actions__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jph-quick-actions__label {
  font-size: 9px;
  font-weight: 500;
  text-align: center;
  line-height: 1.1;
  color: var(--jph-text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
}

/* -----------------------------------------------------------------------------
   Main CTA Card
   ----------------------------------------------------------------------------- */
.jph-main-cta {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  padding: var(--jph-space-sm) var(--jph-space-md);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: var(--jph-space-sm);
  text-decoration: none;
  color: var(--jph-text-main);
  transition: all 120ms cubic-bezier(0.22, 0.61, 0.36, 1);
  min-height: 44px;
}

.jph-main-cta:hover,
.jph-main-cta:focus {
  transform: scale(0.98);
  box-shadow: var(--jph-shadow-card);
}

.jph-main-cta__icon {
  width: 40px;
  height: 40px;
  background: var(--jph-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.jph-main-cta__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jph-main-cta__content {
  flex: 1;
  min-width: 0;
}

.jph-main-cta__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--jph-text-main);
  margin-bottom: 2px;
  line-height: 1.3;
}

.jph-main-cta__subtitle {
  font-size: 13px;
  color: var(--jph-text-secondary);
  font-weight: 500;
  line-height: 1.3;
}

.jph-main-cta__arrow {
  color: var(--jph-text-secondary);
  font-size: 18px;
  font-weight: 400;
}

/* -----------------------------------------------------------------------------
   Recent Preview Section
   ----------------------------------------------------------------------------- */
.jph-recent-preview {
  margin-bottom: 16px;
}

.jph-recent-preview__header {
  font-size: 16px;
  font-weight: 600;
  color: var(--jph-text-main);
  margin-bottom: var(--jph-space-sm);
}

.jph-recent-preview__list {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  overflow: hidden;
}

.jph-recent-preview__item {
  display: flex;
  align-items: center;
  gap: var(--jph-space-sm);
  padding: var(--jph-space-sm) var(--jph-space-md);
  text-decoration: none;
  color: var(--jph-text-main);
  min-height: 60px;
  transition: background-color 120ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.jph-recent-preview__item:not(:last-child) {
  border-bottom: 1px solid var(--jph-border);
}

.jph-recent-preview__item:hover,
.jph-recent-preview__item:focus {
  background-color: rgba(208, 87, 107, 0.04);
}

.jph-recent-preview__thumbnail {
  width: 40px;
  height: 30px;
  background: var(--jph-border);
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.jph-recent-preview__content {
  flex: 1;
  min-width: 0;
}

.jph-recent-preview__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--jph-text-main);
  margin-bottom: 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jph-recent-preview__subtitle {
  font-size: 12px;
  color: var(--jph-text-secondary);
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jph-recent-preview__arrow {
  color: var(--jph-text-secondary);
  font-size: 18px;
  font-weight: 400;
}

/* -----------------------------------------------------------------------------
   Home Screen Responsive Design
   ----------------------------------------------------------------------------- */
@media (max-width: 390px) and (min-width: 375px) {
  .jph-quick-actions__grid {
    gap: 10px;
  }
  
  .jph-quick-actions__tile {
    min-height: 68px;
    padding: 8px 3px;
  }
  
  .jph-quick-actions__icon {
    width: 20px;
    height: 20px;
  }
  
  .jph-quick-actions__label {
    font-size: 10px;
  }
}

@media (min-width: 391px) {
  .jph-quick-actions__grid {
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .jph-quick-actions__tile {
    min-height: 72px;
    padding: 8px 4px;
  }
  
  .jph-quick-actions__icon {
    width: 22px;
    height: 22px;
  }
  
  .jph-quick-actions__label {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .jph-hero {
    flex-direction: column;
    text-align: center;
    gap: var(--jph-space-sm);
  }
  
  .jph-hero__illustration {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .jph-hero {
    padding: var(--jph-space-sm) var(--jph-space-sm);
  }
  
  .jph-hero__illustration {
    width: 60px;
    height: 60px;
  }
  
  .jph-hero__points-value {
    font-size: 26px;
  }
  
  .jph-main-cta {
    padding: var(--jph-space-sm);
  }
  
  .jph-recent-preview__item {
    padding: var(--jph-space-sm);
  }
}

@media (max-width: 390px) {
  .jph-home {
    padding: 0 var(--jph-space-sm);
  }
  
  .jph-hero__points-value {
    font-size: 24px;
  }
  
  .jph-quick-actions__tile {
    min-height: 60px;
  }
}

@media (max-width: 360px) {
  .jph-hero {
    padding: var(--jph-space-sm);
  }
  
  .jph-hero__illustration {
    width: 50px;
    height: 50px;
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  .jph-hero {
    padding: var(--jph-space-lg);
  }
  
  .jph-quick-actions__grid {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* -----------------------------------------------------------------------------
   Accessibility (Home Screen)
   ----------------------------------------------------------------------------- */
.jph-quick-actions__tile:focus,
.jph-main-cta:focus,
.jph-recent-preview__item:focus {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
  border-radius: var(--jph-radius-card);
}

.jph-quick-actions__tile:focus-visible,
.jph-main-cta:focus-visible,
.jph-recent-preview__item:focus-visible {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   Touch Device Optimizations
   ----------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .jph-quick-actions__tile:hover,
  .jph-main-cta:hover {
    transform: none;
  }
  
  .jph-quick-actions__tile:active,
  .jph-main-cta:active {
    transform: scale(0.98);
  }
  
  .jph-recent-preview__item:hover {
    background-color: inherit;
  }
  
  .jph-recent-preview__item:active {
    background-color: rgba(208, 87, 107, 0.08);
  }
}

/* -----------------------------------------------------------------------------
   Motion Preferences
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jph-hero__progress-fill {
    transition: none !important;
  }
  
  .jph-quick-actions__tile,
  .jph-main-cta,
  .jph-recent-preview__item {
    transition: none !important;
  }
  
  .jph-quick-actions__tile:hover,
  .jph-main-cta:hover {
    transform: none !important;
  }
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .jph-hero,
  .jph-main-cta,
  .jph-recent-preview__list {
    box-shadow: none;
    border: 2px solid #000000;
  }
  
  .jph-quick-actions__tile {
    border: 1px solid #000000;
  }
}

/* -----------------------------------------------------------------------------
   Performance Optimizations
   ----------------------------------------------------------------------------- */

/* Prevent text selection on interactive elements */
.jph-quick-actions__tile,
.jph-main-cta {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Allow text selection for content */
.jph-recent-preview__title,
.jph-recent-preview__subtitle {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* Font display optimization */
.jph-quick-actions__label {
  font-display: swap;
}

/* Contain layout for performance */
.jph-hero,
.jph-quick-actions,
.jph-main-cta,
.jph-recent-preview {
  contain: layout style;
}

/* End home.css */

/* =============================================================================
   JPH components.css - UI Components & Interactive Elements
   Date: 2024-09-27
   Purpose: Buttons, modals, cards, toasts, and reusable UI components
   Encoding: UTF-8 (no BOM)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Unified Card System (ANA compliant)
   ----------------------------------------------------------------------------- */
.jph-card {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  box-shadow: var(--jph-shadow-card);
  overflow: hidden;
  transition: var(--jph-transition);
  font-family: var(--jph-font-family);
}

.jph-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(208, 87, 107, 0.1);
}

/* Coupon cards (special styling) */
.jph-coupon-card {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  padding: var(--jph-space-md);
  margin: var(--jph-space-sm);
  box-shadow: var(--jph-shadow-card);
  transition: var(--jph-transition);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jph-coupon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(208, 87, 107, 0.2);
}

/* Store cards */
.jph-store-card {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  overflow: hidden;
  transition: var(--jph-transition);
  cursor: pointer;
  box-shadow: var(--jph-shadow-card);
}

.jph-store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(208, 87, 107, 0.1);
}

/* -----------------------------------------------------------------------------
   Unified Button System
   ----------------------------------------------------------------------------- */
.jph-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--jph-space-xs);
  padding: 12px var(--jph-space-md);
  border-radius: var(--jph-radius-button);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--jph-transition);
  min-height: 44px;
  white-space: nowrap;
  box-sizing: border-box;
  font-family: var(--jph-font-family);
}

.jph-button--primary {
  background: var(--jph-primary);
  color: var(--jph-bg);
  border: 1px solid var(--jph-primary);
}

.jph-button--secondary {
  background: transparent;
  color: var(--jph-text-secondary);
  border: 1px solid var(--jph-border);
}

.jph-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Alternative button classes for compatibility */
.jph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--jph-space-sm);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--jph-radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 120ms ease;
  text-decoration: none;
  background: none;
  white-space: nowrap;
  box-sizing: border-box;
  font-family: var(--jph-font-family);
}

.jph-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.jph-btn--primary {
  background: var(--jph-primary);
  color: var(--jph-bg);
  border-color: var(--jph-primary);
}

.jph-btn--ghost {
  background: var(--jph-bg);
  color: var(--jph-text-secondary);
  border-color: var(--jph-border);
}

.jph-btn--danger {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.2);
}

.jph-btn--success {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.2);
}

/* Desktop hover effects */
@media (hover: hover) and (pointer: fine) {
  .jph-button--primary:hover:not(:disabled) {
    background: var(--jph-primary-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 87, 107, 0.3);
  }

  .jph-button--secondary:hover:not(:disabled) {
    background: rgba(208, 87, 107, 0.04);
    border-color: var(--jph-primary);
    color: var(--jph-primary);
    transform: translateY(-2px);
  }

  .jph-btn--primary:hover:not(:disabled) {
    background: var(--jph-primary-soft);
    border-color: var(--jph-primary-soft);
  }

  .jph-btn--ghost:hover:not(:disabled) {
    background: var(--jph-bg-secondary);
    color: #374151;
  }

  .jph-btn--danger:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
  }

  .jph-btn--success:hover:not(:disabled) {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.3);
  }
}

/* Mobile touch feedback */
@media (hover: none) {
  .jph-button:active:not(:disabled),
  .jph-btn:active:not(:disabled) {
    transform: scale(0.98);
    transition: transform 120ms ease;
  }
}

/* -----------------------------------------------------------------------------
   Modal System (unified design)
   ----------------------------------------------------------------------------- */
.jph-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--jph-bg);
  border-radius: var(--jph-radius-card);
  border: 1px solid var(--jph-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-width: 320px;
  width: calc(100% - 32px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  font-family: var(--jph-font-family);
}

.jph-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.jph-modal__title {
  padding: var(--jph-space-md) var(--jph-space-md) var(--jph-space-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--jph-text-main);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.jph-modal__content {
  padding: 0 var(--jph-space-md) var(--jph-space-sm);
  text-align: center;
}

.jph-modal__content p {
  font-size: 14px;
  color: var(--jph-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.jph-modal__actions {
  padding: var(--jph-space-sm) var(--jph-space-md) var(--jph-space-md);
  display: flex;
  gap: 12px;
}

.jph-modal__actions .jph-btn {
  flex: 1;
}

/* Modal overlay */
.jph-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.jph-modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* -----------------------------------------------------------------------------
   Bottom Sheet (for "Use" flow)
   ----------------------------------------------------------------------------- */
.jph-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--jph-bg);
  border-radius: var(--jph-radius-card) var(--jph-radius-card) 0 0;
  border: 1px solid var(--jph-border);
  border-bottom: none;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1100;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 200ms ease-out, visibility 200ms ease-out;
}

.jph-sheet[aria-hidden="false"] {
  transform: translateY(0);
  visibility: visible;
}

.jph-sheet__handle {
  width: 36px;
  height: 4px;
  background: var(--jph-border);
  border-radius: 2px;
  margin: 12px auto 8px auto;
  flex-shrink: 0;
}

.jph-sheet__head {
  padding: 0 var(--jph-space-md) var(--jph-space-sm);
  border-bottom: 1px solid var(--jph-border);
}

.jph-sheet__head h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--jph-text-main);
  margin: 0 0 var(--jph-space-xs) 0;
  line-height: 1.4;
}

.jph-sheet__body {
  padding: var(--jph-space-sm) var(--jph-space-md);
}

.jph-sheet__actions {
  padding: var(--jph-space-md);
  border-top: 1px solid var(--jph-border);
  display: flex;
  gap: 12px;
  background: var(--jph-bg);
}

/* -----------------------------------------------------------------------------
   Toast System (Safe Area compliant)
   ----------------------------------------------------------------------------- */
.jph-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  bottom: calc(var(--jph-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 12px);
  min-width: 280px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  background: #111827;
  color: #FFF;
  border-radius: var(--jph-radius-card);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--jph-font-family);
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  text-align: center;
  line-height: 1.4;
}

.jph-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.jph-toast--success {
  background: #059669;
}

.jph-toast--error {
  background: #dc2626;
}

.jph-toast--warning {
  background: #f59e0b;
}

/* -----------------------------------------------------------------------------
   Pills for categories/areas
   ----------------------------------------------------------------------------- */
.pill-container {
  display: flex;
  gap: var(--jph-space-xs);
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--jph-space-xs);
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid var(--jph-border);
  background: var(--jph-bg);
  color: var(--jph-text-secondary);
}

.pill--primary {
  background: rgba(208, 87, 107, 0.12);
  border-color: rgba(208, 87, 107, 0.24);
  color: var(--jph-primary);
}

/* -----------------------------------------------------------------------------
   Media container for images
   ----------------------------------------------------------------------------- */
.jph-media {
  margin: 0 var(--jph-space-md) var(--jph-space-sm);
  position: relative;
  width: calc(100% - calc(var(--jph-space-md) * 2));
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--jph-bg-secondary);
}

.jph-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -----------------------------------------------------------------------------
   Meta information rows
   ----------------------------------------------------------------------------- */
.meta-info {
  display: flex;
  flex-direction: column;
  gap: var(--jph-space-xs);
  font-size: 12px;
  color: var(--jph-text-secondary);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: var(--jph-space-xs);
  min-height: 20px;
}

.meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   Note/Terms expandable section
   ----------------------------------------------------------------------------- */
.jph-note {
  margin: var(--jph-space-sm) var(--jph-space-md);
  border: 1px solid var(--jph-border);
  border-radius: 8px;
  overflow: hidden;
}

.jph-note__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--jph-space-sm);
  background: var(--jph-bg-secondary);
  cursor: pointer;
  min-height: 44px;
}

.jph-note__title {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin: 0;
}

.jph-note__toggle {
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: var(--jph-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 120ms ease;
}

.jph-note__toggle[aria-expanded="true"] {
  transform: rotate(45deg);
}

.jph-note__content {
  padding: var(--jph-space-sm);
  font-size: 12px;
  line-height: 1.5;
  color: #4B5563;
  border-top: 1px solid var(--jph-border);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jph-note__content.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

/* -----------------------------------------------------------------------------
   Completion Card
   ----------------------------------------------------------------------------- */
.jph-completion-card {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  padding: var(--jph-space-md);
  margin: var(--jph-space-md) 0;
  box-shadow: var(--jph-shadow-card);
  text-align: center;
}

.jph-completion-icon {
  width: 48px;
  height: 48px;
  background: #10B981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto var(--jph-space-sm);
}

.jph-completion-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--jph-text-main);
  margin: 0 0 var(--jph-space-xs) 0;
}

.jph-completion-card p {
  font-size: 14px;
  color: var(--jph-text-secondary);
  margin: 0 0 var(--jph-space-sm) 0;
  line-height: 1.5;
}

.jph-completion-details {
  background: var(--jph-bg-secondary);
  border: 1px solid var(--jph-border);
  border-radius: 12px;
  padding: var(--jph-space-sm);
  margin: var(--jph-space-sm) 0;
}

.jph-completion-store {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.jph-completion-points {
  font-size: 12px;
  color: #10B981;
  font-weight: 600;
}

.next-use-date {
  font-size: 13px;
  color: var(--jph-text-main);
  margin: var(--jph-space-sm) 0;
}

.next-use-date strong {
  color: var(--jph-primary);
  font-weight: 600;
}

.jph-completion-actions {
  display: flex;
  gap: 12px;
  margin-top: var(--jph-space-md);
}

/* -----------------------------------------------------------------------------
   Error States
   ----------------------------------------------------------------------------- */
.jph-error {
  text-align: center;
  padding: 40px 20px;
  color: #dc2626;
  background: var(--jph-bg);
  border-radius: var(--jph-radius-card);
  margin: 20px 0;
  box-shadow: var(--jph-shadow-card);
  border: 1px solid var(--jph-border);
}

.jph-error h3 {
  margin: 0 0 var(--jph-space-sm) 0;
  font-size: 18px;
  font-weight: 600;
}

.jph-error p {
  margin: 0 0 var(--jph-space-md) 0;
  color: var(--jph-text-secondary);
  line-height: 1.5;
}

/* Empty states */
.jph-empty {
  text-align: center;
  padding: var(--jph-space-lg) var(--jph-space-md);
  color: var(--jph-text-secondary);
}

/* -----------------------------------------------------------------------------
   Responsive Adjustments
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .jph-modal {
    max-width: calc(100% - 32px);
    border-radius: 12px;
  }
  
  .jph-sheet__actions {
    flex-direction: column;
  }
  
  .jph-btn {
    flex: none;
    width: 100%;
  }
  
  .jph-modal__actions {
    flex-direction: column;
  }
  
  .jph-toast {
    left: var(--jph-space-sm);
    right: var(--jph-space-sm);
    transform: none;
    max-width: none;
  }
  
  .jph-toast.show {
    transform: translateY(0);
  }
  
  .jph-coupon-card {
    margin: var(--jph-space-xs) 0;
  }
}

@media (max-width: 390px) {
  .jph-sheet__actions {
    padding: 20px var(--jph-space-sm);
  }
  
  .jph-sheet__body,
  .jph-sheet__head {
    padding-left: var(--jph-space-sm);
    padding-right: var(--jph-space-sm);
  }
  
  .jph-media {
    margin-left: var(--jph-space-sm);
    margin-right: var(--jph-space-sm);
    width: calc(100% - calc(var(--jph-space-sm) * 2));
  }
  
  .jph-note {
    margin-left: var(--jph-space-sm);
    margin-right: var(--jph-space-sm);
  }
}

@media (min-width: 769px) {
  .jph-modal {
    max-width: 400px;
  }
  
  .jph-sheet {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }
  
  .jph-sheet[aria-hidden="false"] {
    transform: translateX(-50%) translateY(0);
  }
  
  .jph-coupon-card {
    margin: var(--jph-space-sm);
    padding: var(--jph-space-md);
  }
}

/* -----------------------------------------------------------------------------
   Focus Management & Accessibility
   ----------------------------------------------------------------------------- */
.jph-btn:focus,
.jph-button:focus {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(208, 87, 107, 0.1);
}

.jph-btn--danger:focus {
  outline-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.jph-card:focus {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
  border-radius: var(--jph-radius-card);
}

/* -----------------------------------------------------------------------------
   Motion Preferences
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jph-card,
  .jph-button,
  .jph-btn,
  .jph-modal,
  .jph-modal-overlay,
  .jph-sheet,
  .jph-toast {
    transition: none !important;
  }
  
  .jph-card:hover,
  .jph-button:hover,
  .jph-btn:hover {
    transform: none !important;
  }
  
  .jph-note__toggle {
    transition: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .jph-btn,
  .jph-button {
    border-width: 2px;
  }
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .jph-modal,
  .jph-modal-overlay,
  .jph-sheet,
  .jph-toast {
    display: none !important;
  }
  
  .jph-card,
  .jph-coupon-card,
  .jph-completion-card {
    box-shadow: none;
    border: 2px solid #000000;
  }
  
  .jph-button,
  .jph-btn {
    border: 2px solid #000000;
    color: #000000 !important;
    background: transparent !important;
  }
}

/* -----------------------------------------------------------------------------
   Performance Optimizations
   ----------------------------------------------------------------------------- */

/* GPU acceleration for animated elements */
.jph-modal,
.jph-sheet {
  will-change: transform;
}

/* Smooth scrolling for sheet */
.jph-sheet {
  -webkit-overflow-scrolling: touch;
}

/* Prevent text selection on interactive elements */
.jph-btn,
.jph-button,
.pill {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* End components.css */

/* =============================================================================
   JPH account.css - Account Screen Components
   Date: 2024-09-27
   Purpose: Account screen layout, profile information, and account actions
   Encoding: UTF-8 (no BOM)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Account Screen Base Container
   ----------------------------------------------------------------------------- */
.jph-account {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  font-family: var(--jph-font-family);
}

.jph-account-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

/* -----------------------------------------------------------------------------
   Status Card (Active/Grace/Expired)
   ----------------------------------------------------------------------------- */
.jph-status {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  padding: var(--jph-space-md);
  margin-bottom: var(--jph-space-sm);
  box-shadow: var(--jph-shadow-card);
  transition: var(--jph-transition);
}

.jph-status:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Status Pills */
.jph-status__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--jph-radius-pill);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--jph-space-xs);
  line-height: 1.2;
}

/* Status Pill States */
.jph-status__pill--active,
.jph-status__pill[data-status="active"] {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.jph-status__pill--grace,
.jph-status__pill[data-status="grace"] {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.jph-status__pill--expired,
.jph-status__pill[data-status="expired"] {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Status Meta Information */
.jph-status__meta {
  font-size: 13px;
  color: var(--jph-text-secondary);
  line-height: 1.4;
}

/* Enhanced Status States (Grace/Expired Emphasis) */
.jph-status--grace {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.04) 0%, var(--jph-bg) 20%);
}

.jph-status--grace .jph-status__meta {
  font-weight: 600;
  color: #92400e;
}

.jph-status--expired {
  border-left: 4px solid #dc2626;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.04) 0%, var(--jph-bg) 20%);
}

.jph-status--expired .jph-status__meta {
  font-weight: 600;
  color: #7f1d1d;
}

/* Urgent renewal CTA for grace/expired */
.jph-status__urgent-cta {
  margin-top: var(--jph-space-sm);
  padding-top: var(--jph-space-sm);
  border-top: 1px solid var(--jph-border);
}

.jph-status__urgent-cta .jph-btn--primary {
  background: #dc2626;
  border-color: #dc2626;
  animation: subtle-pulse 2s infinite;
}

.jph-status__urgent-cta .jph-btn--primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2); }
  50% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); }
}

/* -----------------------------------------------------------------------------
   Profile Information Section
   ----------------------------------------------------------------------------- */
.jph-profile {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  margin-bottom: var(--jph-space-sm);
  box-shadow: var(--jph-shadow-card);
  overflow: hidden;
}

.jph-account-section {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--jph-shadow-card);
  transition: var(--jph-transition);
}

.jph-account-section:hover {
  transform: translateY(-1px);
}

.jph-account-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--jph-text-main);
}

.jph-account-info {
  background: var(--jph-bg);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--jph-border);
}

/* Profile Rows */
.jph-row,
.jph-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--jph-space-sm) var(--jph-space-md);
  min-height: 56px;
  border-bottom: 1px solid var(--jph-border);
  transition: background-color 120ms ease;
  gap: var(--jph-space-sm);
}

.jph-row:last-child,
.jph-info-row:last-child {
  border-bottom: none;
}

.jph-row:first-child,
.jph-info-row:first-child {
  padding-top: 0;
}

.jph-row:hover,
.jph-info-row:hover {
  background-color: rgba(208, 87, 107, 0.04);
}

/* Row Labels */
.jph-row__label,
.jph-info-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--jph-text-secondary);
  flex-shrink: 0;
}

/* Row Values */
.jph-row__value,
.jph-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--jph-text-main);
  text-align: right;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Copy Button */
.jph-copy {
  background: rgba(208, 87, 107, 0.08);
  color: var(--jph-primary);
  border: 1px solid rgba(208, 87, 107, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
  flex-shrink: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jph-copy:hover {
  background: rgba(208, 87, 107, 0.12);
  transform: translateY(-1px);
}

.jph-copy:active {
  transform: scale(0.98);
}

/* Account status classes */
.jph-status-active {
  color: #059669;
}

.jph-status-grace {
  color: #f59e0b;
}

.jph-status-expired {
  color: #dc2626;
}

/* Profile Row Variations */
.jph-row--highlight {
  background: rgba(208, 87, 107, 0.06);
  border-left: 3px solid var(--jph-primary);
}

.jph-row--highlight:hover {
  background: rgba(208, 87, 107, 0.08);
}

.jph-row--compact {
  min-height: 48px;
  padding: 12px var(--jph-space-sm);
}

.jph-row--compact .jph-row__value {
  font-size: 13px;
}

.jph-row--copyable {
  padding-right: calc(var(--jph-space-md) + 60px);
  position: relative;
}

.jph-row--copyable .jph-copy {
  position: absolute;
  right: var(--jph-space-sm);
  top: 50%;
  transform: translateY(-50%);
}

/* -----------------------------------------------------------------------------
   Actions Section
   ----------------------------------------------------------------------------- */
.jph-actions {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  padding: var(--jph-space-md);
  margin-bottom: var(--jph-space-sm);
  box-shadow: var(--jph-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jph-account-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

/* Button Layout Variations */
.jph-actions--horizontal {
  flex-direction: row;
  gap: 12px;
}

.jph-actions--horizontal .jph-btn {
  flex: 1;
  width: auto;
}

.jph-actions .jph-btn--primary {
  order: -1;
  margin-bottom: 8px;
}

.jph-actions--horizontal .jph-btn--primary {
  margin-bottom: 0;
  flex: 2;
}

/* -----------------------------------------------------------------------------
   Legal Links Section
   ----------------------------------------------------------------------------- */
.jph-legal {
  text-align: center;
  padding: var(--jph-space-sm);
  margin-bottom: var(--jph-space-sm);
  font-size: 13px;
  color: var(--jph-text-secondary);
  line-height: 1.4;
}

.jph-legal a {
  color: var(--jph-text-secondary);
  text-decoration: none;
  transition: color 120ms ease;
}

.jph-legal a:hover {
  color: var(--jph-primary);
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Danger Zone Section
   ----------------------------------------------------------------------------- */
.jph-danger {
  background: rgba(220, 38, 38, 0.04);
  border: 1px solid rgba(220, 38, 38, 0.1);
  border-radius: var(--jph-radius-card);
  padding: var(--jph-space-md);
  margin-bottom: var(--jph-space-sm);
  text-align: center;
}

.jph-danger[hidden] {
  display: none;
}

/* -----------------------------------------------------------------------------
   Responsive Design - iPhone 390×844 Optimized
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .jph-account {
    padding: 0 var(--jph-space-xs);
  }
  
  .jph-account-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .jph-status,
  .jph-profile,
  .jph-actions,
  .jph-danger {
    margin-bottom: 12px;
  }
  
  .jph-row,
  .jph-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 60px;
    padding: 12px var(--jph-space-sm);
  }
  
  .jph-row__value,
  .jph-info-value {
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
  }
  
  .jph-copy {
    align-self: flex-end;
    margin-top: 4px;
  }
  
  .jph-actions {
    padding: var(--jph-space-sm);
  }
}

@media (max-width: 390px) {
  .jph-status {
    padding: var(--jph-space-sm);
  }
  
  .jph-status__pill {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .jph-status__meta {
    font-size: 12px;
    margin-top: 4px;
  }
  
  .jph-row--copyable {
    padding-right: var(--jph-space-sm);
  }
  
  .jph-row--copyable .jph-copy {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 360px) {
  .jph-account {
    padding: 0 8px;
  }
  
  .jph-row,
  .jph-info-row {
    padding: 10px 12px;
    min-height: 56px;
  }
  
  .jph-actions {
    padding: 12px;
  }
  
  .jph-legal {
    font-size: 12px;
    padding: 8px;
  }
}

/* -----------------------------------------------------------------------------
   Larger Screen Adaptations
   ----------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .jph-account {
    padding: 0 var(--jph-space-md);
  }
  
  .jph-account-content {
    padding: 0 var(--jph-space-md);
  }
  
  .jph-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .jph-actions .jph-btn {
    flex: 1;
    min-width: 140px;
    width: auto;
  }
  
  .jph-actions .jph-btn--primary {
    flex: 2;
    margin-bottom: 0;
  }
  
  .jph-row:hover,
  .jph-info-row:hover {
    background-color: rgba(208, 87, 107, 0.06);
    transform: translateX(2px);
  }
}

@media (min-width: 1024px) {
  .jph-account {
    max-width: 700px;
  }
  
  .jph-row,
  .jph-info-row {
    padding: var(--jph-space-md);
    min-height: 64px;
  }
  
  .jph-row__value,
  .jph-info-value {
    font-size: 15px;
  }
}

/* -----------------------------------------------------------------------------
   Focus Management & Accessibility
   ----------------------------------------------------------------------------- */
.jph-copy:focus,
.jph-legal a:focus {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(208, 87, 107, 0.1);
}

.jph-row:focus-within,
.jph-info-row:focus-within {
  background-color: rgba(208, 87, 107, 0.08);
  outline: 2px solid var(--jph-primary);
  outline-offset: -2px;
}

.jph-copy[aria-label]::after {
  content: attr(aria-label);
  position: absolute;
  left: -9999px;
}

.jph-copy:focus::after {
  position: static;
  margin-left: 4px;
  font-size: 11px;
  color: var(--jph-text-secondary);
}

/* -----------------------------------------------------------------------------
   Loading and Error States
   ----------------------------------------------------------------------------- */
.jph-account--loading {
  opacity: 0.7;
  pointer-events: none;
}

.jph-account--loading .jph-row__value,
.jph-account--loading .jph-info-value {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  color: transparent;
  border-radius: 4px;
  min-height: 18px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.jph-row--error,
.jph-info-row--error {
  background: rgba(220, 38, 38, 0.04);
  border-left: 3px solid #dc2626;
}

.jph-row--error .jph-row__value,
.jph-info-row--error .jph-info-value {
  color: #dc2626;
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   High Contrast Mode
   ----------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
  .jph-status__pill--active {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
  }
  
  .jph-status__pill--grace {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
  }
  
  .jph-status__pill--expired {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
  }
  
  .jph-copy {
    border-width: 2px;
  }
}

/* -----------------------------------------------------------------------------
   Motion Preferences
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jph-status,
  .jph-row,
  .jph-info-row,
  .jph-copy,
  .jph-legal a {
    transition: none !important;
    animation: none !important;
  }
  
  .jph-status:hover,
  .jph-copy:hover,
  .jph-row:hover,
  .jph-info-row:hover {
    transform: none !important;
  }
  
  .jph-copy:active {
    background-color: rgba(208, 87, 107, 0.15) !important;
    transform: none !important;
  }
  
  .jph-status__urgent-cta .jph-btn--primary {
    animation: none !important;
  }
}

/* -----------------------------------------------------------------------------
   Touch Device Optimizations
   ----------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .jph-copy {
    min-height: 48px;
    padding: 12px 16px;
  }
  
  .jph-row,
  .jph-info-row {
    min-height: 64px;
    padding: 16px;
  }
  
  .jph-status:hover,
  .jph-row:hover,
  .jph-info-row:hover,
  .jph-copy:hover,
  .jph-legal a:hover {
    transform: none;
    background-color: inherit;
  }
  
  .jph-copy:active {
    transform: scale(0.96);
    background-color: rgba(208, 87, 107, 0.12);
  }
  
  .jph-row:active,
  .jph-info-row:active {
    background-color: rgba(208, 87, 107, 0.08);
  }
}

/* iOS Safari specific adjustments */
@supports (-webkit-touch-callout: none) {
  .jph-account {
    -webkit-text-size-adjust: 100%;
  }
  
  .jph-copy {
    -webkit-tap-highlight-color: transparent;
  }
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .jph-account {
    box-shadow: none;
    max-width: none;
  }
  
  .jph-status,
  .jph-profile,
  .jph-actions,
  .jph-danger {
    box-shadow: none;
    border: 2px solid #000;
    break-inside: avoid;
  }
  
  .jph-actions,
  .jph-danger,
  .jph-copy {
    display: none;
  }
  
  .jph-legal a {
    color: #000;
    text-decoration: underline;
  }
  
  .jph-row,
  .jph-info-row {
    border-bottom: 1px solid #ccc;
  }
}

/* -----------------------------------------------------------------------------
   Performance Optimizations
   ----------------------------------------------------------------------------- */
.jph-account,
.jph-account *,
.jph-account *::before,
.jph-account *::after {
  box-sizing: border-box;
}

.jph-account {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.jph-copy,
.jph-status__pill {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.jph-row__value,
.jph-info-value {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.jph-copy {
  will-change: transform;
}

.jph-status,
.jph-profile,
.jph-actions {
  contain: layout style;
}

.jph-account {
  font-display: swap;
}

/* End account.css */

/* =============================================================================
   JPH history.css - History Page & Status Summary
   Date: 2024-09-27
   Purpose: History list, status statistics, and usage tracking display
   Encoding: UTF-8 (no BOM)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   History Page Container
   ----------------------------------------------------------------------------- */
.jph-history {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

/* -----------------------------------------------------------------------------
   Status Summary Grid (Fixed Layout)
   ----------------------------------------------------------------------------- */
.jph-status-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: var(--jph-space-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.jph-stat {
  text-align: center;
  padding: 12px 4px;
  background: var(--jph-bg-secondary);
  border-radius: var(--jph-radius-button);
  border: 1px solid var(--jph-border);
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.jph-stat-label {
  display: block;
  font-size: 12px;
  color: var(--jph-text-secondary);
  margin-bottom: 4px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
}

.jph-stat-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--jph-text-main);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
}

/* Rank Colors */
.jph-rank-gold {
  color: #f59e0b;
}

.jph-rank-silver {
  color: #6b7280;
}

.jph-rank-bronze {
  color: #92400e;
}

/* -----------------------------------------------------------------------------
   History List
   ----------------------------------------------------------------------------- */
.jph-history-list {
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  overflow: hidden;
}

.jph-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--jph-space-sm) var(--jph-space-md);
  min-height: 72px;
  border-bottom: 1px solid var(--jph-border);
  transition: background-color 120ms ease;
  gap: var(--jph-space-sm);
}

.jph-history-item:last-child {
  border-bottom: none;
}

.jph-history-item:hover {
  background-color: rgba(208, 87, 107, 0.04);
}

.jph-history-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.jph-history-store {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.jph-history-store h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--jph-text-main);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jph-history-meta {
  display: flex;
  align-items: center;
  gap: var(--jph-space-sm);
  flex-wrap: wrap;
}

.jph-history-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--jph-text-secondary);
  white-space: nowrap;
}

.jph-history-points {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  white-space: nowrap;
}

.jph-history-status {
  flex-shrink: 0;
  width: auto;
  max-width: 120px;
  text-align: right;
  font-size: 12px;
  line-height: 1.3;
}

.jph-status-available {
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.jph-status-locked {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--jph-text-secondary);
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
  word-break: keep-all;
}

/* History Item Background States */
.jph-available {
  background: rgba(5, 150, 105, 0.05);
}

.jph-locked {
  background: rgba(107, 114, 128, 0.05);
}

/* Empty state for history */
.jph-no-history {
  text-align: center;
  padding: var(--jph-space-lg);
  color: var(--jph-text-secondary);
  font-size: 14px;
}

/* -----------------------------------------------------------------------------
   Icon Adjustments for History
   ----------------------------------------------------------------------------- */
.jph-history-store .jph-icon--small {
  width: 14px;
  height: 14px;
}

.jph-history-date .jph-icon--small {
  width: 12px;
  height: 12px;
}

.jph-status-locked .jph-icon--small {
  width: 12px;
  height: 12px;
}

.jph-history-store .jph-icon {
  color: var(--jph-primary);
}

.jph-history-date .jph-icon,
.jph-status-locked .jph-icon {
  color: var(--jph-text-secondary);
}

/* -----------------------------------------------------------------------------
   Text Overflow Management
   ----------------------------------------------------------------------------- */
.jph-history-item * {
  word-break: break-word;
  overflow-wrap: break-word;
}

.jph-status-locked {
  max-width: 100px;
  font-size: 10px;
  line-height: 1.3;
}

/* -----------------------------------------------------------------------------
   Responsive Design
   ----------------------------------------------------------------------------- */

/* Status Summary Responsive */
@media (max-width: 390px) {
  .jph-status-summary {
    gap: 6px;
  }
  
  .jph-stat {
    padding: 10px 2px;
    min-height: 65px;
  }
  
  .jph-stat-label {
    font-size: 11px;
    margin-bottom: 3px;
  }
  
  .jph-stat-value {
    font-size: 15px;
  }
  
  .jph-history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--jph-space-xs);
    padding: var(--jph-space-sm);
  }
  
  .jph-history-status {
    width: 100%;
    text-align: left;
    max-width: none;
    margin-top: 4px;
  }
  
  .jph-history-meta {
    gap: var(--jph-space-xs);
  }
  
  .jph-status-locked {
    max-width: none;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .jph-status-summary {
    gap: 4px;
  }
  
  .jph-stat {
    padding: 8px 1px;
    min-height: 60px;
  }
  
  .jph-stat-label {
    font-size: 10px;
  }
  
  .jph-stat-value {
    font-size: 14px;
  }
  
  .jph-history-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* Very narrow screens - stack status summary vertically */
@media (max-width: 319px) {
  .jph-status-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .jph-stat {
    padding: 12px 16px;
    min-height: 50px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .jph-stat-label {
    font-size: 14px;
    margin-bottom: 0;
    text-align: left;
  }
  
  .jph-stat-value {
    font-size: 18px;
    text-align: right;
  }
}

/* Larger screens */
@media (min-width: 769px) {
  .jph-history-item {
    padding: var(--jph-space-md);
  }
  
  .jph-status-summary {
    max-width: 500px;
    margin: 0 auto var(--jph-space-md);
  }
}

/* -----------------------------------------------------------------------------
   Focus Management & Accessibility
   ----------------------------------------------------------------------------- */
.jph-history-item:focus {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
  border-radius: var(--jph-radius-card);
}

.jph-history-item:focus-visible {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   Touch Device Optimizations
   ----------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .jph-history-item:hover {
    background-color: inherit;
  }
  
  .jph-history-item:active {
    background-color: rgba(208, 87, 107, 0.08);
  }
  
  .jph-stat {
    min-height: 72px;
  }
}

/* -----------------------------------------------------------------------------
   Motion Preferences
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jph-history-item {
    transition: none !important;
  }
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .jph-history-list,
  .jph-status-summary {
    box-shadow: none;
    border: 2px solid #000;
  }
  
  .jph-stat {
    border: 1px solid #000;
  }
  
  .jph-history-item {
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* -----------------------------------------------------------------------------
   Performance Optimizations
   ----------------------------------------------------------------------------- */

/* Contain layout for performance */
.jph-history,
.jph-status-summary,
.jph-history-list {
  contain: layout style;
}

/* Prevent text selection on non-content elements */
.jph-stat-label,
.jph-stat-value {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Allow text selection for store names and dates */
.jph-history-store h4,
.jph-history-date {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* Font display optimization */
.jph-stat-label,
.jph-history-item {
  font-display: swap;
}

/* End history.css */

/* =============================================================================
   JPH icons.css - SVG Icon System & Visual Elements
   Date: 2024-09-27
   Purpose: SVG icons, emoji fallbacks, and visual element management
   Encoding: UTF-8 (no BOM)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   SVG Icon System (ANA compliant - replaces emoji)
   ----------------------------------------------------------------------------- */
.jph-icon {
  width: 20px;
  height: 20px;
  color: #6B7280;
  transition: color 120ms ease;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.jph-icon--medium {
  width: 24px;
  height: 24px;
}

.jph-icon--small {
  width: 16px;
  height: 16px;
}

.jph-icon--primary {
  color: #d0576b;
}

/* Base SVG styling */
.jph-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -----------------------------------------------------------------------------
   Icon Variants with SVG-first approach
   ----------------------------------------------------------------------------- */

/* Location icon (replaces 📍) */
.jph-icon--location {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='9' r='2.5' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='9' r='2.5' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
}

/* Time icon (replaces ⏰) */
.jph-icon--time {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' stroke='currentColor' stroke-width='1.5'/%3E%3Cpolyline points='12,6 12,12 16,14' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' stroke='currentColor' stroke-width='1.5'/%3E%3Cpolyline points='12,6 12,12 16,14' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

/* Expires icon (replaces ⏳) */
.jph-icon--expires {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 2h14v4l-4.5 4.5L19 15v4H5v-4l4.5-4.5L5 6V2z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 2v4' stroke='currentColor' stroke-width='1.5'/%3E%3Cpath d='M16 2v4' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 2h14v4l-4.5 4.5L19 15v4H5v-4l4.5-4.5L5 6V2z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 2v4' stroke='currentColor' stroke-width='1.5'/%3E%3Cpath d='M16 2v4' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
}

/* Store icon (replaces 🏪) */
.jph-icon--store {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolyline points='9,22 9,12 15,12 15,22' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolyline points='9,22 9,12 15,12 15,22' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
}

/* Category icon (replaces 📂) */
.jph-icon--category {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

/* -----------------------------------------------------------------------------
   Emoji Fallback System (Emergency Response)
   ----------------------------------------------------------------------------- */

/* Fallback for when SVG masks don't work */
.jph-icon--location::after {
  content: "📍";
  font-size: 16px;
  display: block;
}

.jph-icon--time::after {
  content: "🕒";
  font-size: 16px;
  display: block;
}

.jph-icon--expires::after {
  content: "⏳";
  font-size: 16px;
  display: block;
}

.jph-icon--store::after {
  content: "🏪";
  font-size: 16px;
  display: block;
}

.jph-icon--category::after {
  content: "📂";
  font-size: 16px;
  display: block;
}

/* Size adjustments for emoji fallbacks */
.jph-icon--small::after {
  font-size: 14px;
}

.jph-icon--medium::after {
  font-size: 18px;
}

/* Hide SVG background when emoji fallback is used */
@supports not (mask: url("data:image/svg+xml")) and not (-webkit-mask: url("data:image/svg+xml")) {
  .jph-icon--location,
  .jph-icon--time,
  .jph-icon--expires,
  .jph-icon--store,
  .jph-icon--category {
    background: none !important;
    -webkit-mask: none !important;
    mask: none !important;
  }
}

/* -----------------------------------------------------------------------------
   Icon Button States
   ----------------------------------------------------------------------------- */
.jph-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--jph-transition);
  border-radius: 6px;
  padding: 6px;
  min-height: 32px;
  min-width: 32px;
}

.jph-icon-button:hover {
  background: rgba(208, 87, 107, 0.08);
}

.jph-icon-button:active {
  transform: scale(0.95);
}

.jph-icon-button:focus {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   Interactive Icon States
   ----------------------------------------------------------------------------- */

/* Hover effects for icons (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .jph-icon:hover,
  .jph-icon-button:hover .jph-icon {
    color: #d0576b;
  }
}

/* Touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
  .jph-icon-button:hover {
    background: none;
  }
  
  .jph-icon-button:active {
    background: rgba(208, 87, 107, 0.12);
  }
}

/* -----------------------------------------------------------------------------
   Icon in Context Applications
   ----------------------------------------------------------------------------- */

/* Navigation icons */
.jph-nav-item .jph-icon {
  color: inherit;
  transition: transform 120ms ease;
}

.jph-nav-item.active .jph-icon {
  transform: scale(1.1);
}

/* Quick actions icons */
.jph-quick-actions__icon .jph-icon {
  color: var(--jph-primary);
}

/* History and meta icons */
.meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Status and action icons */
.jph-status-icon {
  width: 18px;
  height: 18px;
  color: var(--jph-text-secondary);
}

.jph-status-icon--success {
  color: #059669;
}

.jph-status-icon--warning {
  color: #f59e0b;
}

.jph-status-icon--error {
  color: #dc2626;
}

/* -----------------------------------------------------------------------------
   Icon Loading States
   ----------------------------------------------------------------------------- */
.jph-icon--loading {
  animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Skeleton loading for icons */
.jph-icon--skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* -----------------------------------------------------------------------------
   Browser Compatibility & Fallbacks
   ----------------------------------------------------------------------------- */

/* Firefox fallback */
@-moz-document url-prefix() {
  .jph-icon--location,
  .jph-icon--time,
  .jph-icon--expires,
  .jph-icon--store,
  .jph-icon--category {
    background-image: none;
    mask: none;
  }
}

/* Edge/IE fallback */
@supports (-ms-ime-align: auto) {
  .jph-icon--location::before,
  .jph-icon--time::before,
  .jph-icon--expires::before,
  .jph-icon--store::before,
  .jph-icon--category::before {
    content: "";
    background: none !important;
  }
}

/* Remove emoji fallbacks when not needed */
.location-icon::before,
.time-icon::before,
.expires-icon::before,
.store-icon::before,
.category-icon::before {
  content: none !important;
}

/* -----------------------------------------------------------------------------
   Accessibility & Screen Readers
   ----------------------------------------------------------------------------- */

/* Screen reader text for icons */
.jph-icon[aria-label]::before {
  content: attr(aria-label);
  position: absolute;
  left: -9999px;
  font-size: 0;
}

/* Focus indicators for icon buttons */
.jph-icon-button:focus-visible {
  outline: 2px solid var(--jph-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(208, 87, 107, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .jph-icon {
    filter: contrast(1.5);
  }
  
  .jph-icon-button:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
  }
}

/* -----------------------------------------------------------------------------
   Responsive Icon Scaling
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .jph-icon {
    width: 18px;
    height: 18px;
  }
  
  .jph-icon--medium {
    width: 20px;
    height: 20px;
  }
  
  .jph-icon-button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
  }
}

@media (max-width: 390px) {
  .jph-icon--small {
    width: 14px;
    height: 14px;
  }
  
  .meta-icon {
    width: 14px;
    height: 14px;
    font-size: 12px;
  }
}

/* -----------------------------------------------------------------------------
   Motion Preferences
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jph-icon,
  .jph-icon-button {
    transition: none !important;
    animation: none !important;
  }
  
  .jph-icon--loading {
    animation: none !important;
    opacity: 0.7;
  }
  
  .jph-icon--skeleton {
    animation: none !important;
    background: #e5e7eb;
  }
  
  .jph-nav-item.active .jph-icon {
    transform: none !important;
  }
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .jph-icon,
  .jph-icon-button {
    color: #000000 !important;
    background: none !important;
  }
  
  .jph-icon--location::after,
  .jph-icon--time::after,
  .jph-icon--expires::after,
  .jph-icon--store::after,
  .jph-icon--category::after {
    color: #000000;
  }
}

/* -----------------------------------------------------------------------------
   Performance Optimizations
   ----------------------------------------------------------------------------- */

/* Prevent text selection on icons */
.jph-icon,
.jph-icon-button {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Optimize rendering for frequently used icons */
.jph-icon--location,
.jph-icon--time,
.jph-icon--store {
  will-change: color;
}

/* Font display optimization for emoji fallbacks */
.jph-icon::after {
  font-display: swap;
}

/* Quick Actions Grid - Layout Fix */
.jph-quick-actions {
  margin-bottom: 32px;
  padding: 0 !important; /* 親要素のパディングをリセット */
}

.jph-quick-actions__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: repeat(2, auto) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}

.jph-quick-actions__tile {
  aspect-ratio: 1 !important;
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none;
  color: var(--jph-text-main);
  transition: all 120ms cubic-bezier(0.22, 0.61, 0.36, 1);
  min-height: 68px !important;
  padding: 8px 4px !important;
  box-shadow: none;
  box-sizing: border-box !important;
  overflow: hidden;
}

/* ホーム画面全体のパディング調整 */
.jph-home {
  background: var(--jph-bg);
  font-family: var(--jph-font-family);
  color: var(--jph-text-main);
  padding: 0 20px; /* ← 16px から 20px に変更 */
  min-height: 100vh;
  color-scheme: light;
}

/* クイックアクショングリッドの微調整 */
.jph-quick-actions__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: repeat(2, auto) !important;
  gap: 16px !important; /* ← 12px から 16px に変更 */
  width: 100% !important;
  max-width: 400px !important; /* ← 最大幅を設定 */
  margin: 0 auto !important; /* ← 中央寄せ */
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* タイルのサイズと余白 */
.jph-quick-actions__tile {
  aspect-ratio: 1 !important;
  background: var(--jph-bg);
  border: 1px solid var(--jph-border);
  border-radius: var(--jph-radius-card);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important; /* ← 6px から 8px に変更 */
  text-decoration: none;
  color: var(--jph-text-main);
  transition: all 120ms cubic-bezier(0.22, 0.61, 0.36, 1);
  min-height: 72px !important; /* ← 68px から 72px に変更 */
  padding: 10px 6px !important; /* ← パディングを調整 */
  box-shadow: none;
  box-sizing: border-box !important;
  overflow: hidden;
}

/* アイコンサイズ */
.jph-quick-actions__icon {
  width: 22px !important; /* ← 20px から 22px に変更 */
  height: 22px !important;
  color: var(--jph-primary);
  flex-shrink: 0;
}

/* ラベルサイズ */
.jph-quick-actions__label {
  font-size: 11px !important; /* ← 10px から 11px に変更 */
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  color: var(--jph-text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
}

/* End icons.css */