* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  height: 100vh;
  overflow: hidden;
}

.app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid #ddd;
}

.tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab.active {
  border-bottom-color: #73bf00;
  color: #73bf00;
  font-weight: 600;
}

.content {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 16px;
}

.coupon-list {
  display: none;
  gap: 12px;
  flex-direction: column;
}

.coupon-list.active {
  display: flex;
}

.coupon-item {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.coupon-item:active {
  transform: scale(0.98);
  background: #f0f0f0;
}

.coupon-item.swiping {
  transform: translateX(var(--swipe-x, 0));
  background: #e8f5e8;
}

.add-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #73bf00;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

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

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 16px;
  max-width: 400px;
  width: 100%;
}

.modal h3 {
  margin-bottom: 16px;
  color: #333;
}

.modal textarea {
  width: 100%;
  height: 120px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  resize: none;
  font-size: 14px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.modal-button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.modal-button.primary {
  background: #73bf00;
  color: white;
}

.modal-button.secondary {
  background: #f0f0f0;
  color: #333;
}

.empty-state {
  text-align: center;
  color: #999;
  padding: 48px 16px;
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}