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

:root {
  --bg: #fafaf6;
  --green: #5f7e5f;
  --green-dark: #46603f;
  --text: #2a2a2a;
  --muted: #8a8a85;
  --line: #ececea;
  --cream: #f4ecde;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
  padding-bottom: 90px;
}

.content { padding: 8px 22px; }

/* Page Head with banner background */
.page-head {
  margin-left: -22px;
  margin-right: -22px;
  padding: 32px 22px 28px;
  background-image: url('public/banner-account.png');
  background-size: cover;
  background-position: right center;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.page-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text);
}
.page-head p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.head-actions { display: flex; gap: 8px; }
.round-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}
.round-btn:hover {
  transform: scale(1.05);
}
.head-svg {
  width: 100%;
  height: 100%;
  stroke: var(--text);
}
.notif-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e8a04b;
  border: 1.5px solid #fff;
}

/* Unified Account Card */
.account-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  margin-top: 14px;
}

.profile-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8dcd0, #8a9886);
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info {
  flex: 1;
}
.profile-info h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex; 
  align-items: center; 
  gap: 6px;
  color: var(--text);
}
.edit-pencil-svg { 
  width: 14px; 
  height: 14px; 
  stroke: var(--green); 
  cursor: pointer; 
  display: inline-block;
}
.profile-info p { 
  font-size: 11px; 
  color: var(--muted); 
  line-height: 1.4; 
  font-style: italic; 
}
.edit-btn {
  background: #f0f3f0;
  border: none;
  color: var(--green);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.edit-btn:hover {
  background: var(--green);
  color: #fff;
}

/* Stats */
.stats {
  padding: 16px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}
.stat small { font-size: 10px; color: var(--muted); line-height: 1.3; display: block; }

/* Premium Card */
.premium {
  background: #faf6ee;
  border-radius: 20px;
  padding: 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(240, 224, 196, 0.4);
}
.prem-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #f5eedf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
  color: var(--green);
}
.prem-svg {
  width: 100%;
  height: 100%;
}
.prem-body {
  flex: 1;
}
.prem-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.prem-body p { font-size: 11px; color: #555; }
.prem-body small { font-size: 10px; color: var(--muted); }
.prem-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.prem-btn:hover {
  background: var(--green-dark);
}

.section { margin-top: 24px; }
.section-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

/* Progress Card with image background decoration */
.progress-card {
  background-image: linear-gradient(to right, #ffffff 0%, #ffffff 50%, rgba(255, 255, 255, 0.75) 75%, rgba(255, 255, 255, 0) 100%), url('public/progress-deco.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  min-height: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.prog-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #eef4ee;
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  color: var(--green);
}
.prog-svg {
  width: 100%;
  height: 100%;
}
.prog-body {
  flex: 1;
}
.prog-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.prog-body p { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.hi { color: var(--green); font-weight: 600; }
.progress-bar {
  height: 6px;
  background: #ececea;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
  max-width: 160px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 4px;
}
.prog-body small { font-size: 10px; color: var(--muted); display: block; }

/* Quick Row */
.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.quick {
  background: #fff;
  border-radius: 16px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  transition: transform 0.2s, box-shadow 0.2s;
}
.quick:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.q-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  flex-shrink: 0;
  padding: 9px;
}
.q-svg {
  width: 100%;
  height: 100%;
}
.q1 .q-icon { background: #ebf3f7; color: #4b7fa0; }
.q2 .q-icon { background: #fdf0f0; color: #c05050; }
.q3 .q-icon { background: #ebf7f7; color: #4ba0a0; }

.q-text {
  flex: 1;
  min-width: 0;
}
.quick p { 
  font-size: 9px; 
  color: var(--muted); 
  margin-bottom: 2px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}
.quick strong { font-size: 13px; font-weight: 600; color: var(--text); }
.q-arrow {
  color: #ccc;
  font-size: 14px;
  margin-left: 2px;
}

/* Personal Tools */
.tool-list {
  list-style: none;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 4px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.tool-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.tool-list li:last-child { border-bottom: none; }
.li-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}
.li-icon.l1 { background: #eef4ee; color: #5f7e5f; }
.li-icon.l2 { background: #f5f0f9; color: #8a6fb0; }
.li-icon.l3 { background: #ebf3f7; color: #4b7fa0; }
.li-icon.l4 { background: #faf2ea; color: #c07a50; }
.li-icon.l5 { background: #fdf0f0; color: #c05050; }
.li-svg {
  width: 100%;
  height: 100%;
}
.li-body {
  flex: 1;
}
.tool-list h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.tool-list small { font-size: 11px; color: var(--muted); }
.arrow { color: #ccc; font-size: 16px; }

/* Support */
.support-row {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 16px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.supp { text-align: center; cursor: pointer; }
.s-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #f4f6f3;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin: 0 auto 6px;
  padding: 10px;
  color: var(--green);
  transition: background 0.2s;
}
.supp:hover .s-icon {
  background: var(--green);
  color: #fff;
}
.s-svg {
  width: 100%;
  height: 100%;
}
.supp small { font-size: 10px; color: var(--muted); line-height: 1.3; display: block; }

.bottom-spacer { height: 20px; }

/* Bottom navigation bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 16px;
  border-top: 1px solid var(--line);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
}
.nav-item small { font-size: 10px; }
.nav-item.active { color: var(--green); font-weight: 600; }

.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}
.nav-item.active .nav-icon path {
  fill: currentColor;
}
.nav-item.active .nav-icon circle {
  fill: currentColor;
}
