:root {
  --teal: #03d2ba;
  --teal-dark: #02b09c;
  --teal-light: rgba(3, 210, 186, 0.1);
  --bg-gray: #f5f5f5;
  --text-dark: #333;
  --text-gray: #999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gray);
  color: var(--text-dark);
  line-height: 1.4;
}
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===== HEADER ===== */
#header-big {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.hb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}
.hb-home {
  font-size: 1.3rem;
  color: #555;
  text-decoration: none;
}
.hb-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* Language Trigger Button (opens bottom sheet) */
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #eee;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-trigger img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

/* Hero Banner */
.hero-banner {
  width: 100%;
  height: 160px;
  background: var(--teal);
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-banner .hero-text {
  padding: 20px;
  z-index: 2;
  width: 80%;
}
.hero-banner .hero-text h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

/* MINI HEADER */
#header-mini {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: none;
}
.hm-inner {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 12px 10px;
}
.hm-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
}
.hm-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}
.hm-help i {
  color: var(--teal);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===== CONTENT ===== */
main {
  flex: 1;
}
.page {
  display: none;
}
.page.active {
  display: block;
}

.section-label {
  padding: 14px 16px 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
}
.menu-list {
  background: #fff;
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid #f8f8f8;
  cursor: pointer;
}
.menu-item:active {
  background: #fafafa;
}
.menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-icon i {
  color: #fff;
  font-size: 1.1rem;
}
.menu-text {
  font-size: 0.95rem;
  color: #333;
}
.menu-arrow {
  color: #ccc;
  font-size: 0.8rem;
}

.kind-tips {
  margin: 16px;
  background: #fff9f0;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #ffe8cc;
}
.kind-tips h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #e67e22;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.kind-tips p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 6px;
}

.pg-btn-wrap {
  padding: 10px 16px 30px;
}
.pg-btn {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--teal-light);
}

/* ===== FORMS ===== */
.form-group {
  padding: 12px 16px;
  background: #fff;
}
.fg-label {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}
.req {
  color: #f44336;
  margin-left: 2px;
}
.fg-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f9f9f9;
  outline: none;
  color: #333;
}
.fg-input::placeholder {
  color: #ccc;
}
.fg-input:focus {
  border-color: var(--teal);
  background: #fff;
}
.fg-input[readonly] {
  background: #f5f5f5;
  color: #999;
}

/* ===== BOTTOM SHEETS ===== */
.select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.select-trigger i {
  font-size: 0.8rem;
  color: #ccc;
}

/* Overlay */
.bs-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: none;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Sheet */
.bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 2001;
  transition: bottom 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 75%;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
.bottom-sheet.active {
  bottom: 0;
}

/* Drag Bar */
.bs-drag-bar {
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 12px auto 16px;
}

/* Header (Removed but keeping class just in case) */
.bs-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 48px 14px 16px;
  position: relative;
  border-bottom: 1px solid #f5f5f5;
}
.bs-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}
.bs-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
}

/* Generic Sheet Items */
.bs-item {
  padding: 16px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid #f9f9f9;
  cursor: pointer;
  color: #333;
}
.bs-item:last-child {
  border-bottom: none;
}
.bs-item:active {
  background: #f5f5f5;
}
.bs-item.selected {
  color: var(--teal);
  font-weight: 700;
}

/* ── Language Selector Sheet ── */
.bs-lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f9f9f9;
  cursor: pointer;
}
.bs-lang-item:last-child {
  border-bottom: none;
}
.bs-lang-item:active {
  background: #fafafa;
}
.bsl-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bsl-flag {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.bsl-name {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

/* Radio Circle */
.bsl-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.bsl-radio-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}
.bsl-radio.active {
  border-color: var(--teal);
}
.bsl-radio.active .bsl-radio-inner {
  background: var(--teal);
}

/* Photo Upload */
.upload-box {
  width: 90px;
  height: 90px;
  border: 1px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #bbb;
  font-size: 0.7rem;
  cursor: pointer;
  position: relative;
}
.upload-box i {
  font-size: 1.5rem;
}
.upload-box img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.guidelines {
  padding: 16px;
  background: #fff1f0;
  margin: 10px 16px;
  border-radius: 8px;
}
.guidelines h5 {
  color: #f44336;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.guidelines p {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.6;
}

.confirm-wrap {
  padding: 20px 16px 40px;
}
.confirm-btn {
  width: 100%;
  padding: 15px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* History */
.history-card {
  margin: 12px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.hc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f9f9f9;
  margin-bottom: 10px;
}
.hc-badge {
  background: #4caf50;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.hc-status {
  font-size: 0.85rem;
  color: #2196f3;
  font-weight: 500;
}
.hc-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 16px;
  font-size: 0.85rem;
}
.hc-row .label {
  color: #999;
}
.hc-row .value {
  color: #333;
}
.hc-row .value.orange {
  color: #f39c12;
  font-weight: 700;
  font-size: 1rem;
}
.hc-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px 5px;
  padding: 12px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.no-more { text-align: center; padding: 20px; font-size: 0.8rem; color: #ccc; }
.pending  { color: #2196f3; }
.rejected { color: #f44336; }
