:root {
  --white: #fff;
  --primary: #2d39a7;
  --primary-light: #ecf0fa;
  --border-radius: 16px;
  --box-shadow: 0 2px 12px rgba(44, 44, 84, 0.08);
  --divider: #eee;
  --transition: all 0.18s cubic-bezier(.4,0,.2,1);
  --success: #1C7D1C;
  --error: #e74c3c;
  --text-primary: #222;
  --text-secondary: #888;
}

body {
  background: #f6f7fb;
}

.card,
.balance-card,
.info-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px 18px;
  margin-bottom: 18px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 68px;
  box-shadow: 0 1px 6px rgba(44,44,84,0.08);
}

.profile-avatar img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e7ff;
  background: #fff;
  display: block;
}

.profile-avatar i {
  font-size: 2.2rem;
  color: var(--primary);
}

.profile-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}

.profile-phone {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.balance-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  padding: 20px 0;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(44, 44, 84, 0.08);
}

.balance-label {
  font-size: 1.05em;
  opacity: 0.95;
  margin-bottom: 3px;
  display: block;
}

.balance-amount {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 6px 0 2px 0;
  line-height: 1.1;
}

.balance-currency {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.93;
  margin-left: 2px;
}

.section-title {
  font-size: 1.12em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 0px;
  letter-spacing: 0.01em;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

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

.info-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-right: 14px;
  font-size: 1.15rem;
}

.info-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.info-label {
  color: var(--text-secondary);
  font-size: 0.98em;
  margin-bottom: 1px;
  font-weight: 500;
}

.info-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.06em;
}

.logout-button {
  background: var(--error);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  width: 100%;
  margin-top: 22px;
}

.logout-button:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

.success-message {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success);
  border-radius: var(--border-radius);
  padding: 12px;
  margin-bottom: 16px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.error-message {
  background: rgba(244, 67, 54, 0.1);
  color: var(--error);
  border-radius: var(--border-radius);
  padding: 12px;
  margin-bottom: 16px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.spinner {
  display: none;
  margin: 20px auto;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(63, 81, 181, 0.1);
  border-radius: 50%;
  border-top: 4px solid var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Bottom navbar fix for mobile */
.bottom-navbar {
  box-shadow: 0 -2px 12px rgba(44,44,84,0.06);
  border-radius: 18px 18px 0 0;
}

/* Profile Avatar Edit Button for photo upload */
.profile-avatar {
  position: relative;
  /* ... existing styles ... */
}
.edit-avatar-btn {
  position: absolute;
  right: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(44,44,84,0.10);
  padding: 4px;
  cursor: pointer;
  border: 1.5px solid #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.18s;
}
.edit-avatar-btn:hover {
  background: var(--primary-light);
}
.edit-avatar-btn i {
  color: var(--primary);
  font-size: 1.1em;
  pointer-events: none;
}
.profile-avatar input[type="file"] {
  display: none;
}