/* FROSE Street Design System — Mobile-First Luxury Dark Theme */
:root {
  --bg-primary: #0a0e17;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(26, 38, 64, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gold-primary: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.2);
  --color-green: #10b981;
  --color-orange: #f59e0b;
  --color-red: #ef4444;
  --color-blue: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header */
.header {
  text-align: center;
  padding-top: 12px;
  padding-bottom: 20px;
}

.logo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.logo-badge {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #000;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 1.5px;
}

.logo-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gold-text {
  color: var(--gold-primary);
  text-shadow: 0 0 20px var(--gold-glow);
}

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

/* Section Header */
.portal-selection {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Portal Cards */
.portal-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  min-height: 84px; /* Ensured > 60px tap target */
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.portal-card:hover, .portal-card:active {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Specific Card Styling */
.billing-card {
  border-left: 4px solid var(--color-green);
}
.billing-card:hover {
  border-color: var(--color-green);
  box-shadow: 0 10px 25px -8px rgba(16, 185, 129, 0.3);
}

.packaging-card {
  border-left: 4px solid var(--color-orange);
}
.packaging-card:hover {
  border-color: var(--color-orange);
  box-shadow: 0 10px 25px -8px rgba(245, 158, 11, 0.3);
}

.kitchen-card {
  border-left: 4px solid var(--color-red);
}
.kitchen-card:hover {
  border-color: var(--color-red);
  box-shadow: 0 10px 25px -8px rgba(239, 68, 68, 0.3);
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.billing-icon {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.packaging-icon {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.kitchen-icon {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.card-content {
  flex: 1;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.primary-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.warning-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.optional-badge {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.card-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.portal-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

/* Status Card */
.status-card {
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
}

.status-text {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mode-toggle-pill {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  padding: 3px 8px;
  border-radius: 12px;
}

.pill-label {
  font-size: 10px;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-link {
  font-size: 12px;
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.divider {
  color: var(--text-muted);
  font-size: 10px;
}

.copyright {
  font-size: 11px;
  color: var(--text-muted);
}
