/* ===== PROFILE.CSS ===== */

.profile-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== PROFILE HERO ===== */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0 8px;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.profile-username {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

/* ===== PROFILE SECTION CARD ===== */
.profile-section-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border);
}

/* ===== SECTION ROW ===== */
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
}

.section-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.section-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.section-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.masked-address {
  font-family: monospace;
  letter-spacing: 0.5px;
}

.section-row.clickable {
  cursor: pointer;
  transition: background var(--transition);
}
.section-row.clickable:active { background: var(--card2); }

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

/* ===== REFERRAL SECTION ===== */
.referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.referral-stat {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.referral-stat:first-child {
  border-right: 1px solid var(--border);
}

.referral-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.referral-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.referral-link-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.referral-link-input {
  flex: 1;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== LANGUAGE LIST ===== */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-option {
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-option:active { transform: scale(0.97); background: var(--card); }
.lang-option.active { border-color: var(--primary); color: var(--primary); background: rgba(245,197,24,0.08); }

/* ===== TON MODAL ===== */
.cooldown-notice {
  background: rgba(249,115,22,0.1);
  border: 1px solid var(--orange);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 14px;
}

.ton-input-wrap { display: flex; flex-direction: column; gap: 0; }

/* ===== PROFILE FOOTER ===== */
.profile-footer {
  text-align: center;
  padding: 8px 0 4px;
}

.version-text {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}
