:root {
  /* Design Rules Variables */
  --bg-body: #F4F6F8;
  --bg-surface: #FFFFFF;
  --bg-input: #FFFFFF;
  
  --primary: #0D9488; /* Teal 600 */
  --primary-hover: #0F766E; /* Teal 700 */
  --primary-light: #CCFBF1; /* Teal 100 */
  
  --text-main: #1F2937; /* Gray 900 */
  --text-secondary: #6B7280; /* Gray 500 */
  --text-tertiary: #9CA3AF; /* Gray 400 */
  --text-inverse: #FFFFFF;
  
  --border-color: #E5E7EB; /* Gray 200 */
  
  --radius-card: 12px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --radius-full: 9999px;
  
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p {
  margin: 0;
  color: var(--text-secondary);
}

.text-small { font-size: 14px; }
.text-tiny { font-size: 12px; }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.font-bold { font-weight: 600; }

/* Layout Containers */
.app-container {
  max-width: 480px; /* Mobile app constrained width for desktop viewing */
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-body);
  position: relative;
  padding-bottom: 80px; /* Space for bottom nav */
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.screen-content {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.full-height-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

/* Components */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: var(--space-2);
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
}

.card-hero {
  background: linear-gradient(180deg, var(--bg-surface) 0%, #F0FDFA 100%);
  border: 1px solid var(--primary-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  width: 100%;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--text-tertiary);
  color: var(--text-main);
}

.btn-text {
  background: transparent;
  color: var(--primary);
  padding: 8px;
  width: auto;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn-icon:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--primary);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.form-input {
  padding: 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  font-size: 16px;
  color: var(--text-main);
  width: 100%;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Avatars & Images */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--border-color);
  object-fit: cover;
}

.avatar-lg {
  width: 80px;
  height: 80px;
}

.avatar-xl {
  width: 120px;
  height: 120px;
}

.logo-main {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 12px 16px 24px; /* Extra bottom padding for safe areas */
  display: flex;
  justify-content: space-around;
  z-index: 100;
  max-width: 480px; /* Match app container */
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--primary);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  z-index: 50;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stats Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Shortcut Grid */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.shortcut-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.shortcut-card:active {
  background-color: #F9FAFB;
  transform: scale(0.98);
}

.shortcut-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-body);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shortcut-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.section-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Event Card */
.event-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 56px;
  background: #F0FDFA;
  border-radius: 8px;
  color: var(--primary);
  border: 1px solid var(--primary-light);
  flex-shrink: 0;
}

.event-month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.event-day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.event-details {
  flex: 1;
}

.event-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.event-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Menu List */
.menu-section {
  margin-bottom: 24px;
}

.menu-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-left: 8px;
}

.menu-list {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  transition: background-color 0.2s;
}

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

.menu-item:hover {
  background-color: #F9FAFB;
}

.menu-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.menu-chevron {
  color: var(--text-tertiary);
}

/* Profile Card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Digital ID Card */
.id-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
  position: relative;
  width: 100%;
}

.id-header {
  background: var(--primary);
  padding: 24px;
  text-align: center;
  color: white;
}

.id-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-box {
  width: 200px;
  height: 200px;
  border: 2px dashed #E5E7EB;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #F9FAFB;
}

/* Utilities */
.spacer { flex: 1; }
.w-full { width: 100%; }
.mt-2 { margin-top: var(--space-2); }
.mb-2 { margin-bottom: var(--space-2); }
.gap-2 { gap: var(--space-2); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

/* Chips */
.chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.chip.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Icons */
svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5; /* Slightly thinner for modern look */
  fill: none;
}